| 10014 | } |
| 10015 | |
| 10016 | static void |
| 10017 | bbr_google_mode_off(struct tcp_bbr *bbr) |
| 10018 | { |
| 10019 | bbr->rc_use_google = 0; |
| 10020 | bbr->r_ctl.bbr_google_discount = 0; |
| 10021 | bbr->no_pacing_until = bbr_no_pacing_until; |
| 10022 | bbr->r_use_policer = 0; |
| 10023 | if (bbr->no_pacing_until) |
| 10024 | bbr->rc_no_pacing = 1; |
| 10025 | else |
| 10026 | bbr->rc_no_pacing = 0; |
| 10027 | if (bbr_use_rack_resend_cheat) |
| 10028 | bbr->bbr_use_rack_cheat = 1; |
| 10029 | else |
| 10030 | bbr->bbr_use_rack_cheat = 0; |
| 10031 | if (bbr_incr_timers) |
| 10032 | bbr->r_ctl.rc_incr_tmrs = 1; |
| 10033 | else |
| 10034 | bbr->r_ctl.rc_incr_tmrs = 0; |
| 10035 | if (bbr_include_tcp_oh) |
| 10036 | bbr->r_ctl.rc_inc_tcp_oh = 1; |
| 10037 | else |
| 10038 | bbr->r_ctl.rc_inc_tcp_oh = 0; |
| 10039 | if (bbr_include_ip_oh) |
| 10040 | bbr->r_ctl.rc_inc_ip_oh = 1; |
| 10041 | else |
| 10042 | bbr->r_ctl.rc_inc_ip_oh = 0; |
| 10043 | if (bbr_include_enet_oh) |
| 10044 | bbr->r_ctl.rc_inc_enet_oh = 1; |
| 10045 | else |
| 10046 | bbr->r_ctl.rc_inc_enet_oh = 0; |
| 10047 | bbr->r_ctl.rc_probertt_int = bbr_rtt_probe_limit; |
| 10048 | reset_time(&bbr->r_ctl.rc_delrate, |
| 10049 | bbr_num_pktepo_for_del_limit); |
| 10050 | reset_time_small(&bbr->r_ctl.rc_rttprop, |
| 10051 | (bbr_filter_len_sec * USECS_IN_SECOND)); |
| 10052 | tcp_bbr_tso_size_check(bbr, tcp_get_usecs(&bbr->rc_tv)); |
| 10053 | } |
| 10054 | /* |
| 10055 | * Return 0 on success, non-zero on failure |
| 10056 | * which indicates the error (usually no memory). |
no test coverage detected