From: Ilpo Järvinen Date: Tue, 25 Nov 2008 05:12:28 +0000 (-0800) Subject: tcp: more aggressive skipping X-Git-Tag: v2.6.29-rc1~581^2~511 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=e8bae275d9354104f7ae24a48a90d1a6286e7bd9;p=~emulex%2Finfiniband.git tcp: more aggressive skipping I knew already when rewriting the sacktag that this condition was too conservative, change it now since it prevent lot of useless work (especially in the sack shifter decision code that is being added by a later patch). This shouldn't change anything really, just save some processing regardless of the shifter. Signed-off-by: Ilpo Järvinen Signed-off-by: David S. Miller --- diff --git a/net/ipv4/tcp_input.c b/net/ipv4/tcp_input.c index 8085704863f..3f26599ddc8 100644 --- a/net/ipv4/tcp_input.c +++ b/net/ipv4/tcp_input.c @@ -1402,7 +1402,7 @@ static struct sk_buff *tcp_sacktag_skip(struct sk_buff *skb, struct sock *sk, if (skb == tcp_send_head(sk)) break; - if (!before(TCP_SKB_CB(skb)->end_seq, skip_to_seq)) + if (after(TCP_SKB_CB(skb)->end_seq, skip_to_seq)) break; *fack_count += tcp_skb_pcount(skb);