net/mlx5: remove handling of ICMP fragmented packets
authorDekel Peled <dekelp@nvidia.com>
Thu, 15 Oct 2020 14:05:53 +0000 (17:05 +0300)
committerFerruh Yigit <ferruh.yigit@intel.com>
Tue, 3 Nov 2020 21:29:24 +0000 (22:29 +0100)
Commit [1] forced setting of match on 'frag' bit mask 1 and value 0.
Previous patch in this series added support of match on fragmented and
non-fragmented packets on L3 items, so this setting is now redundant.

This patch removes the changes done in [1].

[1] commit 85407db9f60d ("net/mlx5: fix matching for ICMP fragments")

Signed-off-by: Dekel Peled <dekelp@nvidia.com>
Acked-by: Ori Kam <orika@nvidia.com>
drivers/net/mlx5/mlx5_flow_dv.c

index 361c32d..3fa51c3 100644 (file)
@@ -7560,12 +7560,6 @@ flow_dv_translate_item_icmp6(void *matcher, void *key,
                return;
        if (!icmp6_m)
                icmp6_m = &rte_flow_item_icmp6_mask;
-       /*
-        * Force flow only to match the non-fragmented IPv6 ICMPv6 packets.
-        * If only the protocol is specified, no need to match the frag.
-        */
-       MLX5_SET(fte_match_set_lyr_2_4, headers_m, frag, 1);
-       MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, 0);
        MLX5_SET(fte_match_set_misc3, misc3_m, icmpv6_type, icmp6_m->type);
        MLX5_SET(fte_match_set_misc3, misc3_v, icmpv6_type,
                 icmp6_v->type & icmp6_m->type);
@@ -7615,12 +7609,6 @@ flow_dv_translate_item_icmp(void *matcher, void *key,
                return;
        if (!icmp_m)
                icmp_m = &rte_flow_item_icmp_mask;
-       /*
-        * Force flow only to match the non-fragmented IPv4 ICMP packets.
-        * If only the protocol is specified, no need to match the frag.
-        */
-       MLX5_SET(fte_match_set_lyr_2_4, headers_m, frag, 1);
-       MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, 0);
        MLX5_SET(fte_match_set_misc3, misc3_m, icmp_type,
                 icmp_m->hdr.icmp_type);
        MLX5_SET(fte_match_set_misc3, misc3_v, icmp_type,