]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Bridge, extract VLAN pop code to dedicated functions
authorVlad Buslov <vladbu@nvidia.com>
Thu, 2 Sep 2021 08:12:16 +0000 (11:12 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Tue, 5 Oct 2021 01:10:56 +0000 (18:10 -0700)
commit2fdddf09f84c347aefed8871e1c313e763f5d434
tree51a8ebd08b1e816a292d8dc4ee1f5c6c24e34bac
parente86a3dc5c083574e30c12abe0144ab03db2b3c0a
net/mlx5: Bridge, extract VLAN pop code to dedicated functions

Following patches in series need to pop VLAN when packet misses on egress.
To reuse existing bridge VLAN pop handling code, extract it to dedicated
helpers mlx5_esw_bridge_pkt_reformat_vlan_pop_supported() and
mlx5_esw_bridge_pkt_reformat_vlan_pop_create().

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