]> git.dujemihanovic.xyz Git - linux.git/commit
net: gro: add flush check in udp_gro_receive_segment
authorRichard Gobert <richardbgobert@gmail.com>
Tue, 30 Apr 2024 14:35:55 +0000 (16:35 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 2 May 2024 09:03:20 +0000 (11:03 +0200)
commit5babae777c61aa8a8679d59d3cdc54165ad96d42
tree5c9a82adc5af8d2f90cff1c7bcf3dedab5f5bd48
parent5ef31ea5d053a8f493a772ebad3f3ce82c35d845
net: gro: add flush check in udp_gro_receive_segment

GRO-GSO path is supposed to be transparent and as such L3 flush checks are
relevant to all UDP flows merging in GRO. This patch uses the same logic
and code from tcp_gro_receive, terminating merge if flush is non zero.

Fixes: e20cf8d3f1f7 ("udp: implement GRO for plain UDP sockets.")
Signed-off-by: Richard Gobert <richardbgobert@gmail.com>
Reviewed-by: Willem de Bruijn <willemb@google.com>
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
net/ipv4/udp_offload.c