| 2387 | } |
| 2388 | |
| 2389 | static void |
| 2390 | bbr_log_startup_event(struct tcp_bbr *bbr, uint32_t cts, uint32_t flex1, uint32_t flex2, uint32_t flex3, uint8_t reason) |
| 2391 | { |
| 2392 | if (bbr->rc_tp->t_logstate != TCP_LOG_STATE_OFF) { |
| 2393 | union tcp_log_stackspecific log; |
| 2394 | |
| 2395 | bbr_fill_in_logging_data(bbr, &log.u_bbr, cts); |
| 2396 | log.u_bbr.flex1 = flex1; |
| 2397 | log.u_bbr.flex2 = flex2; |
| 2398 | log.u_bbr.flex3 = flex3; |
| 2399 | log.u_bbr.flex4 = 0; |
| 2400 | log.u_bbr.flex5 = bbr->r_ctl.rc_target_at_state; |
| 2401 | log.u_bbr.flex6 = bbr->r_ctl.rc_lost_at_startup; |
| 2402 | log.u_bbr.flex8 = reason; |
| 2403 | log.u_bbr.cur_del_rate = bbr->r_ctl.rc_bbr_lastbtlbw; |
| 2404 | TCP_LOG_EVENTP(bbr->rc_tp, NULL, |
| 2405 | &bbr->rc_inp->inp_socket->so_rcv, |
| 2406 | &bbr->rc_inp->inp_socket->so_snd, |
| 2407 | BBR_LOG_REDUCE, 0, |
| 2408 | 0, &log, false, &bbr->rc_tv); |
| 2409 | } |
| 2410 | } |
| 2411 | |
| 2412 | static void |
| 2413 | bbr_log_hpts_diag(struct tcp_bbr *bbr, uint32_t cts, struct hpts_diag *diag) |
no test coverage detected