]> www.infradead.org Git - users/dwmw2/linux.git/commit
net: checksum: Move from32to16() to generic header
authorPuranjay Mohan <puranjay@kernel.org>
Sat, 26 Oct 2024 12:53:36 +0000 (12:53 +0000)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 30 Oct 2024 14:29:59 +0000 (15:29 +0100)
commitdb71aae70e3e646d8ba4cb50e4bd4c281a91c804
treed4e420584ef738a26224803b3c1d726af5f12e25
parent0ab7cd1f18648ab50c4685553ca92e8cdc4a42da
net: checksum: Move from32to16() to generic header

from32to16() is used by lib/checksum.c and also by
arch/parisc/lib/checksum.c. The next patch will use it in the
bpf_csum_diff helper.

Move from32to16() to the include/net/checksum.h as csum_from32to16() and
remove other implementations.

Signed-off-by: Puranjay Mohan <puranjay@kernel.org>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Reviewed-by: Toke Høiland-Jørgensen <toke@redhat.com>
Acked-by: Daniel Borkmann <daniel@iogearbox.net>
Link: https://lore.kernel.org/bpf/20241026125339.26459-2-puranjay@kernel.org
arch/parisc/lib/checksum.c
include/net/checksum.h
lib/checksum.c