projects
/
firefly-linux-kernel-4.4.55.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e24a72a
)
RDMA/cxgb4: Cap CQ size at T4_MAX_IQ_SIZE
author
Steve Wise
<swise@opengridcomputing.com>
Wed, 19 Mar 2014 12:14:38 +0000
(17:44 +0530)
committer
Roland Dreier
<roland@purestorage.com>
Thu, 20 Mar 2014 16:59:04 +0000
(09:59 -0700)
Signed-off-by: Steve Wise <swise@opengridcomputing.com>
Signed-off-by: Roland Dreier <roland@purestorage.com>
drivers/infiniband/hw/cxgb4/cq.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/cxgb4/cq.c
b/drivers/infiniband/hw/cxgb4/cq.c
index e436ead0b32f209af7fcf40908931e0dab6f2e4d..906119f7a43ff6bf43eff73fb3e3ada382929c90 100644
(file)
--- a/
drivers/infiniband/hw/cxgb4/cq.c
+++ b/
drivers/infiniband/hw/cxgb4/cq.c
@@
-881,7
+881,7
@@
struct ib_cq *c4iw_create_cq(struct ib_device *ibdev, int entries,
/*
* Make actual HW queue 2x to avoid cdix_inc overflows.
*/
- hwentries =
entries * 2
;
+ hwentries =
min(entries * 2, T4_MAX_IQ_SIZE)
;
/*
* Make HW queue at least 64 entries so GTS updates aren't too