public inbox for linux-rdma@vger.kernel.org
 help / color / mirror / Atom feed
* WRITE_WITH_IMMEDIATE target semantic
@ 2010-09-20 16:32 Bernard Metzler
       [not found] ` <OF2575B7D8.9367EBA3-ONC12577A4.0057C50D-C12577A4.005AD45D-Xeyd2O9EBijQT0dZR+AlfA@public.gmane.org>
  0 siblings, 1 reply; 3+ messages in thread
From: Bernard Metzler @ 2010-09-20 16:32 UTC (permalink / raw)
  To: linux-rdma-u79uwXL29TY76Z2rM5mHXA


Hello,

while currently only supported by the InfiniBand transport,
the libibverbs define a IBV_WR_RDMA_WRITE_WITH_IMM work request.
Could someone please explain what the action at the peer side would be
if a WRITE with immediate data comes in? One possible action would be
to:

(1) fetch the next receive queue / shared receive queue entry and
    store the value of the immediate data (32 bits at the API)
    along with that RQE.

(2) place data according to the inbound WRITE hdr but ignore the
    SGL of the RQE.

(3) after completion processing the WRITE:
    (1) create a work completion of type IBV_WC_RECV_RDMA_WITH_IMM,
    (2) transfer the immediate data value into the 'imm_data' field,
    (3) set the WC's 'byte_len' to the received WRITE payload,
    (4) set IBV_WC_WITH_IMM at 'wc_flags', and
    (5) append the WC to the associated CQ.

With that, the receiver would have to carefully inspect the operation
type of the work completion, since a receive queue entry may turn into
a IBV_WC_RECV or IBV_WC_RECV_RDMA_WITH_IMM. In the second case, the data
are placed according to the senders opinion, which may not be the
result a non-aware receiver would expect.

correct?


Many thanks for clarification!
Bernard.

--
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] 3+ messages in thread

end of thread, other threads:[~2010-09-20 17:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-20 16:32 WRITE_WITH_IMMEDIATE target semantic Bernard Metzler
     [not found] ` <OF2575B7D8.9367EBA3-ONC12577A4.0057C50D-C12577A4.005AD45D-Xeyd2O9EBijQT0dZR+AlfA@public.gmane.org>
2010-09-20 17:23   ` Jason Gunthorpe
2010-09-20 17:25   ` Hefty, Sean

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