Skip to content

Commit

Permalink
[syncd.sh] Don't stop sxdkernel during warm shutdown on Mellanox plat…
Browse files Browse the repository at this point in the history
…form (sonic-net#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]>
  • Loading branch information
stepanblyschak authored and tiantianlv committed Apr 10, 2019
1 parent f835a26 commit 9e9ceff
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 9e9ceff

Please sign in to comment.