projects/linux·commit 3661df17

iw_cxgb4: gracefully handle unknown CQE status errors

3661df17 · Hariprasad S <[email protected]> · 2015-07-27 14:08:14 +05:30

c4iw_poll_cq_on() shouldn't fail the poll operation just because
the CQE status is unknown.  Rather, it should map this to the
"fatal error" status and log the anomaly.

Signed-off-by: Steve Wise <[email protected]>
Signed-off-by: Hariprasad Shenai <[email protected]>
Signed-off-by: Doug Ledford <[email protected]>
Commit
3661df179bfbd1bb21cf2c782d3c5c084ebe3cf4
Parents
b8f5595e

Changes

1 files changed · +1 −1

FileStatusAddDelContent
drivers/infiniband/hw/cxgb4/cq.cmodified+1−1View file

drivers/infiniband/hw/cxgb4/cq.c

View file
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c
index c7aab48..92d5183 100644
--- a/drivers/infiniband/hw/cxgb4/cq.c
+++ b/drivers/infiniband/hw/cxgb4/cq.c
@@ -814,7 +814,7 @@ static int c4iw_poll_cq_one(struct c4iw_cq *chp, struct ib_wc *wc)
printk(KERN_ERR MOD
"Unexpected cqe_status 0x%x for QPID=0x%0x\n",
CQE_STATUS(&cqe), CQE_QPID(&cqe));
- ret = -EINVAL;
+ wc->status = IB_WC_FATAL_ERR;
}
}
out: