]> www.infradead.org Git - users/jedix/linux-maple.git/commit
net: fix segmentation after TCP/UDP fraglist GRO
authorFelix Fietkau <nbd@nbd.name>
Sat, 5 Jul 2025 15:06:21 +0000 (17:06 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 17 Jul 2025 08:01:02 +0000 (10:01 +0200)
commit9f735b6f8a77d7be7f8b0765dc93587774832cb1
treece0134d9af4120705c950660f9d1c96c9e36d2c4
parentae3264a25a4635531264728859dbe9c659fad554
net: fix segmentation after TCP/UDP fraglist GRO

Since "net: gro: use cb instead of skb->network_header", the skb network
header is no longer set in the GRO path.
This breaks fraglist segmentation, which relies on ip_hdr()/tcp_hdr()
to check for address/port changes.
Fix this regression by selectively setting the network header for merged
segment skbs.

Fixes: 186b1ea73ad8 ("net: gro: use cb instead of skb->network_header")
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Link: https://patch.msgid.link/20250705150622.10699-1-nbd@nbd.name
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/tcp_offload.c
net/ipv4/udp_offload.c