diff options
| author | Arjun Roy <[email protected]> | 2019-12-15 11:54:51 -0800 |
|---|---|---|
| committer | Jakub Kicinski <[email protected]> | 2019-12-15 12:13:41 -0800 |
| commit | 0e627190563e8be6fc9c2cc2a8a3c14bd961754c (patch) | |
| tree | ee22c5074bfc6d19b54d7202ec336f8521e2d4bd /tools/perf/scripts/python/event_analyzing_sample.py | |
| parent | 29115cef85781057e78f0c967979edd40b16c209 (diff) | |
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 <[email protected]>
Acked-by: Soheil Hassas Yeganeh <[email protected]>
Signed-off-by: Eric Dumazet <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/event_analyzing_sample.py')
0 files changed, 0 insertions, 0 deletions