diff mbox series

[for-next,3/7] RDMA/irdma: Make CQP invalid state error non-critical

Message ID 20220705230815.265-4-shiraz.saleem@intel.com (mailing list archive)
State Accepted
Headers show
Series irdma for-next updates 7-5-2022 | expand

Commit Message

Shiraz Saleem July 5, 2022, 11:08 p.m. UTC
From: Mustafa Ismail <mustafa.ismail@intel.com>

The invalid state error returned by the Control Queue-Pair (CQP) is not a
critical error.

Add it to the irdma_noncrit_err_list and drop reporting it as device error
message.

Signed-off-by: Mustafa Ismail <mustafa.ismail@intel.com>
Signed-off-by: Shiraz Saleem <shiraz.saleem@intel.com>
---
 drivers/infiniband/hw/irdma/utils.c | 1 +
 1 file changed, 1 insertion(+)
diff mbox series

Patch

diff --git a/drivers/infiniband/hw/irdma/utils.c b/drivers/infiniband/hw/irdma/utils.c
index ab3c520..fdf4cc8 100644
--- a/drivers/infiniband/hw/irdma/utils.c
+++ b/drivers/infiniband/hw/irdma/utils.c
@@ -652,6 +652,7 @@  static int irdma_wait_event(struct irdma_pci_f *rf,
 };
 
 static const struct irdma_cqp_err_info irdma_noncrit_err_list[] = {
+	{0xffff, 0x8002, "Invalid State"},
 	{0xffff, 0x8006, "Flush No Wqe Pending"},
 	{0xffff, 0x8007, "Modify QP Bad Close"},
 	{0xffff, 0x8009, "LLP Closed"},