]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net/ipv6: Introduce payload_len helpers
authorAlice Mikityanska <alice@isovalent.com>
Thu, 5 Feb 2026 13:39:14 +0000 (15:39 +0200)
committerJakub Kicinski <kuba@kernel.org>
Sat, 7 Feb 2026 04:50:03 +0000 (20:50 -0800)
commitb2936b4fd56294e49d6c8e9152ea6c4982757c7d
tree09239f6aac9c4482707e969f395da685a5d6b1f0
parent5826eec8710c214f02f253c165d66a230f5a86c3
net/ipv6: Introduce payload_len helpers

The next commits will transition away from using the hop-by-hop
extension header to encode packet length for BIG TCP. Add wrappers
around ip6->payload_len that return the actual value if it's non-zero,
and calculate it from skb->len if payload_len is set to zero (and a
symmetrical setter).

The new helpers are used wherever the surrounding code supports the
hop-by-hop jumbo header for BIG TCP IPv6, or the corresponding IPv4 code
uses skb_ip_totlen (e.g., in include/net/netfilter/nf_tables_ipv6.h).

No behavioral change in this commit.

Signed-off-by: Alice Mikityanska <alice@isovalent.com>
Acked-by: Paolo Abeni <pabeni@redhat.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20260205133925.526371-2-alice.kernel@fastmail.im
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
12 files changed:
include/linux/ipv6.h
include/net/ipv6.h
include/net/netfilter/nf_tables_ipv6.h
net/bridge/br_netfilter_ipv6.c
net/bridge/netfilter/nf_conntrack_bridge.c
net/ipv6/ip6_input.c
net/ipv6/ip6_offload.c
net/ipv6/output_core.c
net/netfilter/ipvs/ip_vs_xmit.c
net/netfilter/nf_conntrack_ovs.c
net/netfilter/nf_log_syslog.c
net/sched/sch_cake.c