]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: fold __skb_checksum() into skb_checksum()
authorEric Biggers <ebiggers@google.com>
Mon, 19 May 2025 17:50:08 +0000 (10:50 -0700)
committerJakub Kicinski <kuba@kernel.org>
Wed, 21 May 2025 22:40:16 +0000 (15:40 -0700)
commit70c96c7cb9f035d5b960021f2450afa6240e66b4
tree8c3ca704848ee6a921b8a43ca65f7e25cba01368
parent99de9d4022e5004f95f425f798f0aa01e87949ff
net: fold __skb_checksum() into skb_checksum()

Now that the only remaining caller of __skb_checksum() is
skb_checksum(), fold __skb_checksum() into skb_checksum().  This makes
struct skb_checksum_ops unnecessary, so remove that too and simply do
the "regular" net checksum.  It also makes the wrapper functions
csum_partial_ext() and csum_block_add_ext() unnecessary, so remove those
too and just use the underlying functions.

Signed-off-by: Eric Biggers <ebiggers@google.com>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Link: https://patch.msgid.link/20250519175012.36581-7-ebiggers@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/linux/skbuff.h
include/net/checksum.h
net/core/skbuff.c