net/mlx5: Provide an alternative VF upper bound for ECPF
authorBodong Wang <bodong@mellanox.com>
Wed, 13 Feb 2019 06:55:39 +0000 (22:55 -0800)
committerSaeed Mahameed <saeedm@mellanox.com>
Thu, 14 Feb 2019 20:14:42 +0000 (12:14 -0800)
commitfeb393693316bd5de2c88a020f6ded51e3a4120b
tree5c5f8bcd0b5ce4a2846b71c4eb2a5b31a625d0ee
parent7f0d11c7e0d08304de55b6a571a69166f3d54160
net/mlx5: Provide an alternative VF upper bound for ECPF

ECPF doesn't support SR-IOV, but an ECPF E-Switch manager shall know
the max VFs supported by its peer host PF in order to control those
VF vports.

The current driver implementation uses the total vfs quantity as
provided by the pci sub-system for an upper bound of the VF vports
the e-switch code needs to deal with. This obviously can't work as
is on ECPF e-switch manager. For now, we use a hard coded value of
128 on such systems.

Signed-off-by: Bodong Wang <bodong@mellanox.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
include/linux/mlx5/driver.h