svcrdma: Add Fast Reg MR Data Types
authorTom Tucker <tom@opengridcomputing.com>
Tue, 30 Sep 2008 18:06:13 +0000 (13:06 -0500)
committerTom Tucker <tom@opengridcomputing.com>
Fri, 3 Oct 2008 20:39:58 +0000 (15:39 -0500)
commit0d3ebb9ae9f9c887518fd4c81a68084111d154d7
treedd6e68bb5f9f25c1c212fec567ba68e13d214e58
parentbc45eb8950b8c14487385cfd2bda1613ca8d9703
svcrdma: Add Fast Reg MR Data Types

Add data types to track Fast Reg Memory Regions. The core data type is
svc_rdma_fastreg_mr that associates a device MR with a host kva and page
list. A field is added to the WR context to keep track of the FRMR
used to map the local memory for an RPC.

An FRMR list and spin lock are added to the transport instance to keep
track of all FRMR allocated for the transport. Also added are device
capability flags to indicate what the memory registration
capabilities are for the underlying device and whether or not fast
memory registration is supported.

Signed-off-by: Tom Tucker <tom@opengridcomputing.com>
include/linux/sunrpc/svc_rdma.h