]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commita3d84f88796cd6c49d805fb97a51bb0cefb41078
tree55851bcd88ea613810ba9ddb9e5f0260c53f5ce9
parentf769f453944739fe1cb1c81d3e60c4727c52c744
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