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

Function bbr_log_to_start

freebsd/netinet/tcp_stacks/bbr.c:2498–2520  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2496}
2497
2498static void
2499bbr_log_to_start(struct tcp_bbr *bbr, uint32_t cts, uint32_t to, int32_t slot, uint8_t which)
2500{
2501 if (bbr->rc_tp->t_logstate != TCP_LOG_STATE_OFF) {
2502 union tcp_log_stackspecific log;
2503
2504 bbr_fill_in_logging_data(bbr, &log.u_bbr, cts);
2505
2506 log.u_bbr.flex1 = bbr->bbr_timer_src;
2507 log.u_bbr.flex2 = to;
2508 log.u_bbr.flex3 = bbr->r_ctl.rc_hpts_flags;
2509 log.u_bbr.flex4 = slot;
2510 log.u_bbr.flex5 = bbr->rc_inp->inp_hptsslot;
2511 log.u_bbr.flex6 = TICKS_2_USEC(bbr->rc_tp->t_rxtcur);
2512 log.u_bbr.pkts_out = bbr->rc_inp->inp_flags2;
2513 log.u_bbr.flex8 = which;
2514 TCP_LOG_EVENTP(bbr->rc_tp, NULL,
2515 &bbr->rc_inp->inp_socket->so_rcv,
2516 &bbr->rc_inp->inp_socket->so_snd,
2517 BBR_LOG_TIMERSTAR, 0,
2518 0, &log, false, &bbr->rc_tv);
2519 }
2520}
2521
2522static void
2523bbr_log_thresh_choice(struct tcp_bbr *bbr, uint32_t cts, uint32_t thresh, uint32_t lro, uint32_t srtt, struct bbr_sendmap *rsm, uint8_t frm)

Callers 1

bbr_start_hpts_timerFunction · 0.85

Calls 1

bbr_fill_in_logging_dataFunction · 0.85

Tested by

no test coverage detected