Skip to content

Commit 4ad9116

Browse files
w1ldptrSaeed Mahameed
authored andcommitted
net/mlx5e: Remove redundant match on tunnel destination mac
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 <[email protected]> Signed-off-by: Dmytro Linkin <[email protected]> Reviewed-by: Roi Dayan <[email protected]> Signed-off-by: Saeed Mahameed <[email protected]>
1 parent 34ca653 commit 4ad9116

File tree

1 file changed

+0
-8
lines changed
  • drivers/net/ethernet/mellanox/mlx5/core/en

1 file changed

+0
-8
lines changed

drivers/net/ethernet/mellanox/mlx5/core/en/tc_tun.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -642,14 +642,6 @@ int mlx5e_tc_tun_parse(struct net_device *filter_dev,
642642
}
643643
}
644644

645-
/* Enforce DMAC when offloading incoming tunneled flows.
646-
* Flow counters require a match on the DMAC.
647-
*/
648-
MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, dmac_47_16);
649-
MLX5_SET_TO_ONES(fte_match_set_lyr_2_4, headers_c, dmac_15_0);
650-
ether_addr_copy(MLX5_ADDR_OF(fte_match_set_lyr_2_4, headers_v,
651-
dmac_47_16), priv->netdev->dev_addr);
652-
653645
/* let software handle IP fragments */
654646
MLX5_SET(fte_match_set_lyr_2_4, headers_c, frag, 1);
655647
MLX5_SET(fte_match_set_lyr_2_4, headers_v, frag, 0);

0 commit comments

Comments
 (0)