Thread (27 messages) 27 messages, 6 authors, 2021-05-11

[dpdk-dev] net/mlx5: mellanox cx5/cx6-dx increment "rx_phy_discard_packets" with DPDK rte_flow actions COUNT & DROP

From: Arthas <hidden>
Date: 2021-05-06 07:59:56

Hareware:&nbsp; CX5/CX6 DX + Intel(R) Xeon(R) Platinum 9242 CPU @ 2.30GHz&nbsp;&nbsp;DPDK version: 19.11.8/20.11/21.05-rc1&amp;2


testpmd with case:
testpmd&gt; flow create 0 ingress pattern eth / ipv4 / udp dst is 53 / end actions count / drop / end
testpmd&gt; flow create 0 ingress pattern eth / ipv4 / udp src is 53 / end actions count / drop / end
testpmd&gt; flow create 0 ingress pattern eth / ipv4 / tcp / end actions count /drop end

testpmd&gt; flow list 0
ID	Group	Prio	Attr	Rule
0	0	0	i--	ETH IPV4 UDP =&gt; COUNT DROP
1	0	0	i--	ETH IPV4 UDP =&gt; COUNT DROP
2	0	0	i--	ETH IPV4 UDP =&gt; COUNT DROP

or
testpmd&gt; flow create 0 ingress pattern eth / ipv4 / udp dst is 53 / end actions count / rss / end
testpmd&gt; flow create 0 ingress pattern eth / ipv4 / udp src is 53 / end actions count / rss / end
testpmd&gt; flow create 0 ingress pattern eth / ipv4 / udp / end actions count / rss / end
testpmd&gt; flow list 0
ID	Group	Prio	Attr	Rule
0	0	0	i--	ETH IPV4 UDP =&gt; COUNT RSS
1	0	0	i--	ETH IPV4 UDP =&gt; COUNT RSS
2	0	0	i--	ETH IPV4 UDP =&gt; COUNT RSS
testpmd&gt;&nbsp;



as soon as NIC create more than 1 flow ,&nbsp; CX5/CX6-dx NIC will increment 'rx_phy_discard_packets'.
only 1 flow no problem!


Is this a CX5/CX6-DX hardware issue?&nbsp;
or Is it a DPDK mlx5 pmd bugs?


Best Regards!
KANG
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help