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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 23:40:26 +0000 (16:40 -0700)
commit9293267a3e2a7a2555d8ddc8f9301525e5b03b1b
tree9234c55a6fb629b06f97ed700c0b6f45a9c325a0
parentb22fbf22f8469d8cacb6fcf5d266426826e1137d
net/mlx4_core: Capping number of requested MSIXs to MAX_MSIX

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>
drivers/net/ethernet/mellanox/mlx4/main.c