]> www.infradead.org Git - users/hch/misc.git/commit
sunrpc: simplify xdr_partial_copy_from_skb
authorChristoph Hellwig <hch@lst.de>
Mon, 17 Feb 2025 07:28:07 +0000 (08:28 +0100)
committerChristoph Hellwig <hch@lst.de>
Tue, 13 May 2025 08:23:19 +0000 (10:23 +0200)
commit3426871282cad9dff846e62f2d6fd44ecb9f2b63
tree658f848d26a325622c1c37740c0548fdec6f7e08
parentf5ffdfc36c45c11f25bead67f7b47e5b34eca818
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 no_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>
net/sunrpc/socklib.c