]> git.karo-electronics.de Git - karo-tx-linux.git/commit
svcrdma: Add recvfrom helpers to svc_rdma_rw.c
authorChuck Lever <chuck.lever@oracle.com>
Fri, 23 Jun 2017 21:18:24 +0000 (17:18 -0400)
committerJ. Bruce Fields <bfields@redhat.com>
Wed, 12 Jul 2017 19:54:56 +0000 (15:54 -0400)
commit026d958b38c628a1b4ced534808945365e2747a5
treeb552e8b445f5bb2df30317682c21ac7e09bc4781
parent8c6ae4980e70395cbdfdf605c29673c5a6a89d9a
svcrdma: Add recvfrom helpers to svc_rdma_rw.c

svc_rdma_rw.c already contains helpers for the sendto path.
Introduce helpers for the recvfrom path.

The plan is to replace the local NFSD bespoke code that constructs
and posts RDMA Read Work Requests with calls to the rdma_rw API.
This shares code with other RDMA-enabled ULPs that manages the gory
details of buffer registration and posting Work Requests.

This new code also puts all RDMA_NOMSG-specific logic in one place.

Lastly, the use of rqstp->rq_arg.pages is deprecated in favor of
using rqstp->rq_pages directly, for clarity.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Signed-off-by: J. Bruce Fields <bfields@redhat.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_rw.c