net/mlx5: E-Switch, Consider host PF for inline mode and vlan pop
authorBodong Wang <bodong@mellanox.com>
Fri, 28 Jun 2019 22:36:22 +0000 (22:36 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 1 Jul 2019 23:40:31 +0000 (16:40 -0700)
commit411ec9e0b45792e2ac7c55f94a635d5ce894910b
tree9c8a7da94871d2850ceb27d827b92072c752ce3d
parentdb68cc569eecff7dea5e346a217ce9ca5d2a0ede
net/mlx5: E-Switch, Consider host PF for inline mode and vlan pop

When ECPF is the eswitch manager, host PF is treated like other VFs.
Driver should do the same for inline mode and vlan pop.

Add new iterators to include host PF if ECPF is the eswitch manager.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch.c
drivers/net/ethernet/mellanox/mlx5/core/eswitch.h
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c
include/linux/mlx5/vport.h