]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: psp: update the TCP MSS to reflect PSP packet overhead
authorJakub Kicinski <kuba@kernel.org>
Wed, 17 Sep 2025 00:09:36 +0000 (17:09 -0700)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 18 Sep 2025 10:32:06 +0000 (12:32 +0200)
commite97269257fe437910cddc7c642a636ca3cf9fb1d
tree6a45064cf93eea7adb04dbfcc2b4af632aa2e351
parent6b46ca260e2290e3453d1355ab5b6d283d73d780
net: psp: update the TCP MSS to reflect PSP packet overhead

PSP eats 40B of header space. Adjust MSS appropriately.

We can either modify tcp_mtu_to_mss() / tcp_mss_to_mtu()
or reuse icsk_ext_hdr_len. The former option is more TCP
specific and has runtime overhead. The latter is a bit
of a hack as PSP is not an ext_hdr. If one squints hard
enough, UDP encap is just a more practical version of
IPv6 exthdr, so go with the latter. Happy to change.

Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Daniel Zahka <daniel.zahka@gmail.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250917000954.859376-10-daniel.zahka@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/psp/functions.h
include/net/psp/types.h
net/ipv4/tcp_ipv4.c
net/ipv6/ipv6_sockglue.c
net/ipv6/tcp_ipv6.c
net/psp/psp_sock.c