|
@@ -98,7 +98,6 @@ int sysctl_tcp_frto_response __read_mostly;
|
|
|
int sysctl_tcp_thin_dupack __read_mostly;
|
|
|
|
|
|
int sysctl_tcp_moderate_rcvbuf __read_mostly = 1;
|
|
|
-int sysctl_tcp_abc __read_mostly;
|
|
|
int sysctl_tcp_early_retrans __read_mostly = 2;
|
|
|
|
|
|
#define FLAG_DATA 0x01 /* Incoming frame contained data. */
|
|
@@ -2007,7 +2006,6 @@ static void tcp_enter_frto_loss(struct sock *sk, int allowed_segments, int flag)
|
|
|
tp->snd_cwnd_cnt = 0;
|
|
|
tp->snd_cwnd_stamp = tcp_time_stamp;
|
|
|
tp->frto_counter = 0;
|
|
|
- tp->bytes_acked = 0;
|
|
|
|
|
|
tp->reordering = min_t(unsigned int, tp->reordering,
|
|
|
sysctl_tcp_reordering);
|
|
@@ -2056,7 +2054,6 @@ void tcp_enter_loss(struct sock *sk, int how)
|
|
|
tp->snd_cwnd_cnt = 0;
|
|
|
tp->snd_cwnd_stamp = tcp_time_stamp;
|
|
|
|
|
|
- tp->bytes_acked = 0;
|
|
|
tcp_clear_retrans_partial(tp);
|
|
|
|
|
|
if (tcp_is_reno(tp))
|
|
@@ -2684,7 +2681,6 @@ static void tcp_init_cwnd_reduction(struct sock *sk, const bool set_ssthresh)
|
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
|
|
|
|
tp->high_seq = tp->snd_nxt;
|
|
|
- tp->bytes_acked = 0;
|
|
|
tp->snd_cwnd_cnt = 0;
|
|
|
tp->prior_cwnd = tp->snd_cwnd;
|
|
|
tp->prr_delivered = 0;
|
|
@@ -2735,7 +2731,6 @@ void tcp_enter_cwr(struct sock *sk, const int set_ssthresh)
|
|
|
struct tcp_sock *tp = tcp_sk(sk);
|
|
|
|
|
|
tp->prior_ssthresh = 0;
|
|
|
- tp->bytes_acked = 0;
|
|
|
if (inet_csk(sk)->icsk_ca_state < TCP_CA_CWR) {
|
|
|
tp->undo_marker = 0;
|
|
|
tcp_init_cwnd_reduction(sk, set_ssthresh);
|
|
@@ -3417,7 +3412,6 @@ static void tcp_conservative_spur_to_response(struct tcp_sock *tp)
|
|
|
{
|
|
|
tp->snd_cwnd = min(tp->snd_cwnd, tp->snd_ssthresh);
|
|
|
tp->snd_cwnd_cnt = 0;
|
|
|
- tp->bytes_acked = 0;
|
|
|
TCP_ECN_queue_cwr(tp);
|
|
|
tcp_moderate_cwnd(tp);
|
|
|
}
|
|
@@ -3609,15 +3603,6 @@ static int tcp_ack(struct sock *sk, const struct sk_buff *skb, int flag)
|
|
|
if (after(ack, prior_snd_una))
|
|
|
flag |= FLAG_SND_UNA_ADVANCED;
|
|
|
|
|
|
- if (sysctl_tcp_abc) {
|
|
|
- if (icsk->icsk_ca_state < TCP_CA_CWR)
|
|
|
- tp->bytes_acked += ack - prior_snd_una;
|
|
|
- else if (icsk->icsk_ca_state == TCP_CA_Loss)
|
|
|
- /* we assume just one segment left network */
|
|
|
- tp->bytes_acked += min(ack - prior_snd_una,
|
|
|
- tp->mss_cache);
|
|
|
- }
|
|
|
-
|
|
|
prior_fackets = tp->fackets_out;
|
|
|
prior_in_flight = tcp_packets_in_flight(tp);
|
|
|
|