net/mlx5: check VLAN push/pop support
authorDong Zhou <dongzhou@nvidia.com>
Thu, 22 Jul 2021 07:48:39 +0000 (10:48 +0300)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 22 Jul 2021 13:40:01 +0000 (15:40 +0200)
commit96f85ec489dbf7e206cdf54906d1e1c1092bc38e
tree9a7ee186a7669159d13402dcec59976a2d66965a
parent34c84ebbbcc8fc71901e17899f1bf1b1ba815084
net/mlx5: check VLAN push/pop support

For ConnectX-6 in FDB domain, pop and push VLAN
on both ingress and egress directions are supported.

For ConnectX-6 in NIC domain, and ConnectX-5 in both FWD and NIC domain,
pop VLAN is only supported on ingress direction,
push VLAN is only supported on egress direction.

Signed-off-by: Dong Zhou <dongzhou@nvidia.com>
Acked-by: Matan Azrad <matan@nvidia.com>
drivers/common/mlx5/mlx5_devx_cmds.c
drivers/common/mlx5/mlx5_devx_cmds.h
drivers/common/mlx5/mlx5_prm.h
drivers/net/mlx5/linux/mlx5_os.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_flow_dv.c