Changeset View
Changeset View
Standalone View
Standalone View
sys/netinet/tcp_ratelimit.c
Show First 20 Lines • Show All 1,523 Lines • ▼ Show 20 Lines | |||||
static void | static void | ||||
tcp_log_pacing_size(struct tcpcb *tp, uint64_t bw, uint32_t segsiz, uint32_t new_tso, | tcp_log_pacing_size(struct tcpcb *tp, uint64_t bw, uint32_t segsiz, uint32_t new_tso, | ||||
uint64_t hw_rate, uint32_t time_between, uint32_t calc_time_between, | uint64_t hw_rate, uint32_t time_between, uint32_t calc_time_between, | ||||
uint32_t segs, uint32_t res_div, uint16_t mult, uint8_t mod) | uint32_t segs, uint32_t res_div, uint16_t mult, uint8_t mod) | ||||
{ | { | ||||
if (tp->t_logstate != TCP_LOG_STATE_OFF) { | if (tp->t_logstate != TCP_LOG_STATE_OFF) { | ||||
union tcp_log_stackspecific log; | union tcp_log_stackspecific log; | ||||
struct timeval tv; | struct timeval tv; | ||||
uint32_t cts; | |||||
memset(&log, 0, sizeof(log)); | memset(&log, 0, sizeof(log)); | ||||
cts = tcp_get_usecs(&tv); | |||||
log.u_bbr.flex1 = segsiz; | log.u_bbr.flex1 = segsiz; | ||||
log.u_bbr.flex2 = new_tso; | log.u_bbr.flex2 = new_tso; | ||||
log.u_bbr.flex3 = time_between; | log.u_bbr.flex3 = time_between; | ||||
log.u_bbr.flex4 = calc_time_between; | log.u_bbr.flex4 = calc_time_between; | ||||
log.u_bbr.flex5 = segs; | log.u_bbr.flex5 = segs; | ||||
log.u_bbr.flex6 = res_div; | log.u_bbr.flex6 = res_div; | ||||
log.u_bbr.flex7 = mult; | log.u_bbr.flex7 = mult; | ||||
log.u_bbr.flex8 = mod; | log.u_bbr.flex8 = mod; | ||||
▲ Show 20 Lines • Show All 191 Lines • Show Last 20 Lines |