net/mlx5: Bridge, extract VLAN push/pop actions creation
authorVlad Buslov <vladbu@nvidia.com>
Fri, 3 Jun 2022 19:32:23 +0000 (22:32 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Wed, 13 Jul 2022 22:56:47 +0000 (15:56 -0700)
commit5a9db8d47a4948e59a53ac084afe97b94fd70808
tree30534bee568d61bf24082b9d2c3e3d5036d0e224
parentd4893978f9f171f417c346cbeb33121f997c51d7
net/mlx5: Bridge, extract VLAN push/pop actions creation

Following patches in series need to re-create VLAN actions when user
changes VLAN protocol. Extract the code that creates VLAN push/pop actions
into dedicated function in order to be reused in next patch.

Signed-off-by: Vlad Buslov <vladbu@nvidia.com>
Reviewed-by: Roi Dayan <roid@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/esw/bridge.c