]> pilppa.org Git - linux-2.6-omap-h63xx.git/commit
[TCP]: Fix GSO ignorance of pkts_acked arg (cong.cntrl modules)
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Fri, 1 Jun 2007 04:37:55 +0000 (21:37 -0700)
committerDavid S. Miller <davem@sunset.davemloft.net>
Mon, 4 Jun 2007 01:08:48 +0000 (18:08 -0700)
commit6418204f919c030ca0c943f6c77dc84aff2ec0d2
tree5ffb244db0ac7a5dd36860a222092d2701f0d050
parent75202e76893c11ce7f8bcc9a07f994d71e3d5113
[TCP]: Fix GSO ignorance of pkts_acked arg (cong.cntrl modules)

The code used to ignore GSO completely, passing either way too
small or zero pkts_acked when GSO skb or part of it got ACKed.
In addition, there is no need to calculate the value in the loop
but simple arithmetics after the loop is sufficient. There is
no need to handle SYN case specially because congestion control
modules are not yet initialized when FLAG_SYN_ACKED is set.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/ipv4/tcp_input.c