Files
linux/net
Arjun Roy 0e62719056 tcp: Set rcv zerocopy hint correctly if skb last frag is < PAGE_SIZE
At present, if the last frag of paged data in a skb has < PAGE_SIZE
data, we compute the recv_skip_hint as being equal to the size of that
frag and the entire next skb.

Instead, just return the runt frag size as the hint.

recv_skip_hint is used by the application to skip over
bytes that can not be mmaped, so returning a too big
chunk is pessimistic and forces more bytes to be copied.

Signed-off-by: Arjun Roy <arjunroy@google.com>
Acked-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Jakub Kicinski <jakub.kicinski@netronome.com>
2019-12-15 12:13:41 -08:00
..
2019-11-18 19:32:59 -08:00
2019-12-14 20:02:36 -08:00
2019-12-12 17:07:05 -08:00
2019-09-26 08:56:17 +02:00
2019-11-26 14:40:13 -08:00
2019-11-24 16:58:44 -08:00
2019-12-12 17:07:05 -08:00