]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: set recv_skip_hint when tcp_inq is less than PAGE_SIZE
authorSoheil Hassas Yeganeh <soheil@google.com>
Wed, 26 Sep 2018 20:57:03 +0000 (16:57 -0400)
committerDavid S. Miller <davem@davemloft.net>
Tue, 2 Oct 2018 05:36:56 +0000 (22:36 -0700)
commit0c7be6a58ea67fabc49caad7f30c562bec19a039
tree5ce71db49075b5052e2d2d33efd67152e0589e90
parente20e8599a34cd5cc4d5e5b14708ea10c112e85cf
tcp: set recv_skip_hint when tcp_inq is less than PAGE_SIZE

When we have less than PAGE_SIZE of data on receive queue,
we set recv_skip_hint to 0. Instead, set it to the actual
number of bytes available.

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>
net/ipv4/tcp.c