]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7db234c15c354e15e166b7b13d660a7dcf3f88c2
tree5c5f8bcd0b5ce4a2846b71c4eb2a5b31a625d0ee
parent473f48477893ac8e19e2a1cb2c7f2b6424877b7b
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