projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b8f5595
)
iw_cxgb4: gracefully handle unknown CQE status errors
author
Hariprasad S
<hariprasad@chelsio.com>
Mon, 27 Jul 2015 08:38:14 +0000
(14:08 +0530)
committer
Doug Ledford
<dledford@redhat.com>
Tue, 28 Jul 2015 15:24:51 +0000
(11:24 -0400)
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>
drivers/infiniband/hw/cxgb4/cq.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/cq.c
b/drivers/infiniband/hw/cxgb4/cq.c
index c7aab48f07cdfcdebf3efb6374416619c9095e04..92d518382a9fce90c3e1dbae45034675072da274 100644
(file)
--- 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: