moving the QP into the IBV_QPS_ERR state by using ibv_modify_qp() will flush all its WQEs (SQ and RQ) to the associated CQ(s) where they can be reaped. Those WRs will have the IBV_WC_WR_FLUSH_ERR status.
bernard. [email protected] wrote on 07/05/2011 06:54:46 PM: > ren yufei <[email protected]> > Sent by: [email protected] > > 07/05/2011 07:00 PM > > Please respond to > ren yufei <[email protected]> > > To > > "[email protected]" <[email protected]> > > cc > > Tan Li <[email protected]> > > Subject > > How to recycle recv WR > > Hi, > > Suppose a WR has been posted to the receive queue by ibv_post_recv. > How could the app recycle this work request or say remove this WR > from receive queue? (Except the app got cq event - IBV_WC_RECV). > My app pre-post a list of receive buffer into the receive queue, and > those tasks should be removed from the rq and ibv_dereg_mr before > the app exit. That would be more gentle than exit() directly. > > > Thanks. > > Yufei -- To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html
