[ofa-general] [PATCH] ib_send_bw -b can hang due to too few CQ entries

Ralph Campbell ralph.campbell at qlogic.com
Thu Aug 6 14:46:44 PDT 2009


On Thu, 2009-08-06 at 14:37 -0700, Sean Hefty wrote:
> >-	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.

Sure. Just above the call to ibv_create_cq(), ctx->rx_depth is set to
	ctx->rx_depth = rx_depth + tx_depth
but the rest of the code does ibv_post_send() and ibv_post_recv()
based on ctx->tx_depth and ctx->rx_depth which means the CQ needs
to be ctx->tx_depth + ctx->rx_depth big.




More information about the general mailing list