• Chuck Lever's avatar
    svcrdma: Improve Read chunk sanity checking · e77340e0
    Chuck Lever authored
    Identify malformed transport headers and unsupported chunk
    combinations as early as possible.
    
    - Reject RPC-over-RDMA messages that contain more than one Read chunk,
      since this implementation currently does not support more than one
      per RPC transaction.
    
    - Ensure that segment lengths are not crazy.
    
    - Remove the segment count check. With a 1KB inline threshold, the
      largest number of Read segments that can be conveyed is about 40
      (for a RDMA_NOMSG Call message). This is nowhere near
      RPCSVC_MAXPAGES. As far as I can tell, that was just a sanity
      check and does not enforce an implementation limit.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    e77340e0
svc_rdma_recvfrom.c 23.7 KB