public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* need pointer to Understand how to use IBV_WR_RDMA_WRITE_WITH_IMM
@ 2011-06-07 12:23 Benoit Hudzia
       [not found] ` <BANLkTikC6jPFJm=MxT5oNDoJH4Ex+j41XA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
  0 siblings, 1 reply; 7+ messages in thread
From: Benoit Hudzia @ 2011-06-07 12:23 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA

I am uncertain if this is the correct place for such email, please
point me to an appropriate mailing list place if not.

I would like to use IBV_WR_RDMA_WRITE_WITH_IMM , however I am facing
difficulty to find documentation or example on how to use such
feature.  The idea would be to do an RDMA write and wake up the peer
upon reception in order to process the received data.

What I understand from IBV_WR_RDMA_WRITE_WITH_IMM:

On the server side:

1.      You create your ibv_wr
2.      You set the opcode to IBV_WR_RDMA_WRITE_WITH_IMM
3.      You fill the imm_data of the wr
      a.       Question : can i fill the imm_data with arbitrary data?
I would like to use this field on the peer side to identify the
request
4.      Do the  ibv_post send



On the peer side:

As i understand , IBV_WR_RDMA_WRITE_WITH_IMM consume a Receive Request
in the responder side. So it means i need to post a recv request with
ibv_post_recv .

However i cannot documentation find (maybe i didn’t search hard
enough)  how to construct such request.

* Should i just create an empty / zeroed  :  ibv_recv_wr containing an
empty ibv_sge (or no sge)?
* Can i prefill the recv queu with multiple request ?

On the work completion side within my CQ event handler:

* I suppose i should look for IBV_WC_RECV_RDMA_WITH_IMM
* Then can I use/ check the imm_data in the WC to identify the operation?



Basically at the moment i am struggling to understand how to handle /
detect the rdma write with imm on the receiver side.



Any pointer / code example/ explanation will be greatly appreciated.



Regards

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

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2011-06-08 18:35 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-06-07 12:23 need pointer to Understand how to use IBV_WR_RDMA_WRITE_WITH_IMM Benoit Hudzia
     [not found] ` <BANLkTikC6jPFJm=MxT5oNDoJH4Ex+j41XA-JsoAwUIsXosN+BqQ9rBEUg@public.gmane.org>
2011-06-07 14:18   ` Steven Dake
     [not found]     ` <4DEE3326.9050105-H+wXaHxf7aLQT0dZR+AlfA@public.gmane.org>
2011-06-07 16:31       ` Jason Gunthorpe
     [not found]         ` <20110607163111.GA24005-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-06-07 16:36           ` Steve Wise
2011-06-07 14:23   ` Hefty, Sean
2011-06-07 16:43   ` Jason Gunthorpe
     [not found]     ` <20110607164333.GB24005-ePGOBjL8dl3ta4EC/59zMFaTQe2KTcn/@public.gmane.org>
2011-06-08 18:35       ` Benoit Hudzia

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox