]> 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)
commitd29af91dd9717ca7ff67b360e00adbe326e20a07
tree52b1b26dc1e883bb3d27682027c34f52e9370642
parentf0a640dfd82329c85b1878eab167854b4044fba9
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