From: Andrii Tereshchenko <opensource@andrii.net>
To: Steffen Klassert <steffen.klassert@secunet.com>,
Herbert Xu <herbert@gondor.apana.org.au>,
"David S. Miller" <davem@davemloft.net>
Cc: Eric Dumazet <edumazet@kernel.org>,
Jakub Kicinski <kuba@kernel.org>, Paolo Abeni <pabeni@redhat.com>,
Willem de Bruijn <willemdebruijn.kernel@gmail.com>,
Simon Horman <horms@kernel.org>,
Christian Hopps <chopps@labn.net>,
netdev@vger.kernel.org, ipsec@lists.linux.dev,
linux-kernel@vger.kernel.org,
Andrii Tereshchenko <opensource@andrii.net>
Subject: [PATCH ipsec 0/2] xfrm: iptfs: charge shared fragments to the inner packet's truesize
Date: Sat, 28 Nov 2026 19:00:42 -0700 [thread overview]
Message-ID: <11df3eb5-b410-41bb-9198-b6c64654d029@mid.andrii.net> (raw)
1/2 makes the inner packets that share the outer packet's page fragments
pay for them in truesize. Without it, any sender whose large packets
cross the tunnel can trip a WARN in skb_try_coalesce() on the receiver,
and receive queues hold more than they are charged for. 2/2 adds a
selftest.
Andrii Tereshchenko (2):
xfrm: iptfs: charge shared fragments to the inner packet's truesize
selftests: net: test the truesize of IP-TFS inner packets
MAINTAINERS | 1 +
net/xfrm/xfrm_iptfs.c | 8 +
tools/testing/selftests/net/.gitignore | 1 +
tools/testing/selftests/net/Makefile | 2 +
tools/testing/selftests/net/config | 2 +
.../selftests/net/xfrm_iptfs_truesize.c | 297 ++++++++++++++++++
.../selftests/net/xfrm_iptfs_truesize.sh | 135 ++++++++
7 files changed, 446 insertions(+)
create mode 100644 tools/testing/selftests/net/xfrm_iptfs_truesize.c
create mode 100755 tools/testing/selftests/net/xfrm_iptfs_truesize.sh
base-commit: 1213df0bc5993e479706c5eba5830243d778f164
--
2.53.0
next reply other threads:[~2026-11-29 2:00 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-11-29 2:00 Andrii Tereshchenko [this message]
2026-11-29 2:00 ` [PATCH ipsec 1/2] " Andrii Tereshchenko
2026-11-29 2:00 ` [PATCH ipsec 2/2] selftests: net: test the truesize of IP-TFS inner packets Andrii Tereshchenko
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=11df3eb5-b410-41bb-9198-b6c64654d029@mid.andrii.net \
--to=opensource@andrii.net \
--cc=chopps@labn.net \
--cc=davem@davemloft.net \
--cc=edumazet@kernel.org \
--cc=herbert@gondor.apana.org.au \
--cc=horms@kernel.org \
--cc=ipsec@lists.linux.dev \
--cc=kuba@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=steffen.klassert@secunet.com \
--cc=willemdebruijn.kernel@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®