svcrdma: Refactor chunk list encoders
authorChuck Lever <chuck.lever@oracle.com>
Mon, 2 Mar 2020 20:02:20 +0000 (15:02 -0500)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Mar 2020 16:04:33 +0000 (12:04 -0400)
commit6fd5034db45c9c0ca57c98f3d5b9a0ce5869eab3
treecf303fd80a0e3deac0ca8781af5388e1e03bf5c4
parent5c266df52701635edfd49415b225fb17ceac5183
svcrdma: Refactor chunk list encoders

Same idea as the receive-side changes I did a while back: use
xdr_stream helpers rather than open-coding the XDR chunk list
encoders. This builds the Reply transport header from beginning to
end without backtracking.

As additional clean-ups, fill in documenting comments for the XDR
encoders and sprinkle some trace points in the new encoding
functions.

Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
include/linux/sunrpc/svc_rdma.h
net/sunrpc/xprtrdma/svc_rdma_backchannel.c
net/sunrpc/xprtrdma/svc_rdma_recvfrom.c
net/sunrpc/xprtrdma/svc_rdma_sendto.c