summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorDavid Goulet <dgoulet@torproject.org>2023-01-10 10:13:33 -0500
committerMike Perry <mikeperry-git@torproject.org>2023-01-10 15:46:03 +0000
commitfd86420d961485f6549769521d43b63e38f7a7fb (patch)
tree3e349ef64c5aa38ba97cbfc9fe4d7b13e9415eb4 /src
parent5745370666210e7d07889fed6a3008db9004807f (diff)
downloadtor-fd86420d961485f6549769521d43b63e38f7a7fb.tar.gz
tor-fd86420d961485f6549769521d43b63e38f7a7fb.zip
cc: Rename function to avoid confusion
Signed-off-by: David Goulet <dgoulet@torproject.org>
Diffstat (limited to 'src')
-rw-r--r--src/core/or/congestion_control_vegas.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core/or/congestion_control_vegas.c b/src/core/or/congestion_control_vegas.c
index 71ffde3061..8f9c39cea6 100644
--- a/src/core/or/congestion_control_vegas.c
+++ b/src/core/or/congestion_control_vegas.c
@@ -336,7 +336,7 @@ congestion_control_vegas_exit_slow_start(const circuit_t *circ,
* return to the eventloop to fill the inbuf on edge connections.
*/
static inline bool
-cwnd_is_full(const congestion_control_t *cc)
+cwnd_became_full(const congestion_control_t *cc)
{
if (cc->inflight + cc_vegas_cwnd_full_gap*cc->sendme_inc >= cc->cwnd) {
return true;
@@ -352,7 +352,7 @@ cwnd_is_full(const congestion_control_t *cc)
* allowing cwnd increments.
*/
static inline bool
-cwnd_is_nonfull(const congestion_control_t *cc)
+cwnd_became_nonfull(const congestion_control_t *cc)
{
/* Use multiply form to avoid division */
if (100*cc->inflight < cc_vegas_cwnd_full_minpct * cc->cwnd) {
@@ -435,9 +435,9 @@ congestion_control_vegas_process_sendme(congestion_control_t *cc,
queue_use = cc->cwnd - vegas_bdp(cc);
/* Update the full state */
- if (cwnd_is_full(cc))
+ if (cwnd_became_full(cc))
cc->cwnd_full = 1;
- else if (cwnd_is_nonfull(cc))
+ else if (cwnd_became_nonfull(cc))
cc->cwnd_full = 0;
if (cc->in_slow_start) {