The hardware can recognize and mark the layer 4 protocol type for TCP, UDP and IPSec non-fragmented packets. For all the fragmented packets, L4 type will be considered as None. This can be used when creating a flow with L4 matching, then hops number will be reduced and a better performance could be gained. But for ICMP packets, it cannot be recognized correctly because it is not a L4 protocol in the stack, even if the packet format is similar. All the fragmented and non-fragmented ICMP will have the None L4 type. Fragmented packets with incomplete headers could not hit the flow, even for the first fragment. Because then it will make it complex to defragment for both HW and SW. For other types, the implicit rules could be used directly and all the fragments will miss the flow. For ICMP packets, this should be done explicitly because all packets have None type. The first fragment will still hit the flow if there is no explicit rule. All ICMP fragments will still hit the rules like ETH, ETH + IP, and ETH + IP + "ICMP protocol" only since they are wildcard rules, and there is no next layer protocol specified field in such rules. Fixes: d53aa89aea91 ("net/mlx5: support matching on ICMP/ICMP6") Cc: stable@dpdk.org Signed-off-by: Bing Zhao <bingz@mellanox.com> Acked-by: Ori Kam <orika@mellanox.com>
DPDK is a set of libraries and drivers for fast packet processing. It supports many processor architectures and both FreeBSD and Linux. The DPDK uses the Open Source BSD-3-Clause license for the core libraries and drivers. The kernel components are GPL-2.0 licensed. Please check the doc directory for release notes, API documentation, and sample application information. For questions and usage discussions, subscribe to: users@dpdk.org Report bugs and issues to the development mailing list: dev@dpdk.org
Description
Languages
C
99.1%
Meson
0.5%
Python
0.2%
Shell
0.1%