net/mlx5e: Remove redundant match on tunnel destination mac
authorVlad Buslov <vladbu@nvidia.com>
Mon, 25 Jan 2021 14:20:41 +0000 (16:20 +0200)
committerSaeed Mahameed <saeedm@nvidia.com>
Sat, 6 Feb 2021 04:53:36 +0000 (20:53 -0800)
Remove hardcoded match on tunnel destination MAC address. Such match is no
longer required and would be wrong for stacked devices topology where
encapsulation destination MAC address will be the address of tunnel VF that
can change dynamically on route change (implemented in following patches in
the series).

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Signed-off-by: Dmytro Linkin <dlinkin@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c

index 3e18ca200c8692e656e00f6025670bec25042eb2..13aa98b82576b5815926bc4bb1434c612629fdd0 100644 (file)
@@ -642,14 +642,6 @@ int mlx5e_tc_tun_parse(struct net_device *filter_dev,
                }
        }
 
-       /* Enforce DMAC when offloading incoming tunneled flows.
-        * Flow counters require a match on the DMAC.
-        */
-       MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, dmac_47_16);
-       MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, dmac_15_0);
-       ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v,
-                                    dmac_47_16), priv->netdev->dev_addr);
-
        /* let software handle IP fragments */
        MLX5_SET(fte_match_set_lyr_2_4, headers_c, frag, 1);
        MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, 0);