[Openib-windows] [PATCH] MTHCA: always treat RKEY in network order

Fabian Tillier ftillier at silverstorm.com
Fri Mar 31 16:30:05 PST 2006


On 3/30/06, Fab Tillier <ftillier at silverstorm.com> wrote:
> Hi Leo,
>
> In testing WSD between the old driver and the new, I discovered that the RKEY is
> not handled quite right.  The stack expects the RKEY to always be returned as a
> network-byte-order token.  Here's a patch that swaps the RKEY returned to users,
> as well as eliminates the swaps required when posting RDMA read or write (or
> atomic) requests.
>
> With this patch, WSD will work with RDMA reads disabled (IBWSD_NO_READ
> environment variable).

To follow up, with this patch, WSD works with MTHCA as the initiator
of all RDMA operations.  If MTHCA is the target of an RDMA, the
request fails with an invalid request error
(IB_WCS_REM_INVALID_REQ_ERR).  So if sending data to a system with
MTHCA installed, using RDMA read will work, if sending data from a
system with MTHCA installed, using RDMA write will work.  In either of
the preceding cases, the peer system must be running the mt23108
driver.

- Fab



More information about the ofw mailing list