numam-dpdk/drivers/net/mlx5
Bing Zhao 72dcb91773 net/mlx5: fix matching for ICMP fragments
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: d53aa89aea ("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>
2020-02-19 13:51:06 +01:00
..
Makefile common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
meson.build common/mlx5: remove NDEBUG 2020-02-05 09:51:21 +01:00
mlx5_defs.h common/mlx5: share Netlink commands 2020-02-05 09:51:20 +01:00
mlx5_ethdev.c net/mlx: replace hardcoded value with macro 2020-02-14 12:42:12 +01:00
mlx5_flow_dv.c net/mlx5: fix matching for ICMP fragments 2020-02-19 13:51:06 +01:00
mlx5_flow_meter.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow_verbs.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_flow.c net/mlx5: fix meter header modify before decap 2020-02-14 12:42:12 +01:00
mlx5_flow.h net/mlx5: fix encap/decap validation 2020-02-14 12:42:12 +01:00
mlx5_mac.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mp.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_mr.h remove useless include of EAL memory config header 2019-10-09 10:22:24 +02:00
mlx5_rss.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxmode.c net/mlx5: reduce Netlink commands dependencies 2020-02-05 09:51:20 +01:00
mlx5_rxq.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_altivec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_neon.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec_sse.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx_vec.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_rxtx.c net/mlx5: fix legacy multi-packet write session 2020-02-14 12:42:12 +01:00
mlx5_rxtx.h net/mlx5: add Rx/Tx burst mode info 2020-02-05 09:51:21 +01:00
mlx5_socket.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_stats.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_trigger.c net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
mlx5_txq.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_utils.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_utils.h common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5_vlan.c common/mlx5: improve assert control 2020-02-05 09:51:21 +01:00
mlx5.c net/mlx5: add BlueField-2 device ID 2020-02-19 13:51:06 +01:00
mlx5.h net/mlx5: make FDB default rule optional 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5_version.map net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00
rte_pmd_mlx5.h net/mlx5: support fine grain dynamic flag 2020-02-05 09:51:20 +01:00