]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net/mlx4_core: Capping number of requested MSIXs to MAX_MSIX
authorCarol L Soto <clsoto@linux.vnet.ibm.com>
Thu, 27 Aug 2015 19:43:25 +0000 (14:43 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 3 Oct 2015 11:51:39 +0000 (13:51 +0200)
commit92b52680751f95fa275c5a2dfb274de5c320d358
tree0487563477c1b42fe232facaa2f1756c9fff2597
parent0d106a6a020b5605c8a4748b9862af62ef2f8e59
net/mlx4_core: Capping number of requested MSIXs to MAX_MSIX

[ Upstream commit 9293267a3e2a7a2555d8ddc8f9301525e5b03b1b ]

We currently manage IRQs in pool_bm which is a bit field
of MAX_MSIX bits. Thus, allocating more than MAX_MSIX
interrupts can't be managed in pool_bm.
Fixing this by capping number of requested MSIXs to
MAX_MSIX.

Signed-off-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/mellanox/mlx4/main.c