aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Morgenstein <jackm@dev.mellanox.co.il>2007-04-19 11:53:16 +0300
committerRoland Dreier <rolandd@cisco.com>2007-04-19 07:04:50 -0700
commit6b35f704989d882fd5d1d42171962363ebebe554 (patch)
tree5bf4325e09150ccfe92024768cace92b038dfe31
parent3cf2867c0df9ed00d44ee4b8d34ea5cd54718ca4 (diff)
downloadlibmlx4-6b35f704989d882fd5d1d42171962363ebebe554.tar.gz
Fix CQ size sanity check
The maximum permissible number of CQEs per CQ for Hermon is 0x3fffff, so we need to fix the sanity check in mlx4_create_cq() accordingly. Signed-off-by: Jack Morgenstein <jackm@dev.mellanox.co.il> Signed-off-by: Roland Dreier <rolandd@cisco.com>
-rw-r--r--src/verbs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/verbs.c b/src/verbs.c
index a74161f..1c56f08 100644
--- a/src/verbs.c
+++ b/src/verbs.c
@@ -170,7 +170,7 @@ struct ibv_cq *mlx4_create_cq(struct ibv_context *context, int cqe,
int ret;
/* Sanity check CQ size before proceeding */
- if (cqe > 131072)
+ if (cqe > 0x3fffff)
return NULL;
cq = malloc(sizeof *cq);