diff options
author | Mike Perry <mikeperry-git@torproject.org> | 2023-06-26 18:56:54 +0000 |
---|---|---|
committer | Mike Perry <mikeperry-git@torproject.org> | 2023-06-27 16:44:07 +0000 |
commit | 7d85298b63dbc7a06e65395011568f4433a98430 (patch) | |
tree | 14d4439cf6a847f112a994e05c4e69609ef553b8 | |
parent | 641ed48e6dabc9adb30d3982e8bc210351f9c2b4 (diff) | |
download | tor-7d85298b63dbc7a06e65395011568f4433a98430.tar.gz tor-7d85298b63dbc7a06e65395011568f4433a98430.zip |
Bug 40566: Remove unused congestion control alg structs.
-rw-r--r-- | src/core/or/congestion_control_st.h | 34 |
1 files changed, 3 insertions, 31 deletions
diff --git a/src/core/or/congestion_control_st.h b/src/core/or/congestion_control_st.h index 84d36868de..ba12e93242 100644 --- a/src/core/or/congestion_control_st.h +++ b/src/core/or/congestion_control_st.h @@ -79,22 +79,6 @@ typedef enum { /** Total number of BDP algs in bdp_alg_t enum */ #define NUM_BDP_ALGS (BDP_ALG_PIECEWISE+1) -/** Westwood algorithm parameters */ -struct westwood_params_t { - /** Cwnd backoff multiplier upon congestion (as percent) */ - uint8_t cwnd_backoff_m; - /** Max RTT backoff multiplier upon congestion (as percent) */ - uint8_t rtt_backoff_m; - - /** Threshold between min and max RTT, to signal congestion (percent) */ - uint8_t rtt_thresh; - - /** - * If true, use minimum of BDP and backoff multiplication in backoff. - * If false, use maximum of BDP and backoff multiplication in backoff. */ - bool min_backoff; -}; - /** Vegas algorithm parameters. */ struct vegas_params_t { /** The slow-start cwnd cap for RFC3742 */ @@ -114,12 +98,6 @@ struct vegas_params_t { uint8_t bdp_mix_pct; }; -/** NOLA consensus params */ -struct nola_params_t { - /** How many cells to add to BDP estimate to obtain cwnd */ - uint16_t bdp_overshoot; -}; - /** Fields common to all congestion control algorithms */ struct congestion_control_t { /** @@ -203,15 +181,9 @@ struct congestion_control_t { * consensus parameter during circuit setup. */ bdp_alg_t bdp_alg; - /** Algorithm-specific parameters. The specific struct that is used - * depends upon the algorithm selected by the cc_alg parameter. - * These should not be accessed anywhere other than the algorithm-specific - * files. */ - union { - struct westwood_params_t westwood_params; - struct vegas_params_t vegas_params; - struct nola_params_t nola_params; - }; + /** Vegas-specific parameters. These should not be accessed anywhere + * other than the congestion_control_vegas.c file. */ + struct vegas_params_t vegas_params; }; /** |