Symbol: bbr
include/uapi/linux/inet_diag.h
237
struct tcp_bbr_info bbr;
net/ipv4/tcp_bbr.c
1001
bbr->pacing_gain = (bbr->lt_use_bw ?
net/ipv4/tcp_bbr.c
1003
bbr_pacing_gain[bbr->cycle_idx]);
net/ipv4/tcp_bbr.c
1004
bbr->cwnd_gain = bbr_cwnd_gain;
net/ipv4/tcp_bbr.c
1007
bbr->pacing_gain = BBR_UNIT;
net/ipv4/tcp_bbr.c
1008
bbr->cwnd_gain = BBR_UNIT;
net/ipv4/tcp_bbr.c
1011
WARN_ONCE(1, "BBR bad mode: %u\n", bbr->mode);
net/ipv4/tcp_bbr.c
1029
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
1035
bbr_set_pacing_rate(sk, bw, bbr->pacing_gain);
net/ipv4/tcp_bbr.c
1036
bbr_set_cwnd(sk, rs, rs->acked_sacked, bw, bbr->cwnd_gain);
net/ipv4/tcp_bbr.c
1042
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
1044
bbr->prior_cwnd = 0;
net/ipv4/tcp_bbr.c
1046
bbr->rtt_cnt = 0;
net/ipv4/tcp_bbr.c
1047
bbr->next_rtt_delivered = tp->delivered;
net/ipv4/tcp_bbr.c
1048
bbr->prev_ca_state = TCP_CA_Open;
net/ipv4/tcp_bbr.c
1049
bbr->packet_conservation = 0;
net/ipv4/tcp_bbr.c
1051
bbr->probe_rtt_done_stamp = 0;
net/ipv4/tcp_bbr.c
1052
bbr->probe_rtt_round_done = 0;
net/ipv4/tcp_bbr.c
1053
bbr->min_rtt_us = tcp_min_rtt(tp);
net/ipv4/tcp_bbr.c
1054
bbr->min_rtt_stamp = tcp_jiffies32;
net/ipv4/tcp_bbr.c
1056
minmax_reset(&bbr->bw, bbr->rtt_cnt, 0); /* init max bw to 0 */
net/ipv4/tcp_bbr.c
1058
bbr->has_seen_rtt = 0;
net/ipv4/tcp_bbr.c
1061
bbr->round_start = 0;
net/ipv4/tcp_bbr.c
1062
bbr->idle_restart = 0;
net/ipv4/tcp_bbr.c
1063
bbr->full_bw_reached = 0;
net/ipv4/tcp_bbr.c
1064
bbr->full_bw = 0;
net/ipv4/tcp_bbr.c
1065
bbr->full_bw_cnt = 0;
net/ipv4/tcp_bbr.c
1066
bbr->cycle_mstamp = 0;
net/ipv4/tcp_bbr.c
1067
bbr->cycle_idx = 0;
net/ipv4/tcp_bbr.c
1071
bbr->ack_epoch_mstamp = tp->tcp_mstamp;
net/ipv4/tcp_bbr.c
1072
bbr->ack_epoch_acked = 0;
net/ipv4/tcp_bbr.c
1073
bbr->extra_acked_win_rtts = 0;
net/ipv4/tcp_bbr.c
1074
bbr->extra_acked_win_idx = 0;
net/ipv4/tcp_bbr.c
1075
bbr->extra_acked[0] = 0;
net/ipv4/tcp_bbr.c
1076
bbr->extra_acked[1] = 0;
net/ipv4/tcp_bbr.c
1092
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
1094
bbr->full_bw = 0; /* spurious slow-down; reset full pipe detection */
net/ipv4/tcp_bbr.c
1095
bbr->full_bw_cnt = 0;
net/ipv4/tcp_bbr.c
1113
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
1117
memset(&info->bbr, 0, sizeof(info->bbr));
net/ipv4/tcp_bbr.c
1118
info->bbr.bbr_bw_lo = (u32)bw;
net/ipv4/tcp_bbr.c
1119
info->bbr.bbr_bw_hi = (u32)(bw >> 32);
net/ipv4/tcp_bbr.c
1120
info->bbr.bbr_min_rtt = bbr->min_rtt_us;
net/ipv4/tcp_bbr.c
1121
info->bbr.bbr_pacing_gain = bbr->pacing_gain;
net/ipv4/tcp_bbr.c
1122
info->bbr.bbr_cwnd_gain = bbr->cwnd_gain;
net/ipv4/tcp_bbr.c
1124
return sizeof(info->bbr);
net/ipv4/tcp_bbr.c
1131
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
1136
bbr->prev_ca_state = TCP_CA_Loss;
net/ipv4/tcp_bbr.c
1137
bbr->full_bw = 0;
net/ipv4/tcp_bbr.c
1138
bbr->round_start = 1; /* treat RTO like end of a round */
net/ipv4/tcp_bbr.c
1178
BUILD_BUG_ON(sizeof(struct bbr) > ICSK_CA_PRIV_SIZE);
net/ipv4/tcp_bbr.c
209
const struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
211
return bbr->full_bw_reached;
net/ipv4/tcp_bbr.c
217
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
219
return minmax_get(&bbr->bw);
net/ipv4/tcp_bbr.c
225
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
227
return bbr->lt_use_bw ? bbr->lt_bw : bbr_max_bw(sk);
net/ipv4/tcp_bbr.c
235
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
237
return max(bbr->extra_acked[0], bbr->extra_acked[1]);
net/ipv4/tcp_bbr.c
269
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
275
bbr->has_seen_rtt = 1;
net/ipv4/tcp_bbr.c
289
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
292
if (unlikely(!bbr->has_seen_rtt && tp->srtt_us))
net/ipv4/tcp_bbr.c
324
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
326
if (bbr->prev_ca_state < TCP_CA_Recovery && bbr->mode != BBR_PROBE_RTT)
net/ipv4/tcp_bbr.c
327
bbr->prior_cwnd = tcp_snd_cwnd(tp); /* this cwnd is good enough */
net/ipv4/tcp_bbr.c
329
bbr->prior_cwnd = max(bbr->prior_cwnd, tcp_snd_cwnd(tp));
net/ipv4/tcp_bbr.c
335
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
338
bbr->idle_restart = 1;
net/ipv4/tcp_bbr.c
339
bbr->ack_epoch_mstamp = tp->tcp_mstamp;
net/ipv4/tcp_bbr.c
340
bbr->ack_epoch_acked = 0;
net/ipv4/tcp_bbr.c
344
if (bbr->mode == BBR_PROBE_BW)
net/ipv4/tcp_bbr.c
346
else if (bbr->mode == BBR_PROBE_RTT)
net/ipv4/tcp_bbr.c
362
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
372
if (unlikely(bbr->min_rtt_us == ~0U)) /* no valid RTT samples yet? */
net/ipv4/tcp_bbr.c
375
w = (u64)bw * bbr->min_rtt_us;
net/ipv4/tcp_bbr.c
397
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
406
if (bbr->mode == BBR_PROBE_BW && bbr->cycle_idx == 0)
net/ipv4/tcp_bbr.c
440
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
449
if (bbr->pacing_gain > BBR_UNIT) /* increasing inflight */
net/ipv4/tcp_bbr.c
484
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
485
u8 prev_state = bbr->prev_ca_state, state = inet_csk(sk)->icsk_ca_state;
net/ipv4/tcp_bbr.c
497
bbr->packet_conservation = 1;
net/ipv4/tcp_bbr.c
498
bbr->next_rtt_delivered = tp->delivered; /* start round now */
net/ipv4/tcp_bbr.c
503
cwnd = max(cwnd, bbr->prior_cwnd);
net/ipv4/tcp_bbr.c
504
bbr->packet_conservation = 0;
net/ipv4/tcp_bbr.c
506
bbr->prev_ca_state = state;
net/ipv4/tcp_bbr.c
508
if (bbr->packet_conservation) {
net/ipv4/tcp_bbr.c
523
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
549
if (bbr->mode == BBR_PROBE_RTT) /* drain queue, refresh min_rtt */
net/ipv4/tcp_bbr.c
558
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
560
tcp_stamp_us_delta(tp->delivered_mstamp, bbr->cycle_mstamp) >
net/ipv4/tcp_bbr.c
561
bbr->min_rtt_us;
net/ipv4/tcp_bbr.c
567
if (bbr->pacing_gain == BBR_UNIT)
net/ipv4/tcp_bbr.c
578
if (bbr->pacing_gain > BBR_UNIT)
net/ipv4/tcp_bbr.c
581
inflight >= bbr_inflight(sk, bw, bbr->pacing_gain));
net/ipv4/tcp_bbr.c
594
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
596
bbr->cycle_idx = (bbr->cycle_idx + 1) & (CYCLE_LEN - 1);
net/ipv4/tcp_bbr.c
597
bbr->cycle_mstamp = tp->delivered_mstamp;
net/ipv4/tcp_bbr.c
604
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
606
if (bbr->mode == BBR_PROBE_BW && bbr_is_next_cycle_phase(sk, rs))
net/ipv4/tcp_bbr.c
612
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
614
bbr->mode = BBR_STARTUP;
net/ipv4/tcp_bbr.c
619
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
621
bbr->mode = BBR_PROBE_BW;
net/ipv4/tcp_bbr.c
622
bbr->cycle_idx = CYCLE_LEN - 1 - get_random_u32_below(bbr_cycle_rand);
net/ipv4/tcp_bbr.c
638
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
640
bbr->lt_last_stamp = div_u64(tp->delivered_mstamp, USEC_PER_MSEC);
net/ipv4/tcp_bbr.c
641
bbr->lt_last_delivered = tp->delivered;
net/ipv4/tcp_bbr.c
642
bbr->lt_last_lost = tp->lost;
net/ipv4/tcp_bbr.c
643
bbr->lt_rtt_cnt = 0;
net/ipv4/tcp_bbr.c
649
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
651
bbr->lt_bw = 0;
net/ipv4/tcp_bbr.c
652
bbr->lt_use_bw = 0;
net/ipv4/tcp_bbr.c
653
bbr->lt_is_sampling = false;
net/ipv4/tcp_bbr.c
660
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
663
if (bbr->lt_bw) { /* do we have bw from a previous interval? */
net/ipv4/tcp_bbr.c
665
diff = abs(bw - bbr->lt_bw);
net/ipv4/tcp_bbr.c
666
if ((diff * BBR_UNIT <= bbr_lt_bw_ratio * bbr->lt_bw) ||
net/ipv4/tcp_bbr.c
670
bbr->lt_bw = (bw + bbr->lt_bw) >> 1; /* avg 2 intvls */
net/ipv4/tcp_bbr.c
671
bbr->lt_use_bw = 1;
net/ipv4/tcp_bbr.c
672
bbr->pacing_gain = BBR_UNIT; /* try to avoid drops */
net/ipv4/tcp_bbr.c
673
bbr->lt_rtt_cnt = 0;
net/ipv4/tcp_bbr.c
677
bbr->lt_bw = bw;
net/ipv4/tcp_bbr.c
691
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
696
if (bbr->lt_use_bw) { /* already using long-term rate, lt_bw? */
net/ipv4/tcp_bbr.c
697
if (bbr->mode == BBR_PROBE_BW && bbr->round_start &&
net/ipv4/tcp_bbr.c
698
++bbr->lt_rtt_cnt >= bbr_lt_bw_max_rtts) {
net/ipv4/tcp_bbr.c
709
if (!bbr->lt_is_sampling) {
net/ipv4/tcp_bbr.c
713
bbr->lt_is_sampling = true;
net/ipv4/tcp_bbr.c
722
if (bbr->round_start)
net/ipv4/tcp_bbr.c
723
bbr->lt_rtt_cnt++; /* count round trips in this interval */
net/ipv4/tcp_bbr.c
724
if (bbr->lt_rtt_cnt < bbr_lt_intvl_min_rtts)
net/ipv4/tcp_bbr.c
726
if (bbr->lt_rtt_cnt > 4 * bbr_lt_intvl_min_rtts) {
net/ipv4/tcp_bbr.c
739
lost = tp->lost - bbr->lt_last_lost;
net/ipv4/tcp_bbr.c
740
delivered = tp->delivered - bbr->lt_last_delivered;
net/ipv4/tcp_bbr.c
746
t = div_u64(tp->delivered_mstamp, USEC_PER_MSEC) - bbr->lt_last_stamp;
net/ipv4/tcp_bbr.c
764
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
767
bbr->round_start = 0;
net/ipv4/tcp_bbr.c
772
if (!before(rs->prior_delivered, bbr->next_rtt_delivered)) {
net/ipv4/tcp_bbr.c
773
bbr->next_rtt_delivered = tp->delivered;
net/ipv4/tcp_bbr.c
774
bbr->rtt_cnt++;
net/ipv4/tcp_bbr.c
775
bbr->round_start = 1;
net/ipv4/tcp_bbr.c
776
bbr->packet_conservation = 0;
net/ipv4/tcp_bbr.c
800
minmax_running_max(&bbr->bw, bbr_bw_rtts, bbr->rtt_cnt, bw);
net/ipv4/tcp_bbr.c
821
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
828
if (bbr->round_start) {
net/ipv4/tcp_bbr.c
829
bbr->extra_acked_win_rtts = min(0x1F,
net/ipv4/tcp_bbr.c
830
bbr->extra_acked_win_rtts + 1);
net/ipv4/tcp_bbr.c
831
if (bbr->extra_acked_win_rtts >= bbr_extra_acked_win_rtts) {
net/ipv4/tcp_bbr.c
832
bbr->extra_acked_win_rtts = 0;
net/ipv4/tcp_bbr.c
833
bbr->extra_acked_win_idx = bbr->extra_acked_win_idx ?
net/ipv4/tcp_bbr.c
835
bbr->extra_acked[bbr->extra_acked_win_idx] = 0;
net/ipv4/tcp_bbr.c
841
bbr->ack_epoch_mstamp);
net/ipv4/tcp_bbr.c
848
if (bbr->ack_epoch_acked <= expected_acked ||
net/ipv4/tcp_bbr.c
849
(bbr->ack_epoch_acked + rs->acked_sacked >=
net/ipv4/tcp_bbr.c
851
bbr->ack_epoch_acked = 0;
net/ipv4/tcp_bbr.c
852
bbr->ack_epoch_mstamp = tp->delivered_mstamp;
net/ipv4/tcp_bbr.c
857
bbr->ack_epoch_acked = min_t(u32, 0xFFFFF,
net/ipv4/tcp_bbr.c
858
bbr->ack_epoch_acked + rs->acked_sacked);
net/ipv4/tcp_bbr.c
859
extra_acked = bbr->ack_epoch_acked - expected_acked;
net/ipv4/tcp_bbr.c
861
if (extra_acked > bbr->extra_acked[bbr->extra_acked_win_idx])
net/ipv4/tcp_bbr.c
862
bbr->extra_acked[bbr->extra_acked_win_idx] = extra_acked;
net/ipv4/tcp_bbr.c
876
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
879
if (bbr_full_bw_reached(sk) || !bbr->round_start || rs->is_app_limited)
net/ipv4/tcp_bbr.c
882
bw_thresh = (u64)bbr->full_bw * bbr_full_bw_thresh >> BBR_SCALE;
net/ipv4/tcp_bbr.c
884
bbr->full_bw = bbr_max_bw(sk);
net/ipv4/tcp_bbr.c
885
bbr->full_bw_cnt = 0;
net/ipv4/tcp_bbr.c
888
++bbr->full_bw_cnt;
net/ipv4/tcp_bbr.c
889
bbr->full_bw_reached = bbr->full_bw_cnt >= bbr_full_bw_cnt;
net/ipv4/tcp_bbr.c
895
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
897
if (bbr->mode == BBR_STARTUP && bbr_full_bw_reached(sk)) {
net/ipv4/tcp_bbr.c
898
bbr->mode = BBR_DRAIN; /* drain queue we created */
net/ipv4/tcp_bbr.c
902
if (bbr->mode == BBR_DRAIN &&
net/ipv4/tcp_bbr.c
911
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
913
if (!(bbr->probe_rtt_done_stamp &&
net/ipv4/tcp_bbr.c
914
after(tcp_jiffies32, bbr->probe_rtt_done_stamp)))
net/ipv4/tcp_bbr.c
917
bbr->min_rtt_stamp = tcp_jiffies32; /* wait a while until PROBE_RTT */
net/ipv4/tcp_bbr.c
918
tcp_snd_cwnd_set(tp, max(tcp_snd_cwnd(tp), bbr->prior_cwnd));
net/ipv4/tcp_bbr.c
944
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
949
bbr->min_rtt_stamp + bbr_min_rtt_win_sec * HZ);
net/ipv4/tcp_bbr.c
951
(rs->rtt_us < bbr->min_rtt_us ||
net/ipv4/tcp_bbr.c
953
bbr->min_rtt_us = rs->rtt_us;
net/ipv4/tcp_bbr.c
954
bbr->min_rtt_stamp = tcp_jiffies32;
net/ipv4/tcp_bbr.c
958
!bbr->idle_restart && bbr->mode != BBR_PROBE_RTT) {
net/ipv4/tcp_bbr.c
959
bbr->mode = BBR_PROBE_RTT; /* dip, drain queue */
net/ipv4/tcp_bbr.c
961
bbr->probe_rtt_done_stamp = 0;
net/ipv4/tcp_bbr.c
964
if (bbr->mode == BBR_PROBE_RTT) {
net/ipv4/tcp_bbr.c
969
if (!bbr->probe_rtt_done_stamp &&
net/ipv4/tcp_bbr.c
971
bbr->probe_rtt_done_stamp = tcp_jiffies32 +
net/ipv4/tcp_bbr.c
973
bbr->probe_rtt_round_done = 0;
net/ipv4/tcp_bbr.c
974
bbr->next_rtt_delivered = tp->delivered;
net/ipv4/tcp_bbr.c
975
} else if (bbr->probe_rtt_done_stamp) {
net/ipv4/tcp_bbr.c
976
if (bbr->round_start)
net/ipv4/tcp_bbr.c
977
bbr->probe_rtt_round_done = 1;
net/ipv4/tcp_bbr.c
978
if (bbr->probe_rtt_round_done)
net/ipv4/tcp_bbr.c
984
bbr->idle_restart = 0;
net/ipv4/tcp_bbr.c
989
struct bbr *bbr = inet_csk_ca(sk);
net/ipv4/tcp_bbr.c
991
switch (bbr->mode) {
net/ipv4/tcp_bbr.c
993
bbr->pacing_gain = bbr_high_gain;
net/ipv4/tcp_bbr.c
994
bbr->cwnd_gain = bbr_high_gain;
net/ipv4/tcp_bbr.c
997
bbr->pacing_gain = bbr_drain_gain; /* slow, to drain */
net/ipv4/tcp_bbr.c
998
bbr->cwnd_gain = bbr_high_gain; /* keep cwnd */