]> www.infradead.org Git - users/jedix/linux-maple.git/commit
bpf: Clarify role of BPF_F_RECOMPUTE_CSUM
authorPaul Chaignon <paul.chaignon@gmail.com>
Tue, 8 Apr 2025 09:00:04 +0000 (11:00 +0200)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 10 Apr 2025 03:07:31 +0000 (20:07 -0700)
commitb412fd6bcc4c1696b0674434f56b198950c0e2bf
treedb209981bf4fde9f58bab36b8df13fd343eaf452
parent690d43d3b36b154d39eb7b0283f5f65582a49d90
bpf: Clarify role of BPF_F_RECOMPUTE_CSUM

BPF_F_RECOMPUTE_CSUM doesn't update the actual L3 and L4 checksums in
the packet, but simply updates skb->csum (according to skb->ip_summed).
This patch clarifies that to avoid confusions.

Signed-off-by: Paul Chaignon <paul.chaignon@gmail.com>
Link: https://lore.kernel.org/r/ff6895d42936f03dbb82334d8bcfd50e00c79086.1744102490.git.paul.chaignon@gmail.com
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
include/uapi/linux/bpf.h
tools/include/uapi/linux/bpf.h