]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: E-Switch, Use iterator for vlan and min-inline setups
authorBodong Wang <bodong@mellanox.com>
Fri, 28 Jun 2019 22:36:20 +0000 (22:36 +0000)
committerSaeed Mahameed <saeedm@mellanox.com>
Mon, 1 Jul 2019 23:40:31 +0000 (16:40 -0700)
commitc8e91871e67670292c10b49048c59e50bbc409cf
tree59e42530fff10ccbc0a2b5e1cdf92eeb604564c6
parent530cff4c1eaa3492c0d7baef2f40f1f09ace2128
net/mlx5: E-Switch, Use iterator for vlan and min-inline setups

Use the defined iterators to traversal VF reps/vport. Also, rely on
num of VFs rather than the counter of enabled vports as PF will also
be enabled from ECPF side, and the counter will be different from
num of VFs.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Parav Pandit <parav@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c