• Chuck Lever's avatar
    svcrdma: Add recvfrom helpers to svc_rdma_rw.c · 026d958b
    Chuck Lever authored
    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: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    026d958b
svc_rdma_rw.c 24.6 KB