• Chuck Lever's avatar
    svcrdma: Clean up RPC-over-RDMA Call header decoder · 647e18e3
    Chuck Lever authored
    Replace C structure-based XDR decoding with pointer arithmetic.
    Pointer arithmetic is considered more portable.
    
    Rename the "decode" functions. Nothing is decoded here, they
    perform only transport header sanity checking. Use existing XDR
    naming conventions to help readability.
    
    Straight-line the hot path:
     - relocate the dprintk call sites out of line
     - remove unnecessary byte-swapping
     - reduce count of conditional branches
    
    Deprecate RDMA_MSGP. It's not properly spec'd by RFC5666, and
    therefore never used by any V1 client.
    Signed-off-by: default avatarChuck Lever <chuck.lever@oracle.com>
    Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
    Signed-off-by: default avatarJ. Bruce Fields <bfields@redhat.com>
    647e18e3
svc_rdma_marshal.c 6.68 KB