mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH ipsec 0/2] xfrm: iptfs: charge shared fragments to the inner packet's truesize
@ 2026-11-29  2:00 Andrii Tereshchenko
  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
  0 siblings, 2 replies; 3+ messages in thread
From: Andrii Tereshchenko @ 2026-11-29  2:00 UTC (permalink / raw)
  To: Steffen Klassert, Herbert Xu, David S. Miller
  Cc: Eric Dumazet, Jakub Kicinski, Paolo Abeni, Willem de Bruijn,
	Simon Horman, Christian Hopps, netdev, ipsec, linux-kernel,
	Andrii Tereshchenko

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2026-11-29  2:00 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-11-29  2:00 [PATCH ipsec 0/2] xfrm: iptfs: charge shared fragments to the inner packet's truesize Andrii Tereshchenko
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

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®