kernel_optimize_test/net/sunrpc/xprtrdma
Roland Dreier 0f39cf3d54 IB/core: Add support for "send with invalidate" work requests
Add a new IB_WR_SEND_WITH_INV send opcode that can be used to mark a
"send with invalidate" work request as defined in the iWARP verbs and
the InfiniBand base memory management extensions.  Also put "imm_data"
and a new "invalidate_rkey" member in a new "ex" union in struct
ib_send_wr. The invalidate_rkey member can be used to pass in an
R_Key/STag to be invalidated.  Add this new union to struct
ib_uverbs_send_wr.  Add code to copy the invalidate_rkey field in
ib_uverbs_post_send().

Fix up low-level drivers to deal with the change to struct ib_send_wr,
and just remove the imm_data initialization from net/sunrpc/xprtrdma/,
since that code never does any send with immediate operations.

Also, move the existing IB_DEVICE_SEND_W_INV flag to a new bit, since
the iWARP drivers currently in the tree set the bit.  The amso1100
driver at least will silently fail to honor the IB_SEND_INVALIDATE bit
if passed in as part of userspace send requests (since it does not
implement kernel bypass work request queueing).  Remove the flag from
all existing drivers that set it until we know which ones are OK.

The values chosen for the new flag is not consecutive to avoid clashing
with flags defined in the XRC patches, which are not merged yet but
which are already in use and are likely to be merged soon.

This resurrects a patch sent long ago by Mikkel Hagen <mhagen@iol.unh.edu>.

Signed-off-by: Roland Dreier <rolandd@cisco.com>
2008-04-16 21:09:32 -07:00
..
Makefile rdma: makefile 2008-02-01 16:42:14 -05:00
rpc_rdma.c SUNRPC: Fix an unnecessary implicit type cast in rpcrdma_count_chunks() 2008-01-30 02:05:42 -05:00
svc_rdma_marshal.c rdma: ONCRPC RDMA protocol marshalling 2008-02-01 16:42:14 -05:00
svc_rdma_recvfrom.c SVCRDMA: Check num_sge when setting LAST_CTXT bit 2008-03-26 11:24:19 -07:00
svc_rdma_sendto.c SVCRDMA: Fix erroneous BUG_ON in send_write 2008-03-12 12:37:34 -07:00
svc_rdma_transport.c SVCRDMA: Add xprt refs to fix close/unmount crash 2008-03-12 12:37:34 -07:00
svc_rdma.c rdma: SVCRDMA Transport Module 2008-02-01 16:42:14 -05:00
transport.c SUNRPC: Fix a nfs4 over rdma transport oops 2008-03-07 14:35:32 -05:00
verbs.c IB/core: Add support for "send with invalidate" work requests 2008-04-16 21:09:32 -07:00
xprt_rdma.h