diff options
author | Soheil Hassas Yeganeh <soheil@google.com> | 2018-09-26 23:57:04 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-10-02 08:36:56 +0300 |
commit | 789762ceec8f330b8a96e603812fa8dc543de4bf (patch) | |
tree | a5df900d899214ba8f8d6513d1d3ed6dbeb449f0 /drivers/net/ethernet/ni | |
parent | 8f2b02931175ca56ddb1fe1a2393c34d97a25aa0 (diff) | |
download | linux-789762ceec8f330b8a96e603812fa8dc543de4bf.tar.xz |
tcp: adjust rcv zerocopy hints based on frag sizes
When SKBs are coalesced, we can have SKBs with different
frag sizes. Some with PAGE_SIZE and some not with PAGE_SIZE.
Since recv_skip_hint is always set to the full SKB size,
it can overestimate the amount that should be read using
normal read for coalesced packets.
Change the recv_skip_hint so that it only includes the first
frags that are not of PAGE_SIZE.
Signed-off-by: Soheil Hassas Yeganeh <soheil@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/ni')
0 files changed, 0 insertions, 0 deletions