Signed-off-by: Roland Dreier <rolandd@cisco.com>
+2005-10-30 Roland Dreier <roland@cisco.com>
+
+ * examples/srq_pingpong.c (pp_init_ctx): Create CQ with rx_depth +
+ num_qp entries, instead of just rx_depth + 1 entries, because
+ there can be one send completion pending for each QP.
+
2005-10-25 Roland Dreier <roland@cisco.com>
* Release version 1.0-rc4.
return NULL;
}
- ctx->cq = ibv_create_cq(ctx->context, rx_depth + 1, NULL,
+ ctx->cq = ibv_create_cq(ctx->context, rx_depth + num_qp, NULL,
ctx->channel, 0);
if (!ctx->cq) {
fprintf(stderr, "Couldn't create CQ\n");