[dpdk-dev] [Bug 449] Fortville X710 FDIR with flow APIs broken
bugzilla at dpdk.org
bugzilla at dpdk.org
Wed Dec 30 07:19:06 CET 2020
https://bugs.dpdk.org/show_bug.cgi?id=449
Steve Yang (stevex.yang at intel.com) changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |stevex.yang at intel.com
Resolution|--- |INVALID
Status|CONFIRMED |RESOLVED
--- Comment #13 from Steve Yang (stevex.yang at intel.com) ---
Not a bug.
Correct use steps:
1. bind the pf to dpdk driver::
./usertools/dpdk-devbind.py -b igb_uio 1b:00.0
2. add one vf on dpdk pf, then bind the vf to vfio-pci::
echo 1 >/sys/bus/pci/devices/0000:1b:00.0/max_vfs
./usertools/dpdk-devbind.py -b igb_uio 1b:02.0
3. launch the app ``testpmd`` with the following arguments::
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -w 1b:00.0
--file-prefix=pf – -i --rxq=4 --txq=4
testpmd> set verbose 1
testpmd> start
./x86_64-native-linuxapp-gcc/app/testpmd -c 0xf -n 4 -w 1b:02.0
--file-prefix=vf – -i --rxq=4 --txq=4
testpmd> set verbose 1
testpmd> start
4. create filter rule and sent pkg::
flow create 0 ingress transfer pattern eth / ipv4 src is 11.11.11.11 dst is
12.12.12.12 proto is 255 / vf id is 0 / end actions queue index 1 / end
sendp([Ether(dst='3C:FD:FE:DC:F1:88')/IP(src='11.11.11.11',dst='12.12.12.12',proto=255)/("X"*480)],
iface="enp27s0f1", count=1)
5. flow create 0 ingress transfer pattern eth / ipv4 src is 11.11.11.11 dst is
12.12.12.12 / udp / vf id is 0 / end actions queue index 1 / end
sendp([Ether(dst='3C:FD:FE:DC:F1:88')/IP(src='11.11.11.11',dst='12.12.12.12',proto=17)/("X"*480)],iface="enp27s0f1",
count=1)
Note:
① dst mac is a random mac address, not a pf mac
② proto is 17 means UDP, so create the following rule and send the packet with
proto is 17 cannot matched。
flow create 0 ingress transfer pattern eth / ipv4 src is 11.11.11.11 dst is
12.12.12.12 proto is 17 / vf id is 0 / end actions queue index 1 / end
sendp([Ether(dst='3C:FD:FE:DC:F1:88')/IP(src='11.11.11.11',dst='12.12.12.12',proto=17)/("X"*480)],
iface="enp27s0f1", count=1)
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the dev
mailing list