[ofw] RDMA - send for multiple packets (can we use same key and vaddr + offset)

rakesh thakur rakeshthakur11 at gmail.com
Wed May 14 08:51:31 PDT 2008


Hi ,


I have written the test case for doing RDMA_WRITE from one pc to another
(Windows)

In the receiver side we have registered a big buffer and obtained the key
and vaddr,
This key and vaddr is transferred to the remote side during connection.
MAX_PACKET  = 10;
pkt_size = 1024; // 1KBytes
Buffer_size = MAX_PACKET * pkt_size;

I am able to successfully do a RDMA_WRITE operation with the given key and
given vaddr for the first packet
*send_wr.remote_ops.rkey = rdma_key; // #RDMA#
send_wr.remote_ops.vaddr = rdma_vaddr; // #RDMA#*

But I am not able to transfer the second packet by changing the rdma_vaddr
*send_wr.remote_ops.rkey = rdma_key; // #RDMA#
send_wr.remote_ops.vaddr = rdma_vaddr + pkt_num*pkt_size; // #RDMA to the
next memory location in the same registered buffer*

I am not sure whether it is legal to give a different virtual address(vaddr
+ offset) associated rdma_key with vaddr for RDMA_WRITE operation?
OR
Do i have to register all buffers individually and obtain different key
associated with it?
OR
Is there a way out to do RDMA_WRITE at different offsets of the
memory(registered)  using associated (only) one key?

Any suggestion or direction towards proper thread will be useful.

Thanks
Rakesh Thakur
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openfabrics.org/pipermail/ofw/attachments/20080514/8e3dcbd7/attachment.html>


More information about the ofw mailing list