Skip to content

Commit 2dd769b

Browse files
stepanblyschakyxieca
authored andcommitted
[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 <[email protected]>
1 parent f98bec4 commit 2dd769b

File tree

1 file changed

+4
-9
lines changed

1 file changed

+4
-9
lines changed

files/scripts/syncd.sh

+4-9
Original file line numberDiff line numberDiff line change
@@ -155,16 +155,11 @@ stop() {
155155

156156
# platform specific tasks
157157

158-
# stop mellanox driver regardless of
159-
# shutdown type
160-
if [ x$sonic_asic_platform == x'mellanox' ]; then
161-
/etc/init.d/sxdkernel stop
162-
/usr/bin/mst stop
163-
fi
164-
165-
166158
if [[ x"$WARM_BOOT" != x"true" ]]; then
167-
if [ x$sonic_asic_platform == x'cavium' ]; then
159+
if [ x$sonic_asic_platform == x'mellanox' ]; then
160+
/etc/init.d/sxdkernel stop
161+
/usr/bin/mst stop
162+
elif [ x$sonic_asic_platform == x'cavium' ]; then
168163
/etc/init.d/xpnet.sh stop
169164
/etc/init.d/xpnet.sh start
170165
fi

0 commit comments

Comments
 (0)