diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-03-29 16:44:13 -0400 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-07-13 17:28:24 -0400 |
commit | f60a08697d28b138c73b14c3204947bc8e637197 (patch) | |
tree | fe7668654225e1352e5bbd2fb7dbc5375352de52 /net/sunrpc/xprtrdma/rpc_rdma.c | |
parent | 07e9a6325a35fb9655f7b52e2b9dc632da6eef51 (diff) | |
download | linux-f60a08697d28b138c73b14c3204947bc8e637197.tar.bz2 |
svcrdma: Add common XDR decoders for RDMA and Read segments
Clean up: De-duplicate some code.
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
Diffstat (limited to 'net/sunrpc/xprtrdma/rpc_rdma.c')
-rw-r--r-- | net/sunrpc/xprtrdma/rpc_rdma.c | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/net/sunrpc/xprtrdma/rpc_rdma.c b/net/sunrpc/xprtrdma/rpc_rdma.c index feecd1f55f18..5461f01eeca6 100644 --- a/net/sunrpc/xprtrdma/rpc_rdma.c +++ b/net/sunrpc/xprtrdma/rpc_rdma.c @@ -1176,10 +1176,7 @@ static int decode_rdma_segment(struct xdr_stream *xdr, u32 *length) if (unlikely(!p)) return -EIO; - handle = be32_to_cpup(p++); - *length = be32_to_cpup(p++); - xdr_decode_hyper(p, &offset); - + xdr_decode_rdma_segment(p, &handle, length, &offset); trace_xprtrdma_decode_seg(handle, *length, offset); return 0; } |