]> git.baikalelectronics.ru Git - kernel.git/commit
bnxt_en: Fix offline ethtool selftest with RDMA enabled
authorMichael Chan <michael.chan@broadcom.com>
Sun, 20 Feb 2022 09:05:48 +0000 (04:05 -0500)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 Feb 2022 13:47:14 +0000 (13:47 +0000)
commitdbbb3aae3097ef6aab3c885440c17e8b70dcda3c
tree9063614ad9683e1398bfe9bca1b47c72614dde6c
parent73daaf822bca48d7ba56c4a4f7ff8e8055564d6f
bnxt_en: Fix offline ethtool selftest with RDMA enabled

For offline (destructive) self tests, we need to stop the RDMA driver
first.  Otherwise, the RDMA driver will run into unrecoverable errors
when destructive firmware tests are being performed.

The irq_re_init parameter used in the half close and half open
sequence when preparing the NIC for offline tests should be set to
true because the RDMA driver will free all IRQs before the offline
tests begin.

Fixes: ccc1290d5af9 ("bnxt_en: Add external loopback test to ethtool selftest.")
Reviewed-by: Edwin Peer <edwin.peer@broadcom.com>
Reviewed-by: Ben Li <ben.li@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnxt/bnxt.c
drivers/net/ethernet/broadcom/bnxt/bnxt_ethtool.c