|
@@ -2710,11 +2710,10 @@ static inline void tcp_ack_update_rtt(struct sock *sk, const int flag,
|
|
tcp_ack_no_tstamp(sk, seq_rtt, flag);
|
|
tcp_ack_no_tstamp(sk, seq_rtt, flag);
|
|
}
|
|
}
|
|
|
|
|
|
-static void tcp_cong_avoid(struct sock *sk, u32 ack,
|
|
|
|
- u32 in_flight, int good)
|
|
|
|
|
|
+static void tcp_cong_avoid(struct sock *sk, u32 ack, u32 in_flight)
|
|
{
|
|
{
|
|
const struct inet_connection_sock *icsk = inet_csk(sk);
|
|
const struct inet_connection_sock *icsk = inet_csk(sk);
|
|
- icsk->icsk_ca_ops->cong_avoid(sk, ack, in_flight, good);
|
|
|
|
|
|
+ icsk->icsk_ca_ops->cong_avoid(sk, ack, in_flight);
|
|
tcp_sk(sk)->snd_cwnd_stamp = tcp_time_stamp;
|
|
tcp_sk(sk)->snd_cwnd_stamp = tcp_time_stamp;
|
|
}
|
|
}
|
|
|
|
|
|
@@ -3238,11 +3237,11 @@ static int tcp_ack(struct sock *sk, struct sk_buff *skb, int flag)
|
|
/* Advance CWND, if state allows this. */
|
|
/* Advance CWND, if state allows this. */
|
|
if ((flag & FLAG_DATA_ACKED) && !frto_cwnd &&
|
|
if ((flag & FLAG_DATA_ACKED) && !frto_cwnd &&
|
|
tcp_may_raise_cwnd(sk, flag))
|
|
tcp_may_raise_cwnd(sk, flag))
|
|
- tcp_cong_avoid(sk, ack, prior_in_flight, 0);
|
|
|
|
|
|
+ tcp_cong_avoid(sk, ack, prior_in_flight);
|
|
tcp_fastretrans_alert(sk, prior_packets - tp->packets_out, flag);
|
|
tcp_fastretrans_alert(sk, prior_packets - tp->packets_out, flag);
|
|
} else {
|
|
} else {
|
|
if ((flag & FLAG_DATA_ACKED) && !frto_cwnd)
|
|
if ((flag & FLAG_DATA_ACKED) && !frto_cwnd)
|
|
- tcp_cong_avoid(sk, ack, prior_in_flight, 1);
|
|
|
|
|
|
+ tcp_cong_avoid(sk, ack, prior_in_flight);
|
|
}
|
|
}
|
|
|
|
|
|
if ((flag & FLAG_FORWARD_PROGRESS) || !(flag&FLAG_NOT_DUP))
|
|
if ((flag & FLAG_FORWARD_PROGRESS) || !(flag&FLAG_NOT_DUP))
|