Skip to content
Commit 7f9c33e5 authored by Ilpo Järvinen's avatar Ilpo Järvinen Committed by Herbert Xu
Browse files

[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: default avatarIlpo Järvinen <ilpo.jarvinen@helsinki.fi>
Acked-by: default avatarJohn Heffner <jheffner@psc.edu>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 91cc17c0
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment