summaryrefslogtreecommitdiffstats
path: root/drivers/infiniband
diff options
context:
space:
mode:
authorHariprasad S <hariprasad@chelsio.com>2015-07-27 14:08:14 +0530
committerDoug Ledford <dledford@redhat.com>2015-07-28 11:24:51 -0400
commit3661df179bfbd1bb21cf2c782d3c5c084ebe3cf4 (patch)
tree04423debf2ae59223977d068c1d96c14e329e360 /drivers/infiniband
parentb8f5595eb96c9fce1c907d13e89581e5061edf2e (diff)
downloadtalos-obmc-linux-3661df179bfbd1bb21cf2c782d3c5c084ebe3cf4.tar.gz
talos-obmc-linux-3661df179bfbd1bb21cf2c782d3c5c084ebe3cf4.zip
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>
Diffstat (limited to 'drivers/infiniband')
-rw-r--r--drivers/infiniband/hw/cxgb4/cq.c2
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)
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:
OpenPOWER on IntegriCloud