Skip to content

Commit 5d9e561

Browse files
[nvidia-bluefield] Remove the virtual smart switch leftovers. (#21050)
- 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.
1 parent 58d7e13 commit 5d9e561

File tree

1 file changed

+0
-26
lines changed
  • platform/nvidia-bluefield/bluefield-platform-modules/bin

1 file changed

+0
-26
lines changed

platform/nvidia-bluefield/bluefield-platform-modules/bin/bfnet.sh

Lines changed: 0 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,6 @@
1717
#
1818

1919
pci_iface=eth0-midplane
20-
cp_iface=Ethernet0
21-
pidfile=/run/dhcl-internal.$cp_iface.pid
22-
leasefile=/var/lib/dhcp/dhcl-internal.$cp_iface.leases
23-
24-
stop_cp_dhclient()
25-
{
26-
if [[ -f $pidfile ]]; then
27-
kill $(cat $pidfile)
28-
rm -f $pidfile
29-
fi
30-
rm -f $leasefile
31-
}
32-
33-
start_cp_dhclient()
34-
{
35-
stop_cp_dhclient
36-
37-
/sbin/dhclient -pf $pidfile -lf $leasefile $cp_iface -nw
38-
}
3920

4021
start()
4122
{
@@ -46,17 +27,10 @@ start()
4627
if [[ $? != "0" ]]; then
4728
exit 1
4829
fi
49-
50-
hwsku=$(sonic-cfggen -d -v 'DEVICE_METADATA["localhost"]["hwsku"]')
51-
if [[ $hwsku == *"-C1" ]]; then
52-
start_cp_dhclient
53-
fi
5430
}
5531

5632
stop()
5733
{
58-
stop_cp_dhclient
59-
6034
/usr/bin/mst stop
6135
rmmod mlx5_ib mlx5_core
6236
}

0 commit comments

Comments
 (0)