projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
254cd25
)
RDMA/bnxt_re: Fix return value of poll routine
author
Devesh Sharma
<
[email protected]
>
Thu, 29 Jun 2017 19:28:17 +0000
(12:28 -0700)
committer
Doug Ledford
<
[email protected]
>
Thu, 20 Jul 2017 15:20:50 +0000
(11:20 -0400)
Fix the incorrect reporting of number of polled
entries by taking into account the max CQ depth
in the driver.
Signed-off-by: Devesh Sharma <
[email protected]
>
Signed-off-by: Selvin Xavier <
[email protected]
>
Reviewed-by: Leon Romanovsky <
[email protected]
>
Signed-off-by: Doug Ledford <
[email protected]
>
drivers/infiniband/hw/bnxt_re/ib_verbs.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/bnxt_re/ib_verbs.c
b/drivers/infiniband/hw/bnxt_re/ib_verbs.c
index 7b17030d2696c83fca42ffa11a456e37fdf5e567..b92a06d17186b5b81d08bcbc7632b5204d53e1a4 100644
(file)
--- a/
drivers/infiniband/hw/bnxt_re/ib_verbs.c
+++ b/
drivers/infiniband/hw/bnxt_re/ib_verbs.c
@@
-2900,6
+2900,7
@@
int bnxt_re_poll_cq(struct ib_cq *ib_cq, int num_entries, struct ib_wc *wc)
spin_lock_irqsave(&cq->cq_lock, flags);
budget = min_t(u32, num_entries, cq->max_cql);
+ num_entries = budget;
if (!cq->cql) {
dev_err(rdev_to_dev(cq->rdev), "POLL CQ : no CQL to use");
goto exit;