]> git.proxmox.com Git - mirror_ubuntu-focal-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)
commitdb68cc569eecff7dea5e346a217ce9ca5d2a0ede
tree59e42530fff10ccbc0a2b5e1cdf92eeb604564c6
parent16fff98a7e827396eb68f9243636b7240f511f10
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