]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
tcp: mark tcp_process_tlp_ack() as unlikely
authorEric Dumazet <edumazet@google.com>
Tue, 27 Jan 2026 03:21:45 +0000 (03:21 +0000)
committerJakub Kicinski <kuba@kernel.org>
Thu, 29 Jan 2026 03:31:51 +0000 (19:31 -0800)
It is unlikely we have to call tcp_process_tlp_ack().

Signed-off-by: Eric Dumazet <edumazet@google.com>
Reviewed-by: Kuniyuki Iwashima <kuniyu@google.com>
Link: https://patch.msgid.link/20260127032147.3498272-2-edumazet@google.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
net/ipv4/tcp_input.c

index 9e91ddbc6253ae4615e0b03ebf53d7da09c46940..f2fafba9570573c566a6e21cf4663cc8d2b4eb14 100644 (file)
@@ -4283,7 +4283,7 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
 
        tcp_in_ack_event(sk, flag);
 
-       if (tp->tlp_high_seq)
+       if (unlikely(tp->tlp_high_seq))
                tcp_process_tlp_ack(sk, ack, flag);
 
        if (tcp_ack_is_dubious(sk, flag)) {
@@ -4333,7 +4333,7 @@ no_queue:
         */
        tcp_ack_probe(sk);
 
-       if (tp->tlp_high_seq)
+       if (unlikely(tp->tlp_high_seq))
                tcp_process_tlp_ack(sk, ack, flag);
        return 1;