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)
commit64fc4b358941fc2e9ee38b8b870ea0dac7639494
tree51a8ebd08b1e816a292d8dc4ee1f5c6c24e34bac
parenta1a6e7217eacf2c19a518d3adbe8ae3b4fd93a73
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