net/mlx4: Fix firmware command timeout during interrupt test
authorEugenia Emantayev <eugenia@mellanox.com>
Thu, 27 Oct 2016 13:27:20 +0000 (16:27 +0300)
committerDavid S. Miller <davem@davemloft.net>
Sat, 29 Oct 2016 20:23:48 +0000 (16:23 -0400)
commit6f2e0d2c3bf0f8d322ab7516c57340c7189cca02
tree55851bcd88ea613810ba9ddb9e5f0260c53f5ce9
parent81d184199e328fdad5633da139a10337327154e0
net/mlx4: Fix firmware command timeout during interrupt test

Currently interrupt test that is part of ethtool selftest runs the
check over all interrupt vectors of the device.
In mlx4_en package part of interrupt vectors are uninitialized since
mlx4_ib doesn't exist. This causes NOP FW command to time out.
Change logic to test current port interrupt vectors only.

Signed-off-by: Eugenia Emantayev <eugenia@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx4/en_selftest.c
drivers/net/ethernet/mellanox/mlx4/eq.c
include/linux/mlx4/device.h