]> 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)
commite0dabe5e18dfa74cd743a39a80595570a3ab5f6a
tree59e42530fff10ccbc0a2b5e1cdf92eeb604564c6
parent84a0ddef7ae54ed14429ee7f63028294f1438496
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