Commit 21f1b8a
udp: fix GRO reception in case of length mismatch
Currently, the UDP GRO code path does bad things on some edge
conditions - Aggregation can happen even on packet with different
lengths.
Fix the above by rewriting the 'complete' condition for GRO
packets. While at it, note explicitly that we allow merging the
first packet per burst below gso_size.
Reported-by: Sean Tong <[email protected]>
Fixes: e20cf8d ("udp: implement GRO for plain UDP sockets.")
Signed-off-by: Paolo Abeni <[email protected]>
Signed-off-by: David S. Miller <[email protected]>1 parent fbef947 commit 21f1b8a
1 file changed
+5
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
377 | 377 | | |
378 | 378 | | |
379 | 379 | | |
380 | | - | |
| 380 | + | |
| 381 | + | |
| 382 | + | |
381 | 383 | | |
382 | | - | |
| 384 | + | |
| 385 | + | |
383 | 386 | | |
384 | 387 | | |
385 | | - | |
386 | | - | |
387 | 388 | | |
388 | 389 | | |
389 | 390 | | |
| |||
0 commit comments