net/mlx5: DR, Enable VLAN pop on TX and VLAN push on RX
authorYevgeny Kliteynik <kliteyn@nvidia.com>
Sun, 27 Jun 2021 20:05:28 +0000 (23:05 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Thu, 26 Aug 2021 22:38:00 +0000 (15:38 -0700)
commit2de40f68cf76510c790663101b670868ba5ef9cf
tree2f7decc700ad7d6b1d6041523710f9b5dec73cc9
parentf5e22be534e094f0ea3a4e9fb1223b3de1ed8107
net/mlx5: DR, Enable VLAN pop on TX and VLAN push on RX

Enable pop VLAN action in TX and push VLAN in RX.
These actions are supported only on STEv1.

On TX: when a host sends a packet, VLAN is popped at the beginning.
On RX: just before passing the packet to the host the VLAN is pushed.

Signed-off-by: Muhammad Sammar <muhammads@nvidia.com>
Signed-off-by: Alex Vesker <valex@nvidia.com>
Signed-off-by: Yishai Hadas <yishaih@nvidia.com>
Signed-off-by: Yevgeny Kliteynik <kliteyn@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_ste_v1.c
drivers/net/ethernet/mellanox/mlx5/core/steering/dr_types.h