diff options
author | Chuck Lever <chuck.lever@oracle.com> | 2020-03-29 22:44:13 +0200 |
---|---|---|
committer | Chuck Lever <chuck.lever@oracle.com> | 2020-07-13 23:28:24 +0200 |
commit | f60a08697d28b138c73b14c3204947bc8e637197 (patch) | |
tree | fe7668654225e1352e5bbd2fb7dbc5375352de52 /net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | |
parent | SUNRPC: Add helpers for decoding list discriminators symbolically (diff) | |
download | linux-f60a08697d28b138c73b14c3204947bc8e637197.tar.xz linux-f60a08697d28b138c73b14c3204947bc8e637197.zip |
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/svc_rdma_recvfrom.c')
-rw-r--r-- | net/sunrpc/xprtrdma/svc_rdma_recvfrom.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c index 5e78067889f3..c0587d3cd389 100644 --- a/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c +++ b/net/sunrpc/xprtrdma/svc_rdma_recvfrom.c @@ -466,9 +466,7 @@ static bool xdr_check_write_chunk(struct svc_rdma_recv_ctxt *rctxt, u32 maxlen) if (!p) return false; - handle = be32_to_cpup(p++); - length = be32_to_cpup(p++); - xdr_decode_hyper(p, &offset); + xdr_decode_rdma_segment(p, &handle, &length, &offset); trace_svcrdma_decode_wseg(handle, length, offset); total += length; |