net/mlx5: Bridge, mark reg_c1 when pushing VLAN
authorVlad Buslov <vladbu@nvidia.com>
Wed, 1 Sep 2021 16:05:02 +0000 (19:05 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:10:56 +0000 (18:10 -0700)
commit5249001d69a223811ad654884c6115d55158fd51
tree52b1b26dc1e883bb3d27682027c34f52e9370642
parent64fc4b358941fc2e9ee38b8b870ea0dac7639494
net/mlx5: Bridge, mark reg_c1 when pushing VLAN

On ingress VLAN push also assign value 0x7FE to reg_c1 tunnel id+opts
bits (tunnel id 0, which is not a valid tunnel id, and option 0x7FE which
was reserved by one of previous patches in the series). In following patch
the reg value is matched on egress miss to restore the packet to its
original state by removing the VLAN before passing it to the software data
path.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Paul Blakey <paulb@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge_priv.h
include/linux/mlx5/eswitch.h