>- ctx->cq = ibv_create_cq(ctx->context, ctx->rx_depth, NULL, ctx->channel, >0); >+ ctx->cq = ibv_create_cq(ctx->context, ctx->tx_depth + ctx->rx_depth, >+ NULL, ctx->channel, 0); I'm looking at a windows port of this test, but at least there, rx_depth is set to rx_depth + tx_depth.