| 11377 | } |
| 11378 | |
| 11379 | static void |
| 11380 | bbr_check_bbr_for_state(struct tcp_bbr *bbr, uint32_t cts, int32_t line, uint32_t losses) |
| 11381 | { |
| 11382 | int32_t epoch = 0; |
| 11383 | |
| 11384 | if ((cts - bbr->r_ctl.rc_rcv_epoch_start) >= bbr_get_rtt(bbr, BBR_RTT_PROP)) { |
| 11385 | bbr_set_epoch(bbr, cts, line); |
| 11386 | /* At each epoch doe lt bw sampling */ |
| 11387 | epoch = 1; |
| 11388 | } |
| 11389 | bbr_state_change(bbr, cts, epoch, bbr->rc_is_pkt_epoch_now, losses); |
| 11390 | } |
| 11391 | |
| 11392 | static int |
| 11393 | bbr_do_segment_nounlock(struct mbuf *m, struct tcphdr *th, struct socket *so, |
no test coverage detected