svcrdma: Add a service to register a Fast Reg MR with the device
Subsystems (3)
RFC PATCH 4/9 svcrdma: Add a service to register a Fast Reg MR with the device
Fast Reg MR introduces a new WR type. Add a service to register the region with the adapter and update the completion handling to support completions with a NULL WR context.
Signed-off-by Tom Tucker <[email protected]>
--- include/linux/sunrpc/svc_rdma.h | 1 + net/sunrpc/xprtrdma/svc_rdma_transport.c | 53 ++++++++++++++++++++++++++--- 2 files changed, 48 insertions(+), 6 deletions(-)
include/linux/sunrpc/svc_rdma.h +1 -0
@@ -219,6 +219,7 @@ extern struct svc_rdma_op_ctxt *svc_rdma_get_context(struct svcxprt_rdma *);extern void svc_rdma_put_context (struct svc_rdma_op_ctxt *,int );extern struct svc_rdma_req_map *svc_rdma_get_req_map (void );extern void svc_rdma_put_req_map (struct svc_rdma_req_map *); +extern int svc_rdma_fastreg (struct svcxprt_rdma *,struct svc_rdma_fastreg_mr *); extern struct svc_rdma_fastreg_mr *svc_rdma_get_frmr(struct
svcxprt_rdma *);
extern void svc_rdma_put_frmr(struct svcxprt_rdma *,
struct svc_rdma_fastreg_mr *);
net/sunrpc/xprtrdma/svc_rdma_transport.c +47 -6
83 lines not on this page · raw message