net/mlx5: Allow 0 for total host VFs
authorDaniel Jurgens <danielj@nvidia.com>
Mon, 10 Jul 2023 21:28:10 +0000 (00:28 +0300)
committerSaeed Mahameed <saeedm@nvidia.com>
Mon, 7 Aug 2023 18:48:39 +0000 (11:48 -0700)
commit2dc2b3922d3c0f52d3a792d15dcacfbc4cc76b8f
treecb10af7c351e2bdd8e529db9497cd8fd748e82b7
parent06c868fde61fd0bbf9a7c7405f6eb9925bf0c2ed
net/mlx5: Allow 0 for total host VFs

When querying eswitch functions 0 is a valid number of host VFs. After
introducing ARM SRIOV falling through to getting the max value from PCI
results in using the total VFs allowed on the ARM for the host.

Fixes: 86eec50beaf3 ("net/mlx5: Support querying max VFs from device");
Signed-off-by: Daniel Jurgens <danielj@nvidia.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
drivers/net/ethernet/mellanox/mlx5/core/sriov.c