]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8b18af729a9fd943e73601ec77c4c60b4708d731
tree52b1b26dc1e883bb3d27682027c34f52e9370642
parent2fdddf09f84c347aefed8871e1c313e763f5d434
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