[TCP]: MTUprobe: receiver window & data available checks fixed
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Fri, 23 Nov 2007 11:08:16 +0000 (19:08 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Nov 2007 11:08:16 +0000 (19:08 +0800)
commit91cc17c0e5e5ada156a8d5787a2509d263ea6bbf
tree776cd7cf3438913d6a10b4071c528307eb4db50c
parent88c07ddec8c5e06aa331470076af27a397fc0993
[TCP]: MTUprobe: receiver window & data available checks fixed

It seems that the checked range for receiver window check should
begin from the first rather than from the last skb that is going
to be included to the probe. And that can be achieved without
reference to skbs at all, snd_nxt and write_seq provides the
correct seqno already. Plus, it SHOULD account packets that are
necessary to trigger fast retransmit [RFC4821].

Location of snd_wnd < probe_size/size_needed check is bogus
because it will cause the other if() match as well (due to
snd_nxt >= snd_una invariant).

Removed dead obvious comment.

Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@helsinki.fi>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
net/ipv4/tcp_output.c