mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-23 23:32:14 +00:00
tcp: replace cnt & rtt with struct in pkts_acked()
Replace 2 arguments (cnt and rtt) in the congestion control modules' pkts_acked() function with a struct. This will allow adding more information without having to modify existing congestion control modules (tcp_nv in particular needs bytes in flight when packet was sent). As proposed by Neal Cardwell in his comments to the tcp_nv patch. Signed-off-by: Lawrence Brakmo <brakmo@fb.com> Acked-by: Yuchung Cheng <ycheng@google.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
cf88585b1d
commit
756ee1729b
13 changed files with 60 additions and 47 deletions
|
@ -3248,8 +3248,12 @@ static int tcp_clean_rtx_queue(struct sock *sk, int prior_fackets,
|
|||
tcp_rearm_rto(sk);
|
||||
}
|
||||
|
||||
if (icsk->icsk_ca_ops->pkts_acked)
|
||||
icsk->icsk_ca_ops->pkts_acked(sk, pkts_acked, ca_rtt_us);
|
||||
if (icsk->icsk_ca_ops->pkts_acked) {
|
||||
struct ack_sample sample = { .pkts_acked = pkts_acked,
|
||||
.rtt_us = ca_rtt_us };
|
||||
|
||||
icsk->icsk_ca_ops->pkts_acked(sk, &sample);
|
||||
}
|
||||
|
||||
#if FASTRETRANS_DEBUG > 0
|
||||
WARN_ON((int)tp->sacked_out < 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue