]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: fix tcp_should_expand_sndbuf() to use tcp_packets_in_flight()
authorNeal Cardwell <ncardwell@google.com>
Fri, 20 Feb 2015 18:33:16 +0000 (13:33 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 23 Feb 2015 04:07:11 +0000 (23:07 -0500)
commit99d962ac6098d5e9bb8ecb7dc50a36abe9fc5d27
tree8a6f3b84e190d48fa39c1921768fd08ce1e5d658
parent30badf04b852fc0950b965e3ef453b44125c223e
tcp: fix tcp_should_expand_sndbuf() to use tcp_packets_in_flight()

tcp_should_expand_sndbuf() does not expand the send buffer if we have
filled the congestion window.

However, it should use tcp_packets_in_flight() instead of
tp->packets_out to make this check.

Testing has established that the difference matters a lot if there are
many SACKed packets, causing a needless performance shortfall.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: Nandita Dukkipati <nanditad@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c