Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_stacks/bbr.c
- This file is larger than 256 KB, so syntax highlighting is disabled by default.
Show First 20 Lines • Show All 5,279 Lines • ▼ Show 20 Lines | if (bbr->r_ctl.rc_hpts_flags & PACE_TMR_MASK) { | ||||
} | } | ||||
bbr->rc_timer_first = 0; | bbr->rc_timer_first = 0; | ||||
bbr_log_to_cancel(bbr, line, cts, hpts_removed); | bbr_log_to_cancel(bbr, line, cts, hpts_removed); | ||||
bbr->rc_tmr_stopped = bbr->r_ctl.rc_hpts_flags & PACE_TMR_MASK; | bbr->rc_tmr_stopped = bbr->r_ctl.rc_hpts_flags & PACE_TMR_MASK; | ||||
bbr->r_ctl.rc_hpts_flags &= ~(PACE_TMR_MASK); | bbr->r_ctl.rc_hpts_flags &= ~(PACE_TMR_MASK); | ||||
} | } | ||||
} | } | ||||
static void | static int | ||||
bbr_timer_stop(struct tcpcb *tp, uint32_t timer_type) | bbr_stopall(struct tcpcb *tp) | ||||
{ | { | ||||
struct tcp_bbr *bbr; | struct tcp_bbr *bbr; | ||||
bbr = (struct tcp_bbr *)tp->t_fb_ptr; | bbr = (struct tcp_bbr *)tp->t_fb_ptr; | ||||
bbr->rc_all_timers_stopped = 1; | bbr->rc_all_timers_stopped = 1; | ||||
return; | |||||
} | |||||
/* | |||||
* stop all timers always returning 0. | |||||
*/ | |||||
static int | |||||
bbr_stopall(struct tcpcb *tp) | |||||
{ | |||||
return (0); | return (0); | ||||
} | } | ||||
static void | |||||
bbr_timer_activate(struct tcpcb *tp, uint32_t timer_type, uint32_t delta) | |||||
{ | |||||
return; | |||||
} | |||||
/* | |||||
* return true if a bbr timer (rack or tlp) is active. | |||||
*/ | |||||
static int | |||||
bbr_timer_active(struct tcpcb *tp, uint32_t timer_type) | |||||
{ | |||||
return (0); | |||||
} | |||||
static uint32_t | static uint32_t | ||||
bbr_get_earliest_send_outstanding(struct tcp_bbr *bbr, struct bbr_sendmap *u_rsm, uint32_t cts) | bbr_get_earliest_send_outstanding(struct tcp_bbr *bbr, struct bbr_sendmap *u_rsm, uint32_t cts) | ||||
{ | { | ||||
struct bbr_sendmap *rsm; | struct bbr_sendmap *rsm; | ||||
rsm = TAILQ_FIRST(&bbr->r_ctl.rc_tmap); | rsm = TAILQ_FIRST(&bbr->r_ctl.rc_tmap); | ||||
if ((rsm == NULL) || (u_rsm == rsm)) | if ((rsm == NULL) || (u_rsm == rsm)) | ||||
return (cts); | return (cts); | ||||
▲ Show 20 Lines • Show All 8,833 Lines • ▼ Show 20 Lines | struct tcp_function_block __tcp_bbr = { | ||||
.tfb_tcp_output = bbr_output, | .tfb_tcp_output = bbr_output, | ||||
.tfb_do_queued_segments = ctf_do_queued_segments, | .tfb_do_queued_segments = ctf_do_queued_segments, | ||||
.tfb_do_segment_nounlock = bbr_do_segment_nounlock, | .tfb_do_segment_nounlock = bbr_do_segment_nounlock, | ||||
.tfb_tcp_do_segment = bbr_do_segment, | .tfb_tcp_do_segment = bbr_do_segment, | ||||
.tfb_tcp_ctloutput = bbr_ctloutput, | .tfb_tcp_ctloutput = bbr_ctloutput, | ||||
.tfb_tcp_fb_init = bbr_init, | .tfb_tcp_fb_init = bbr_init, | ||||
.tfb_tcp_fb_fini = bbr_fini, | .tfb_tcp_fb_fini = bbr_fini, | ||||
.tfb_tcp_timer_stop_all = bbr_stopall, | .tfb_tcp_timer_stop_all = bbr_stopall, | ||||
.tfb_tcp_timer_activate = bbr_timer_activate, | |||||
.tfb_tcp_timer_active = bbr_timer_active, | |||||
.tfb_tcp_timer_stop = bbr_timer_stop, | |||||
.tfb_tcp_rexmit_tmr = bbr_remxt_tmr, | .tfb_tcp_rexmit_tmr = bbr_remxt_tmr, | ||||
.tfb_tcp_handoff_ok = bbr_handoff_ok, | .tfb_tcp_handoff_ok = bbr_handoff_ok, | ||||
.tfb_tcp_mtu_chg = bbr_mtu_chg, | .tfb_tcp_mtu_chg = bbr_mtu_chg, | ||||
.tfb_pru_options = bbr_pru_options, | .tfb_pru_options = bbr_pru_options, | ||||
.tfb_flags = TCP_FUNC_OUTPUT_CANDROP, | .tfb_flags = TCP_FUNC_OUTPUT_CANDROP, | ||||
}; | }; | ||||
/* | /* | ||||
▲ Show 20 Lines • Show All 678 Lines • Show Last 20 Lines |