]> git.baikalelectronics.ru Git - kernel.git/commit
[TCP] MTUprobe: Cleanup send queue check (no need to loop)
authorIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Fri, 23 Nov 2007 11:10:56 +0000 (19:10 +0800)
committerHerbert Xu <herbert@gondor.apana.org.au>
Fri, 23 Nov 2007 11:10:56 +0000 (19:10 +0800)
commit1a7a5784a29ef191640a64d09abe8b983ae67a83
tree3491ab469f790f6c5538de6e24e93c7bbe6a84b1
parentac6b62b4191bd414b71ad5be1111dacbd3e0482c
[TCP] MTUprobe: Cleanup send queue check (no need to loop)

The original code has striking complexity to perform a query
which can be reduced to a very simple compare.

FIN seqno may be included to write_seq but it should not make
any significant difference here compared to skb->len which was
used previously. One won't end up there with SYN still queued.

Use of write_seq check guarantees that there's a valid skb in
send_head so I removed the extra check.

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