From e5daf216fdfb2b5210e6a54ca64afd8907f143cd Mon Sep 17 00:00:00 2001 From: Stepan Blyshchak <38952541+stepanblyschak@users.noreply.github.com> Date: Sat, 16 Feb 2019 02:08:08 +0200 Subject: [PATCH] [syncd.sh] Don't stop sxdkernel during warm shutdown on Mellanox platform (#2572) /etc/init.d/sxdkernel stop may take up to 15 sec which has impact on control plane downtime Signed-off-by: Stepan Blyschak --- files/scripts/syncd.sh | 13 ++++--------- 1 file changed, 4 insertions(+), 9 deletions(-) diff --git a/files/scripts/syncd.sh b/files/scripts/syncd.sh index 0247c7cd05..0c80e4521a 100755 --- a/files/scripts/syncd.sh +++ b/files/scripts/syncd.sh @@ -155,16 +155,11 @@ stop() { # platform specific tasks - # stop mellanox driver regardless of - # shutdown type - if [ x$sonic_asic_platform == x'mellanox' ]; then - /etc/init.d/sxdkernel stop - /usr/bin/mst stop - fi - - if [[ x"$WARM_BOOT" != x"true" ]]; then - if [ x$sonic_asic_platform == x'cavium' ]; then + if [ x$sonic_asic_platform == x'mellanox' ]; then + /etc/init.d/sxdkernel stop + /usr/bin/mst stop + elif [ x$sonic_asic_platform == x'cavium' ]; then /etc/init.d/xpnet.sh stop /etc/init.d/xpnet.sh start fi