I have BlueField-3 DPU on my bare metal machine. The OS version is Centos 8.5 with kernel 4.18.0-348.7.1.el8_5.x86_64. The ofed I installed is MLNX_OFED_LINUX-5.8-4.1.5.0.
The BlueField-3 DPU type is as follows:
As you can see, I use the sriov function and generate two vfs (5e:00.3 and 5e:00.4) using echo ‘2’ > /sys/bus/pci/devices/0000:5e:00.0/sriov_numvfs. Then I put the two vfs into two network namespaces using the following commands:
ip netns add ns1
ip link set ens2f0v0 netns ns1
ip netns exec ns1 ip addr add 194.179.1.1/24 dev ens2f0v0
ip netns exec ns1 ip link set ens2f0v0 up
ip netns add ns2
ip link set ens2f0v1 netns ns2
ip netns exec ns2 ip addr add 194.179.1.2/24 dev ens2f0v1
ip netns exec ns2 ip link set ens2f0v1 up
However, when I enter ns1 and try to ping 194.179.1.2, it fails. Can anyone give me some advice about how to make it? Thanks a lot