diff options
author | Cheng Cui <cc@FreeBSD.org> | 2025-02-12 16:41:08 +0000 |
---|---|---|
committer | Cheng Cui <cc@FreeBSD.org> | 2025-02-12 22:49:21 +0000 |
commit | 6156da866e7db8dab36b96ac4f4e38f75e41200d (patch) | |
tree | d52e222c28d935ffe65c25f6eb49b6bfad3a7fba | |
parent | d6cce475cb5f5c449532984e9c661596950fa26e (diff) |
cc_cubic: remove redundant calls of tcp_fixed_maxseg()
Summary: No functional change intended.
Reviewed by: rscheff, tuexen
Subscribers: imp, melifaro, glebius
Differential Revision: https://reviews.freebsd.org/D48967
-rw-r--r-- | sys/netinet/cc/cc_cubic.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/netinet/cc/cc_cubic.c b/sys/netinet/cc/cc_cubic.c index 3b134082a59b..ae1561ca54c3 100644 --- a/sys/netinet/cc/cc_cubic.c +++ b/sys/netinet/cc/cc_cubic.c @@ -298,7 +298,7 @@ cubic_ack_received(struct cc_var *ccv, ccsignal_t type) W_cubic = cubic_cwnd(usecs_since_epoch + cubic_data->mean_rtt_usecs, cubic_data->W_max, - tcp_fixed_maxseg(ccv->tp), + mss, cubic_data->K); if (W_cubic < W_est) { @@ -328,8 +328,7 @@ cubic_ack_received(struct cc_var *ccv, ccsignal_t type) if (((cubic_data->flags & CUBICFLAG_CONG_EVENT) == 0) && cubic_data->W_max < CCV(ccv, snd_cwnd)) { cubic_data->W_max = CCV(ccv, snd_cwnd); - cubic_data->K = cubic_k(cubic_data->W_max / - tcp_fixed_maxseg(ccv->tp)); + cubic_data->K = cubic_k(cubic_data->W_max / mss); } } } else if (type == CC_ACK && !IN_RECOVERY(CCV(ccv, t_flags)) && |