Skip to content

Commit 128eda8

Browse files
edumazetdavem330
authored andcommitted
tcp: do not pass timestamp to tcp_rack_mark_lost()
This is no longer used, since tcp_rack_detect_loss() takes the timestamp from tp->tcp_mstamp Signed-off-by: Eric Dumazet <[email protected]> Acked-by: Soheil Hassas Yeganeh <[email protected]> Acked-by: Neal Cardwell <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 7c1c730 commit 128eda8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

include/net/tcp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1853,7 +1853,7 @@ void tcp_v4_init(void);
18531853
void tcp_init(void);
18541854

18551855
/* tcp_recovery.c */
1856-
extern void tcp_rack_mark_lost(struct sock *sk, const struct skb_mstamp *now);
1856+
extern void tcp_rack_mark_lost(struct sock *sk);
18571857
extern void tcp_rack_advance(struct tcp_sock *tp, u8 sacked, u32 end_seq,
18581858
const struct skb_mstamp *xmit_time,
18591859
const struct skb_mstamp *ack_time);

net/ipv4/tcp_input.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2769,7 +2769,7 @@ static void tcp_rack_identify_loss(struct sock *sk, int *ack_flag,
27692769
if (sysctl_tcp_recovery & TCP_RACK_LOSS_DETECTION) {
27702770
u32 prior_retrans = tp->retrans_out;
27712771

2772-
tcp_rack_mark_lost(sk, ack_time);
2772+
tcp_rack_mark_lost(sk);
27732773
if (prior_retrans > tp->retrans_out)
27742774
*ack_flag |= FLAG_LOST_RETRANS;
27752775
}

net/ipv4/tcp_recovery.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ static void tcp_rack_detect_loss(struct sock *sk, u32 *reo_timeout)
104104
}
105105
}
106106

107-
void tcp_rack_mark_lost(struct sock *sk, const struct skb_mstamp *now)
107+
void tcp_rack_mark_lost(struct sock *sk)
108108
{
109109
struct tcp_sock *tp = tcp_sk(sk);
110110
u32 timeout;

0 commit comments

Comments
 (0)