MCPcopy Create free account
hub / github.com/F-Stack/f-stack / bbr_google_mode_on

Function bbr_google_mode_on

freebsd/netinet/tcp_stacks/bbr.c:9996–10014  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9994}
9995
9996static void
9997bbr_google_mode_on(struct tcp_bbr *bbr)
9998{
9999 bbr->rc_use_google = 1;
10000 bbr->rc_no_pacing = 0;
10001 bbr->r_ctl.bbr_google_discount = bbr_google_discount;
10002 bbr->r_use_policer = bbr_policer_detection_enabled;
10003 bbr->r_ctl.rc_probertt_int = (USECS_IN_SECOND * 10);
10004 bbr->bbr_use_rack_cheat = 0;
10005 bbr->r_ctl.rc_incr_tmrs = 0;
10006 bbr->r_ctl.rc_inc_tcp_oh = 0;
10007 bbr->r_ctl.rc_inc_ip_oh = 0;
10008 bbr->r_ctl.rc_inc_enet_oh = 0;
10009 reset_time(&bbr->r_ctl.rc_delrate,
10010 BBR_NUM_RTTS_FOR_GOOG_DEL_LIMIT);
10011 reset_time_small(&bbr->r_ctl.rc_rttprop,
10012 (11 * USECS_IN_SECOND));
10013 tcp_bbr_tso_size_check(bbr, tcp_get_usecs(&bbr->rc_tv));
10014}
10015
10016static void
10017bbr_google_mode_off(struct tcp_bbr *bbr)

Callers 1

bbr_set_sockoptFunction · 0.85

Calls 4

reset_timeFunction · 0.85
reset_time_smallFunction · 0.85
tcp_bbr_tso_size_checkFunction · 0.85
tcp_get_usecsFunction · 0.85

Tested by

no test coverage detected