Commit 820d39f3 authored by Carol L Soto's avatar Carol L Soto Committed by David S. Miller

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: c66fa19c ('net/mlx4: Add EQ pool')
Signed-off-by: default avatarCarol L Soto <clsoto@linux.vnet.ibm.com>
Acked-by: default avatarMatan Barak <matanb@mellanox.com>
Signed-off-by: default avatarOr Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 85121d6e
...@@ -1364,6 +1364,10 @@ int mlx4_test_interrupts(struct mlx4_dev *dev) ...@@ -1364,6 +1364,10 @@ int mlx4_test_interrupts(struct mlx4_dev *dev)
* and performing a NOP command * and performing a NOP command
*/ */
for(i = 0; !err && (i < dev->caps.num_comp_vectors); ++i) { for(i = 0; !err && (i < dev->caps.num_comp_vectors); ++i) {
/* Make sure request_irq was called */
if (!priv->eq_table.eq[i].have_irq)
continue;
/* Temporary use polling for command completions */ /* Temporary use polling for command completions */
mlx4_cmd_use_polling(dev); mlx4_cmd_use_polling(dev);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment