Skip to content

Commit

Permalink
[Barefoot][Syncd] restart of the interface for cleaning txquee throug…
Browse files Browse the repository at this point in the history
…h which communication takes place between Sonic and openBMC (sonic-net#9941)

Why I did it
improvement of starting barefoot SDK

How I did it
restart of the interface for cleaning txquee through which communication takes place between Sonic and openBMC

How to verify it
run sonic autorestart tests
  • Loading branch information
KostiantynYarovyiBf authored and bratashX committed May 13, 2022
1 parent 339e68e commit faa9836
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions files/scripts/syncd.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,14 @@ function startplatform() {
debug "Firmware update procedure ended"
fi

if [[ x"$sonic_asic_platform" == x"barefoot" ]]; then
is_usb0=$(ls /sys/class/net | grep usb0)
if [[ "$is_usb0" == "usb0" ]]; then
/usr/bin/ip link set usb0 down
/usr/bin/ip link set usb0 up
fi
fi

if [[ x"$WARM_BOOT" != x"true" ]]; then
if [ x$sonic_asic_platform == x'cavium' ]; then
/etc/init.d/xpnet.sh start
Expand Down

0 comments on commit faa9836

Please sign in to comment.