]> git.baikalelectronics.ru Git - kernel.git/commit
[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)
commitac6b62b4191bd414b71ad5be1111dacbd3e0482c
tree776cd7cf3438913d6a10b4071c528307eb4db50c
parent00642a4e6ed2a786822892f4db81a597ced26983
[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