| 530 | } |
| 531 | |
| 532 | static inline uint32_t |
| 533 | get_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 | |
| 544 | static uint32_t |
| 545 | bbr_get_persists_timer_val(struct tcpcb *tp, struct tcp_bbr *bbr) |
no test coverage detected