]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
net: gro: remove unnecessary df checks
authorRichard Gobert <richardbgobert@gmail.com>
Tue, 23 Sep 2025 08:59:07 +0000 (10:59 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 25 Sep 2025 10:42:49 +0000 (12:42 +0200)
commitf095a358faf263bf1d8ae712bd38e13b71286819
treed4ad192146bfd561ffa71841cb8bb6388015e4a1
parent3271f19bf7b9df665549666d789b9f126b4420c7
net: gro: remove unnecessary df checks

Currently, packets with fixed IDs will be merged only if their
don't-fragment bit is set. This restriction is unnecessary since
packets without the don't-fragment bit will be forwarded as-is even
if they were merged together. The merged packets will be segmented
into their original forms before being forwarded, either by GSO or
by TSO. The IDs will also remain identical unless NETIF_F_TSO_MANGLEID
is set, in which case the IDs can become incrementing, which is also fine.

Clean up the code by removing the unnecessary don't-fragment checks.

Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250923085908.4687-5-richardbgobert@gmail.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
include/net/gro.h
net/ipv4/af_inet.c
tools/testing/selftests/net/gro.c