Thanks.

However, it seems inconvenient for app programmer to handle this. Is it 
possible for OFED to offer an API to cancel the tasks which is already posted 
to the recv queue?

Yufei




----- Original Message -----
From: Bernard Metzler <b...@zurich.ibm.com>
To: ren yufei <renyufe...@yahoo.com.cn>
Cc: "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>; 
linux-rdma-ow...@vger.kernel.org; Tan Li <ta...@ic.sunysb.edu>
Sent: Tuesday, July 5, 2011 5:21 PM
Subject: Re: How to recycle recv WR

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.

linux-rdma-ow...@vger.kernel.org wrote on 07/05/2011 06:54:46 PM:

> ren yufei <renyufe...@yahoo.com.cn> 
> Sent by: linux-rdma-ow...@vger.kernel.org
> 
> 07/05/2011 07:00 PM
> 
> Please respond to
> ren yufei <renyufe...@yahoo.com.cn>
> 
> To
> 
> "linux-rdma@vger.kernel.org" <linux-rdma@vger.kernel.org>
> 
> cc
> 
> Tan Li <ta...@ic.sunysb.edu>
> 
> 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 majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to