]> 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)
commitf0a640dfd82329c85b1878eab167854b4044fba9
tree51a8ebd08b1e816a292d8dc4ee1f5c6c24e34bac
parent1786f992cd677bd4abf9d3b08cdb4c8b5da08ea4
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