Skip to content

Commit a05a728

Browse files
ws-yangpckuba-moo
authored andcommitted
tcp: remove unused ICSK_TIME_EARLY_RETRANS
Since the early retransmit has been removed by commit bec41a1 ("tcp: remove early retransmit"), we also remove the unused ICSK_TIME_EARLY_RETRANS macro. Signed-off-by: Pengcheng Yang <yangpc@wangsu.com> Signed-off-by: Eric Dumazet <edumazet@google.com> Link: https://lore.kernel.org/r/1611239473-27304-1-git-send-email-yangpc@wangsu.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
1 parent 2d8983f commit a05a728

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

include/net/inet_connection_sock.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,6 @@ struct inet_connection_sock {
141141
#define ICSK_TIME_RETRANS 1 /* Retransmit timer */
142142
#define ICSK_TIME_DACK 2 /* Delayed ack timer */
143143
#define ICSK_TIME_PROBE0 3 /* Zero window probe timer */
144-
#define ICSK_TIME_EARLY_RETRANS 4 /* Early retransmit timer */
145144
#define ICSK_TIME_LOSS_PROBE 5 /* Tail loss probe timer */
146145
#define ICSK_TIME_REO_TIMEOUT 6 /* Reordering timer */
147146

@@ -227,8 +226,7 @@ static inline void inet_csk_reset_xmit_timer(struct sock *sk, const int what,
227226
}
228227

229228
if (what == ICSK_TIME_RETRANS || what == ICSK_TIME_PROBE0 ||
230-
what == ICSK_TIME_EARLY_RETRANS || what == ICSK_TIME_LOSS_PROBE ||
231-
what == ICSK_TIME_REO_TIMEOUT) {
229+
what == ICSK_TIME_LOSS_PROBE || what == ICSK_TIME_REO_TIMEOUT) {
232230
icsk->icsk_pending = what;
233231
icsk->icsk_timeout = jiffies + when;
234232
sk_reset_timer(sk, &icsk->icsk_retransmit_timer, icsk->icsk_timeout);

0 commit comments

Comments
 (0)