DPDK 18.11 testpmd flow director 测试

本次测试 只适合 testpmd 18.11版本, 其他版本不适用

1
2
3
4
5
6
7
8
9
# POST  演示成功!
./testpmd -l 0-9 -n 4 -- -i --nb-cores=8 --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect
flush_flow_director 0
set verbose 1
set fwd rxonly
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is POST / end actions queue index 1 / end

start
flow list 0

flow dir 不支持 HEX string 证明

1
2
3
4
5
6
7
8
./testpmd -l 0-9 -n 4 -- -i --nb-cores=8 --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect
flush_flow_director 0
set verbose 1
set fwd rxonly
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is \xab / end actions queue index 1 / end

start
flow list 0

flow dir 不支持 ‘’ 引号解析 证明

1
2
3
4
5
6
7
8
./testpmd -l 0-9 -n 4 -- -i --nb-cores=8 --rxq=4 --txq=4 --disable-rss --pkt-filter-mode=perfect
flush_flow_director 0
set verbose 1
set fwd rxonly
flow create 0 ingress pattern eth / ipv4 / tcp / raw relative is 1 offset is 0 pattern is 'ab' / end actions queue index 1 / end

start
flow list 0