Skip to content

Commit e8bae27

Browse files
ij1davem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent e1aa680 commit e8bae27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/ipv4/tcp_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1402,7 +1402,7 @@ static struct sk_buff *tcp_sacktag_skip(struct sk_buff *skb, struct sock *sk,
14021402
if (skb == tcp_send_head(sk))
14031403
break;
14041404

1405-
if (!before(TCP_SKB_CB(skb)->end_seq, skip_to_seq))
1405+
if (after(TCP_SKB_CB(skb)->end_seq, skip_to_seq))
14061406
break;
14071407

14081408
*fack_count += tcp_skb_pcount(skb);

0 commit comments

Comments
 (0)