diff options
author | Hariprasad S <hariprasad@chelsio.com> | 2015-07-27 04:38:14 -0400 |
---|---|---|
committer | Doug Ledford <dledford@redhat.com> | 2015-07-28 11:24:51 -0400 |
commit | 3661df179bfbd1bb21cf2c782d3c5c084ebe3cf4 (patch) | |
tree | 04423debf2ae59223977d068c1d96c14e329e360 | |
parent | b8f5595eb96c9fce1c907d13e89581e5061edf2e (diff) |
iw_cxgb4: gracefully handle unknown CQE status errors
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 <swise@opengridcomputing.com>
Signed-off-by: Hariprasad Shenai <hariprasad@chelsio.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
-rw-r--r-- | drivers/infiniband/hw/cxgb4/cq.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/hw/cxgb4/cq.c b/drivers/infiniband/hw/cxgb4/cq.c index c7aab48f07cd..92d518382a9f 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) | |||
814 | printk(KERN_ERR MOD | 814 | printk(KERN_ERR MOD |
815 | "Unexpected cqe_status 0x%x for QPID=0x%0x\n", | 815 | "Unexpected cqe_status 0x%x for QPID=0x%0x\n", |
816 | CQE_STATUS(&cqe), CQE_QPID(&cqe)); | 816 | CQE_STATUS(&cqe), CQE_QPID(&cqe)); |
817 | ret = -EINVAL; | 817 | wc->status = IB_WC_FATAL_ERR; |
818 | } | 818 | } |
819 | } | 819 | } |
820 | out: | 820 | out: |