]> git.baikalelectronics.ru Git - kernel.git/commit
tcp: do not scale TSO segment size with reordering degree
authorNeal Cardwell <ncardwell@google.com>
Mon, 21 Nov 2011 17:15:14 +0000 (17:15 +0000)
committerDavid S. Miller <davem@davemloft.net>
Tue, 29 Nov 2011 05:29:41 +0000 (00:29 -0500)
commit67b5f92696099f9ae8c5a1a2d176a5d0ab58b7cc
tree3e9958d845a385f94e44bd64d081de218835865b
parent667905d1b42eb23ccab52f4fda145d31ad1c0b8d
tcp: do not scale TSO segment size with reordering degree

Since 2005 (d6b88e4e23c7996300e916848dd1c102a0116a14)
tcp_tso_should_defer has been using tcp_max_burst() as a target limit
for deciding how large to make outgoing TSO packets when not using
sysctl_tcp_tso_win_divisor. But since 2008
(6bd9ce8ca8e10856d7fa6eb403494958892e3b89) tcp_max_burst() returns the
reordering degree. We should not have tcp_tso_should_defer attempt to
build larger segments just because there is more reordering. This
commit splits the notion of deferral size used in TSO from the notion
of burst size used in cwnd moderation, and returns the TSO deferral
limit to its original value.

Signed-off-by: Neal Cardwell <ncardwell@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/net/tcp.h
net/ipv4/tcp_cong.c
net/ipv4/tcp_output.c