]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
sunrpc: simplify xdr_partial_copy_from_skb
authorChristoph Hellwig <hch@lst.de>
Thu, 15 May 2025 11:48:46 +0000 (13:48 +0200)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 14 Jul 2025 16:46:37 +0000 (12:46 -0400)
commit37149988eaabc3daaa6046015c18173d8d26e0e1
treeeb153bb0ccdcf4de06612a366a204919a669b72e
parent8d43417e93073699b521f603286140415b24968b
sunrpc: simplify xdr_partial_copy_from_skb

csum_partial_copy_to_xdr can handle a checksumming and non-checksumming
case and implements this using a callback, which leads to a lot of
boilerplate code and indirect calls in the fast path.

Switch to storing a need_checksum flag in struct xdr_skb_reader instead
to remove the indirect call and simplify the code.

Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Jeff Layton <jlayton@kernel.org>
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
net/sunrpc/socklib.c