net/mlx5: separate VLAN strip modification
authorOphir Munk <ophirmu@mellanox.com>
Tue, 25 Aug 2020 09:31:15 +0000 (09:31 +0000)
committerFerruh Yigit <ferruh.yigit@intel.com>
Fri, 18 Sep 2020 16:55:06 +0000 (18:55 +0200)
commit8bb2410ea3ce520a2638a1e484daa2b73cd88338
tree9c100de465f3e2c5e6553be0d9d05e340cf4cfb8
parentfe7a54fd268198001a7d8201acf94cabd727fc98
net/mlx5: separate VLAN strip modification

When updating a queue vlan stripping offload - either the WQ is modified
in Verbs or the RQ is modified in DevX.  Add a vlan stripping modify
callback to 'struct mlx5_obj_ops' and assign it with the specific Verbs
and DevX implementations: 'rxq_obj_modify_wq_vlan_strip' and
'rxq_obj_modify_rq_vlan_strip' respectively.

Signed-off-by: Ophir Munk <ophirmu@mellanox.com>
Acked-by: Matan Azrad <matan@mellanox.com>
drivers/net/mlx5/linux/mlx5_verbs.c
drivers/net/mlx5/mlx5.h
drivers/net/mlx5/mlx5_devx.c [new file with mode: 0644]
drivers/net/mlx5/mlx5_devx.h [new file with mode: 0644]
drivers/net/mlx5/mlx5_vlan.c