]> www.infradead.org Git - users/willy/pagecache.git/commit
RDMA/bnxt_re: Fix error recovery sequence
authorKalesh AP <kalesh-anakkur.purayil@broadcom.com>
Tue, 31 Dec 2024 02:50:08 +0000 (08:20 +0530)
committerLeon Romanovsky <leon@kernel.org>
Tue, 31 Dec 2024 13:28:36 +0000 (08:28 -0500)
commite6178bf78d0378c2d397a6aafaf4882d0af643fa
treee304279bac5b627a7450c2a8eac598cd67d90bcc
parentfb514b31395946022f13a08e06a435f53cf9e8b3
RDMA/bnxt_re: Fix error recovery sequence

Fixed to return ENXIO from __send_message_basic_sanity()
to indicate that device is in error state. In the case of
ERR_DEVICE_DETACHED state, the driver should not post the
commands to the firmware as it will time out eventually.

Removed bnxt_re_modify_qp() call from bnxt_re_dev_stop()
as it is a no-op.

Fixes: cc5b9b48d447 ("RDMA/bnxt_re: Recover the device when FW error is detected")
Signed-off-by: Kalesh AP <kalesh-anakkur.purayil@broadcom.com>
Signed-off-by: Kashyap Desai <kashyap.desai@broadcom.com>
Link: https://patch.msgid.link/20241231025008.2267162-1-kalesh-anakkur.purayil@broadcom.com
Reviewed-by: Selvin Xavier <selvin.xavier@broadcom.com>
Signed-off-by: Leon Romanovsky <leon@kernel.org>
drivers/infiniband/hw/bnxt_re/main.c
drivers/infiniband/hw/bnxt_re/qplib_rcfw.c