1.load PF&VF driver --hns3 pf vf driver 2.allocate 8 VF for each PF example:echo 8 > /sys/bus/pci/devices/0000\:7d\:00.0/sriov_numvfs 3.tesgine send tcp/udp packets to ports use this tesgine device to send this tcp/udp package. 4.modify VF queue depth by ethtool -G command #!/bin/sh while [ 1 ] do for (( i = 0; i < 7; i++ )) do echo "ethtool -G eth$i tx 32760 rx 32760" ethtool -G eth$i tx 32760 rx 32760 | tee -a result.txt sleep 1s echo "ethtool -G eth$i tx 4096 rx 4096" ethtool -G eth$i tx 4096 rx 4096 | tee -a result.txt sleep 1s done done
1.load PF&VF driver --hns3 pf vf driver pci/devices/ 0000\:7d\ :00.0/sriov_ numvfs
2.allocate 8 VF for each PF
example:echo 8 > /sys/bus/
3.tesgine send tcp/udp packets to ports
use this tesgine device to send this tcp/udp package.
4.modify VF queue depth by ethtool -G command
#!/bin/sh
while [ 1 ]
do
for (( i = 0; i < 7; i++ ))
do
echo "ethtool -G eth$i tx 32760 rx 32760"
ethtool -G eth$i tx 32760 rx 32760 | tee -a result.txt
sleep 1s
echo "ethtool -G eth$i tx 4096 rx 4096"
ethtool -G eth$i tx 4096 rx 4096 | tee -a result.txt
sleep 1s
done
done