]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
tcp: remove RFC3517/RFC6675 tcp_clear_retrans_hints_partial()
authorNeal Cardwell <ncardwell@google.com>
Sun, 15 Jun 2025 00:14:35 +0000 (20:14 -0400)
committerJakub Kicinski <kuba@kernel.org>
Tue, 17 Jun 2025 23:19:04 +0000 (16:19 -0700)
Now that we have removed the RFC3517/RFC6675 hints,
tcp_clear_retrans_hints_partial() is empty, and can be removed.

Suggested-by: Yuchung Cheng <ycheng@google.com>
Signed-off-by: Neal Cardwell <ncardwell@google.com>
Reviewed-by: Yuchung Cheng <ycheng@google.com>
Reviewed-by: Eric Dumazet <edumazet@google.com>
Link: https://patch.msgid.link/20250615001435.2390793-4-ncardwell.sw@gmail.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
include/net/tcp.h
net/ipv4/tcp_input.c
net/ipv4/tcp_output.c

index f57d121837949c11141807154565b883b1b29192..9f852f5f8b95ef19cca13a16c1d45a3d49458c47 100644 (file)
@@ -1811,13 +1811,8 @@ static inline void tcp_mib_init(struct net *net)
 }
 
 /* from STCP */
-static inline void tcp_clear_retrans_hints_partial(struct tcp_sock *tp)
-{
-}
-
 static inline void tcp_clear_all_retrans_hints(struct tcp_sock *tp)
 {
-       tcp_clear_retrans_hints_partial(tp);
        tp->retransmit_skb_hint = NULL;
 }
 
index e8e130e946f146c277d58064a76848611d997786..05b9571c9c92599df800307afd9c655771425f1e 100644 (file)
@@ -2769,8 +2769,6 @@ void tcp_simple_retransmit(struct sock *sk)
                        tcp_mark_skb_lost(sk, skb);
        }
 
-       tcp_clear_retrans_hints_partial(tp);
-
        if (!tp->lost_out)
                return;
 
index b0ffefe604b4c90284ae3c1dbcf649afd5cbc80a..eb50746dc4820aa9b0ce02c5122676e765845985 100644 (file)
@@ -3247,7 +3247,6 @@ static bool tcp_collapse_retrans(struct sock *sk, struct sk_buff *skb)
        TCP_SKB_CB(skb)->eor = TCP_SKB_CB(next_skb)->eor;
 
        /* changed transmit queue under us so clear hints */
-       tcp_clear_retrans_hints_partial(tp);
        if (next_skb == tp->retransmit_skb_hint)
                tp->retransmit_skb_hint = skb;