]> git.hungrycats.org Git - linux/commit
[TCP]: Make TSO play nice with congestion window.
authorDavid S. Miller <davem@nuts.davemloft.net>
Tue, 7 Sep 2004 02:20:50 +0000 (19:20 -0700)
committerPatrick McHardy <kaber@trash.net>
Tue, 7 Sep 2004 02:20:50 +0000 (19:20 -0700)
commit14a1f44569619b2dfda526dc0f73b9bf0df74171
treef1200dfaf23a0013babab9fd458051b14d723ad1
parent10bc956350e6821a1a9757065962f1924649b12d
[TCP]: Make TSO play nice with congestion window.

Previously TSO would not abide by the congestion
window properly.  Essentially, each TSO packet would
be trated just like 1 normal packet, even though a TSO
packet generates more than 1 normal packet.  This
violates congestion window rules entirely.

So now we record the TSO factor, a count of how many
real packets a TSO packet will generate, and include
this in all the packet counting routines.

This initial version has a bug in that skb_entail() is
not the correct time to figure out the TSO factor for
the SKB, and tp->mss_tso_factor is not necessarily the
right value for a given SKB.  Will fix this up next.

Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/tcp.h
include/net/tcp.h
net/ipv4/tcp.c
net/ipv4/tcp_diag.c
net/ipv4/tcp_input.c
net/ipv4/tcp_ipv4.c
net/ipv4/tcp_minisocks.c
net/ipv4/tcp_output.c
net/ipv4/tcp_timer.c
net/ipv6/tcp_ipv6.c