]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f346278d235840a9a3d0c0e79ff394ddad940eb
tree9c8a7da94871d2850ceb27d827b92072c752ce3d
parente0dabe5e18dfa74cd743a39a80595570a3ab5f6a
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