net/mlx5: Use max_num_eqs for calculation of required MSIX vectors
authorDenis Drozdov <denisd@mellanox.com>
Wed, 8 Aug 2018 23:23:48 +0000 (16:23 -0700)
committerDavid S. Miller <davem@davemloft.net>
Thu, 9 Aug 2018 02:34:54 +0000 (19:34 -0700)
commit342ac8448f1fb213908656ae5581d0f37a5954e8
tree00b7a898f23d709012d59599a78accf90c67d72b
parent13403d6952a5adf80d3d5668c290490852b4def2
net/mlx5: Use max_num_eqs for calculation of required MSIX vectors

New firmware has defined new HCA capability field called "max_num_eqs",
that is the number of available EQs after subtracting reserved FW EQs.

Before this capability the FW reported the EQ number in "log_max_eqs",
the reported value also contained FW reserved EQs, but the driver might
be failing to load on 320 cpus systems due to the fact that FW
reserved EQs were not available to the driver.

Now the driver has to obtain max_num_eqs value from new FW to get real
number of EQs available.

Signed-off-by: Denis Drozdov <denisd@mellanox.com>
Reviewed-by: Alex Vesker <valex@mellanox.com>
Signed-off-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/main.c
include/linux/mlx5/mlx5_ifc.h