]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx4_core: Use msi_x module param to limit num of MSI-X irqs
authorTariq Toukan <tariqt@mellanox.com>
Wed, 9 May 2018 15:29:04 +0000 (18:29 +0300)
committerDavid S. Miller <davem@davemloft.net>
Thu, 10 May 2018 20:08:25 +0000 (16:08 -0400)
commitb22e23dbec02b0602c7dce30b0d186125b998cb5
treed6e90953f3fa7909085b88eaddf7273c84630317
parentfd57c8062f97e2ca0e95966fb23a4443af4fbe9d
net/mlx4_core: Use msi_x module param to limit num of MSI-X irqs

Extend the boolean interpretation of msi_x module parameter
to numerical, as follows:

0   - Don't use MSI-X.
1   - Use MSI-X, driver decides the num of MSI-X irqs.
>=2 - Use MSI-X, limit number of MSI-X irqs to msi_x.
      In SRIOV, this limits the number of MSI-X irqs per VF.

Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Cc: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
Reviewed-by: Ajaykumar Hotchandani <ajaykumar.hotchandani@oracle.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/main.c