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

Function get_min_cwnd

freebsd/netinet/tcp_stacks/bbr.c:532–542  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

530}
531
532static inline uint32_t
533get_min_cwnd(struct tcp_bbr *bbr)
534{
535 int mss;
536
537 mss = min((bbr->rc_tp->t_maxseg - bbr->rc_last_options), bbr->r_ctl.rc_pace_max_segs);
538 if (bbr_get_rtt(bbr, BBR_RTT_PROP) < BBR_HIGH_SPEED)
539 return (bbr_cwnd_min_val_hs * mss);
540 else
541 return (bbr_cwnd_min_val * mss);
542}
543
544static uint32_t
545bbr_get_persists_timer_val(struct tcpcb *tp, struct tcp_bbr *bbr)

Callers 5

bbr_get_target_cwndFunction · 0.85
bbr_ack_receivedFunction · 0.85
bbr_post_recoveryFunction · 0.85
bbr_cong_signalFunction · 0.85
bbr_get_a_state_targetFunction · 0.85

Calls 2

minFunction · 0.85
bbr_get_rttFunction · 0.85

Tested by

no test coverage detected