diff options
Diffstat (limited to 'net/ipv4')
-rw-r--r-- | net/ipv4/tcp_bic.c | 2 | ||||
-rw-r--r-- | net/ipv4/tcp_cubic.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/net/ipv4/tcp_bic.c b/net/ipv4/tcp_bic.c index 4586211e3757..5dba0fc8f579 100644 --- a/net/ipv4/tcp_bic.c +++ b/net/ipv4/tcp_bic.c | |||
@@ -210,7 +210,7 @@ static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) | |||
210 | { | 210 | { |
211 | const struct inet_connection_sock *icsk = inet_csk(sk); | 211 | const struct inet_connection_sock *icsk = inet_csk(sk); |
212 | 212 | ||
213 | if (cnt > 0 && icsk->icsk_ca_state == TCP_CA_Open) { | 213 | if (icsk->icsk_ca_state == TCP_CA_Open) { |
214 | struct bictcp *ca = inet_csk_ca(sk); | 214 | struct bictcp *ca = inet_csk_ca(sk); |
215 | cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT; | 215 | cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT; |
216 | ca->delayed_ack += cnt; | 216 | ca->delayed_ack += cnt; |
diff --git a/net/ipv4/tcp_cubic.c b/net/ipv4/tcp_cubic.c index 485d7ea35f75..80bd084a9f91 100644 --- a/net/ipv4/tcp_cubic.c +++ b/net/ipv4/tcp_cubic.c | |||
@@ -314,7 +314,7 @@ static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt_us) | |||
314 | struct bictcp *ca = inet_csk_ca(sk); | 314 | struct bictcp *ca = inet_csk_ca(sk); |
315 | u32 delay; | 315 | u32 delay; |
316 | 316 | ||
317 | if (cnt > 0 && icsk->icsk_ca_state == TCP_CA_Open) { | 317 | if (icsk->icsk_ca_state == TCP_CA_Open) { |
318 | cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT; | 318 | cnt -= ca->delayed_ack >> ACK_RATIO_SHIFT; |
319 | ca->delayed_ack += cnt; | 319 | ca->delayed_ack += cnt; |
320 | } | 320 | } |