]> git.baikalelectronics.ru Git - kernel.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)
committerDavid S. Miller <davem@davemloft.net>
Thu, 27 Aug 2015 23:40:26 +0000 (16:40 -0700)
commitf520e16431dfa400f8f8857709330eaaaa5cbb39
tree9234c55a6fb629b06f97ed700c0b6f45a9c325a0
parent58644103da517111a6e1bcc556a4a05da31c7b92
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