Lines Matching refs:CongestionControlAlgorithm
868 pub enum CongestionControlAlgorithm { enum
875 impl FromStr for CongestionControlAlgorithm { implementation
883 "reno" => Ok(CongestionControlAlgorithm::Reno), in from_str()
884 "cubic" => Ok(CongestionControlAlgorithm::CUBIC), in from_str()
913 impl From<CongestionControlAlgorithm> for &'static CongestionControlOps {
914 fn from(algo: CongestionControlAlgorithm) -> Self { in from()
916 CongestionControlAlgorithm::Reno => &reno::RENO, in from()
917 CongestionControlAlgorithm::CUBIC => &cubic::CUBIC, in from()
1065 let algo = CongestionControlAlgorithm::from_str("reno").unwrap(); in lookup_cc_algo_ok()
1066 assert_eq!(algo, CongestionControlAlgorithm::Reno); in lookup_cc_algo_ok()
1072 CongestionControlAlgorithm::from_str("???"), in lookup_cc_algo_bad()
1080 cfg.set_cc_algorithm(CongestionControlAlgorithm::Reno); in collapse_cwnd()
1092 cfg.set_cc_algorithm(CongestionControlAlgorithm::Reno); in loss_on_pto()
1318 cfg.set_cc_algorithm(CongestionControlAlgorithm::Reno); in loss_on_timer()
1471 cfg.set_cc_algorithm(CongestionControlAlgorithm::Reno); in loss_on_reordering()
1630 cfg.set_cc_algorithm(CongestionControlAlgorithm::CUBIC); in pacing()