diff options
author | Carol L Soto <clsoto@linux.vnet.ibm.com> | 2015-10-08 08:26:15 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2015-10-09 10:43:38 -0400 |
commit | 820d39f3c497df6c8e040b8dcc7c19eeaa312701 (patch) | |
tree | de2d3fa7d7712972316c4d0a55ffe98345233c41 | |
parent | 85121d6ee6973f98789bf7343f7f636c01e2de19 (diff) |
net/mlx4_core: Avoid failing the interrupts test
Test interrupts fails if not all completion vectors called
request_irq. This case happens if only mlx4_en is loaded and
we have more completion vectors than rx rings.
Fixes: c66fa19c405a ('net/mlx4: Add EQ pool')
Signed-off-by: Carol L Soto <clsoto@linux.vnet.ibm.com>
Acked-by: Matan Barak <matanb@mellanox.com>
Signed-off-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | drivers/net/ethernet/mellanox/mlx4/eq.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/drivers/net/ethernet/mellanox/mlx4/eq.c b/drivers/net/ethernet/mellanox/mlx4/eq.c index 8e81e53c370e..c34488479365 100644 --- a/drivers/net/ethernet/mellanox/mlx4/eq.c +++ b/drivers/net/ethernet/mellanox/mlx4/eq.c | |||
@@ -1364,6 +1364,10 @@ int mlx4_test_interrupts(struct mlx4_dev *dev) | |||
1364 | * and performing a NOP command | 1364 | * and performing a NOP command |
1365 | */ | 1365 | */ |
1366 | for(i = 0; !err && (i < dev->caps.num_comp_vectors); ++i) { | 1366 | for(i = 0; !err && (i < dev->caps.num_comp_vectors); ++i) { |
1367 | /* Make sure request_irq was called */ | ||
1368 | if (!priv->eq_table.eq[i].have_irq) | ||
1369 | continue; | ||
1370 | |||
1367 | /* Temporary use polling for command completions */ | 1371 | /* Temporary use polling for command completions */ |
1368 | mlx4_cmd_use_polling(dev); | 1372 | mlx4_cmd_use_polling(dev); |
1369 | 1373 | ||