aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sys/netinet/cc/cc_dctcp.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/sys/netinet/cc/cc_dctcp.c b/sys/netinet/cc/cc_dctcp.c
index ad4bda5fc297..f31a9f40be66 100644
--- a/sys/netinet/cc/cc_dctcp.c
+++ b/sys/netinet/cc/cc_dctcp.c
@@ -154,10 +154,8 @@ dctcp_ack_received(struct cc_var *ccv, uint16_t type)
* Update the fraction of marked bytes at the end of
* current window size.
*/
- if ((IN_FASTRECOVERY(CCV(ccv, t_flags)) &&
- SEQ_GEQ(ccv->curack, CCV(ccv, snd_recover))) ||
- (!IN_FASTRECOVERY(CCV(ccv, t_flags)) &&
- SEQ_GT(ccv->curack, dctcp_data->save_sndnxt)))
+ if (!IN_FASTRECOVERY(CCV(ccv, t_flags)) &&
+ SEQ_GT(ccv->curack, dctcp_data->save_sndnxt))
dctcp_update_alpha(ccv);
} else
newreno_cc_algo.ack_received(ccv, type);