net/mlx5: E-switch, Consider maximum vf vports for steering init
authorParav Pandit <parav@mellanox.com>
Mon, 20 Jul 2020 11:02:15 +0000 (14:02 +0300)
committerSaeed Mahameed <saeedm@mellanox.com>
Tue, 28 Jul 2020 09:37:31 +0000 (02:37 -0700)
commit8b95bda47c73625a06561657c7b21e5874833567
tree7741a2faf05e70310f9652375ad4d8e31905e0db
parentc1a0969ee829154cfc3e3721d8a94607636ce4a6
net/mlx5: E-switch, Consider maximum vf vports for steering init

When eswitch is enabled, VFs might not be enabled. Hence, consider
maximum number of VFs.
This further closes the gap between handling VF vports between ECPF and
PF.

Fixes: ea2128fd632c ("net/mlx5: E-switch, Reduce dependency on num_vfs during mode set")
Signed-off-by: Parav Pandit <parav@mellanox.com>
Reviewed-by: Roi Dayan <roid@mellanox.com>
Reviewed-by: Bodong Wang <bodong@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
drivers/net/ethernet/mellanox/mlx5/core/eswitch_offloads.c