On Mon, Sep 20, 2010 at 06:32:05PM +0200, Bernard Metzler wrote:

> 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:

I've used this feature and according to my notes this is broadly
correct. A RWQE is consumed, the HCA doesn't use it for anything, and
the WC has the imm_data set, and the wr_id corrisponds to the RWQE.
The IBA notes the RWQE could be zero length.

The app needs to check for:
        if (wc.opcode & IBV_WC_RECV)
To see if the completion consumed a RWQE.
 
>     (3) set the WC's 'byte_len' to the received WRITE payload,

Hmm, I'm surprised by this, but, yep! pg 632 of the IBA.

Jason
--
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

Reply via email to