OSDN Git Service

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)
commite57328384b6a9148df653216203408de3be3dda1
treed6e90953f3fa7909085b88eaddf7273c84630317
parent86a3e5d02c2006aaf085c940f037d2453ac44957
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