Skip to content

Commit

Permalink
[nvidia-bluefield] Remove the virtual smart switch leftovers. (#21050)
Browse files Browse the repository at this point in the history
- Why I did it
Remove the virtual smart switch leftovers from the Nvidia DPU initialization flow.

- How I did it
Remove unused code from the bash script.
  • Loading branch information
oleksandrivantsiv authored Dec 11, 2024
1 parent 58d7e13 commit 5d9e561
Showing 1 changed file with 0 additions and 26 deletions.
26 changes: 0 additions & 26 deletions platform/nvidia-bluefield/bluefield-platform-modules/bin/bfnet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,25 +17,6 @@
#

pci_iface=eth0-midplane
cp_iface=Ethernet0
pidfile=/run/dhcl-internal.$cp_iface.pid
leasefile=/var/lib/dhcp/dhcl-internal.$cp_iface.leases

stop_cp_dhclient()
{
if [[ -f $pidfile ]]; then
kill $(cat $pidfile)
rm -f $pidfile
fi
rm -f $leasefile
}

start_cp_dhclient()
{
stop_cp_dhclient

/sbin/dhclient -pf $pidfile -lf $leasefile $cp_iface -nw
}

start()
{
Expand All @@ -46,17 +27,10 @@ start()
if [[ $? != "0" ]]; then
exit 1
fi

hwsku=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hwsku"]')
if [[ $hwsku == *"-C1" ]]; then
start_cp_dhclient
fi
}

stop()
{
stop_cp_dhclient

/usr/bin/mst stop
rmmod mlx5_ib mlx5_core
}
Expand Down

0 comments on commit 5d9e561

Please sign in to comment.