/freebsd/sys/netinet/ |
H A D | sctp_cc_functions.c | 64 (net->cwnd > assoc->max_cwnd) && in sctp_enforce_cwnd_limit() 65 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { in sctp_enforce_cwnd_limit() 66 net->cwnd = assoc->max_cwnd; in sctp_enforce_cwnd_limit() 67 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_enforce_cwnd_limit() 68 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_enforce_cwnd_limit() 83 net->cwnd = min((net->mtu * 4), max((2 * net->mtu), SCTP_INITIAL_CWND)); in sctp_set_initial_cc_param() 91 net->cwnd = (net->mtu - sizeof(struct sctphdr)) * cwnd_in_mtu; in sctp_set_initial_cc_param() 96 net->cwnd /= assoc->numnets; in sctp_set_initial_cc_param() 97 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { in sctp_set_initial_cc_param() 98 net->cwnd = net->mtu - sizeof(struct sctphdr); in sctp_set_initial_cc_param() [all …]
|
H A D | sctp_kdtrace.c | 44 SDT_PROBE_DEFINE5(sctp, cwnd, net, init, 55 SDT_PROBE_DEFINE5(sctp, cwnd, net, ack, 66 SDT_PROBE_DEFINE5(sctp, cwnd, net, rttvar, 74 SDT_PROBE_DEFINE5(sctp, cwnd, net, rttstep, 83 SDT_PROBE_DEFINE5(sctp, cwnd, net, fr, 94 SDT_PROBE_DEFINE5(sctp, cwnd, net, to, 105 SDT_PROBE_DEFINE5(sctp, cwnd, net, bl, 116 SDT_PROBE_DEFINE5(sctp, cwnd, net, ecn, 127 SDT_PROBE_DEFINE5(sctp, cwnd, net, pd,
|
H A D | sctp_kdtrace.h | 60 SDT_PROBE_DECLARE(sctp, cwnd, net, init); 62 SDT_PROBE_DECLARE(sctp, cwnd, net, ack); 64 SDT_PROBE_DECLARE(sctp, cwnd, net, fr); 66 SDT_PROBE_DECLARE(sctp, cwnd, net, to); 68 SDT_PROBE_DECLARE(sctp, cwnd, net, bl); 70 SDT_PROBE_DECLARE(sctp, cwnd, net, ecn); 72 SDT_PROBE_DECLARE(sctp, cwnd, net, pd); 74 SDT_PROBE_DECLARE(sctp, cwnd, net, rttvar); 75 SDT_PROBE_DECLARE(sctp, cwnd, net, rttstep);
|
H A D | sctp_timer.c | 252 if (max_cwnd < mnet->cwnd) { in sctp_find_alternate_net() 254 max_cwnd = mnet->cwnd; in sctp_find_alternate_net() 255 } else if (max_cwnd == mnet->cwnd) { in sctp_find_alternate_net() 272 max_cwnd = mnet->cwnd; /* Useless? */ in sctp_find_alternate_net() 296 if (max_cwnd < mnet->cwnd) { in sctp_find_alternate_net() 298 max_cwnd = mnet->cwnd; in sctp_find_alternate_net() 299 } else if (max_cwnd == mnet->cwnd) { in sctp_find_alternate_net() 317 max_cwnd = mnet->cwnd; in sctp_find_alternate_net() 525 sctp_log_fr(net->flight_size, net->cwnd, stcb->asoc.total_flight, SCTP_FR_CWND_REPORT); in sctp_mark_all_for_resend() 662 chk->whoTo->cwnd -= chk->book_size; in sctp_mark_all_for_resend() [all …]
|
H A D | sctputil.c | 317 sctp_clog.x.cwnd.net = net; in sctp_log_cwnd() 319 sctp_clog.x.cwnd.cnt_in_send = 255; in sctp_log_cwnd() 321 sctp_clog.x.cwnd.cnt_in_send = stcb->asoc.send_queue_cnt; in sctp_log_cwnd() 323 sctp_clog.x.cwnd.cnt_in_str = 255; in sctp_log_cwnd() 325 sctp_clog.x.cwnd.cnt_in_str = stcb->asoc.stream_queue_cnt; in sctp_log_cwnd() 328 sctp_clog.x.cwnd.cwnd_new_value = net->cwnd; in sctp_log_cwnd() 329 sctp_clog.x.cwnd.inflight = net->flight_size; in sctp_log_cwnd() 330 sctp_clog.x.cwnd.pseudo_cumack = net->pseudo_cumack; in sctp_log_cwnd() 331 sctp_clog.x.cwnd.meets_pseudo_cumack = net->new_pseudo_cumack; in sctp_log_cwnd() 332 sctp_clog.x.cwnd.need_new_pseudo_cumack = net->find_pseudo_cumack; in sctp_log_cwnd() [all …]
|
H A D | sctp_uio.h | 915 struct sctp_cwnd_args cwnd; member 1227 uint32_t cwnd; /* */ member
|
H A D | sctp_sysctl.c | 532 xraddr.cwnd = net->cwnd; in sctp_sysctl_handle_assoclist()
|
H A D | sctp_indata.c | 3115 tp1->whoTo->cwnd -= tp1->book_size; in sctp_process_segment_range() 3270 tp1->whoTo->cwnd += tp1->book_size; in sctp_check_for_revoked() 3960 net->prev_cwnd = net->cwnd; in sctp_express_handle_sack() 4083 tp1->whoTo->cwnd -= tp1->book_size; in sctp_express_handle_sack() 4564 net->prev_cwnd = net->cwnd; in sctp_handle_sack() 4692 tp1->whoTo->cwnd -= tp1->book_size; in sctp_handle_sack() 4865 tp1->whoTo->cwnd += tp1->book_size; in sctp_handle_sack()
|
H A D | sctp_structs.h | 307 uint32_t cwnd; /* actual cwnd */ member
|
H A D | sctp_usrreq.c | 2554 paddri->spinfo_cwnd = net->cwnd; 2640 sstat->sstat_primary.spinfo_cwnd = net->cwnd; 6813 if ((net->cwnd > stcb->asoc.max_cwnd) && 6814 (net->cwnd > (net->mtu - sizeof(struct sctphdr)))) { 6815 net->cwnd = stcb->asoc.max_cwnd; 6816 if (net->cwnd < (net->mtu - sizeof(struct sctphdr))) { 6817 net->cwnd = net->mtu - sizeof(struct sctphdr);
|
H A D | sctp_output.c | 7059 data_list[i]->rec.data.cwnd_at_send = net->cwnd; in sctp_clean_up_datalist() 7967 if (net->flight_size >= net->cwnd) { in sctp_med_chunk_output() 8033 (net->flight_size >= net->cwnd)) { in sctp_med_chunk_output() 8580 if (net->flight_size >= net->cwnd) { in sctp_med_chunk_output() 8647 if (net->flight_size >= net->cwnd) { in sctp_med_chunk_output() 9702 if (net->flight_size >= net->cwnd) { in sctp_chunk_retransmission() 9910 data_list[i]->whoTo->cwnd -= data_list[i]->book_size; in sctp_chunk_retransmission() 10187 if ((net->flight_size + (asoc->max_burst * net->mtu)) < net->cwnd) { in sctp_chunk_output() 13404 if ((net->flight_size > net->cwnd) && in sctp_lower_sosend() 13683 if ((net->flight_size > net->cwnd) && in sctp_lower_sosend()
|
/freebsd/sys/netinet/cc/ |
H A D | cc_cubic.h | 224 int64_t cwnd; in cubic_cwnd() local 229 cwnd = (((int64_t)usecs_since_epoch << CUBIC_SHIFT) - (K * hz * tick)) / in cubic_cwnd() 232 if (cwnd > CUBED_ROOT_MAX_ULONG) in cubic_cwnd() 234 if (cwnd < -CUBED_ROOT_MAX_ULONG) in cubic_cwnd() 238 cwnd *= (cwnd * cwnd); in cubic_cwnd() 247 cwnd = ((cwnd * CUBIC_C_FACTOR) >> CUBIC_SHIFT_4) * smss + wmax; in cubic_cwnd() 252 return (lmax(0,cwnd)); in cubic_cwnd()
|
H A D | cc_cubic.c | 613 uint32_t cwnd; in cubic_ssthresh_update() local 616 cwnd = CCV(ccv, snd_cwnd); in cubic_ssthresh_update() 619 if (cwnd < cubic_data->W_max) { in cubic_ssthresh_update() 620 cwnd = ((uint64_t)cwnd * CUBIC_FC_FACTOR) >> CUBIC_SHIFT; in cubic_ssthresh_update() 623 cubic_data->W_max = cwnd; in cubic_ssthresh_update() 635 ssthresh = cwnd >> 1; in cubic_ssthresh_update() 636 cubic_data->W_max = ((uint64_t)cwnd * CUBIC_BETA) >> CUBIC_SHIFT; in cubic_ssthresh_update() 641 ssthresh = ((uint64_t)cwnd * CUBIC_BETA) >> CUBIC_SHIFT; in cubic_ssthresh_update()
|
/freebsd/sys/netgraph/ |
H A D | ng_l2tp.c | 140 u_int16_t cwnd; /* current congestion window */ member 1057 if (i >= seq->cwnd) { in ng_l2tp_rcvdata_ctrl() 1189 seq->cwnd = 1; in ng_l2tp_seq_init() 1288 seq->cwnd = 1; in ng_l2tp_seq_reset() 1336 if (seq->cwnd < seq->wmax) { in ng_l2tp_seq_recv_nr() 1338 if (seq->cwnd < seq->ssth) { in ng_l2tp_seq_recv_nr() 1339 seq->cwnd += nack; in ng_l2tp_seq_recv_nr() 1341 if (seq->cwnd > seq->ssth) { /* into cg.av. phase */ in ng_l2tp_seq_recv_nr() 1342 nack = seq->cwnd - seq->ssth; in ng_l2tp_seq_recv_nr() 1343 seq->cwnd = seq->ssth; in ng_l2tp_seq_recv_nr() [all …]
|
/freebsd/sys/dev/qlnx/qlnxe/ |
H A D | tcp_common.h | 128 __le32 cwnd /* absolute congestion window */; member 197 __le32 cwnd /* absolute congestion window */; member 286 __le32 cwnd /* absolute congestion window */; member
|
H A D | ecore_iscsi_api.h | 130 u32 cwnd; member
|
H A D | ecore_iwarp.c | 849 p_tcp_ramrod->tcp.cwnd = ECORE_IWARP_DEF_CWND_FACTOR * p_tcp_ramrod->tcp.mss; in ecore_iwarp_tcp_offload()
|
/freebsd/sys/netinet/tcp_stacks/ |
H A D | bbr.c | 3412 uint32_t cwnd; in bbr_get_raw_target_cwnd() local 3427 cwnd = (uint32_t)(((bdp * ((uint64_t)gain)) + (uint64_t)(BBR_UNIT - 1)) / ((uint64_t)BBR_UNIT)); in bbr_get_raw_target_cwnd() 3429 return (cwnd); in bbr_get_raw_target_cwnd() 3435 uint32_t cwnd, mss; in bbr_get_target_cwnd() local 3439 cwnd = roundup(bbr_get_raw_target_cwnd(bbr, bw, gain), mss); in bbr_get_target_cwnd() 3445 cwnd += (bbr_quanta * bbr->r_ctl.rc_pace_max_segs); in bbr_get_target_cwnd() 3455 cwnd += 2 * mss; in bbr_get_target_cwnd() 3457 if ((cwnd / mss) & 0x1) { in bbr_get_target_cwnd() 3459 cwnd += mss; in bbr_get_target_cwnd() 3463 if (cwnd < get_min_cwnd(bbr)) in bbr_get_target_cwnd() [all …]
|
H A D | rack.c | 17453 uint64_t cwnd, tr_perms = 0; in rack_get_pacing_delay() local 17466 cwnd = rack->r_ctl.rc_rack_largest_cwnd; in rack_get_pacing_delay() 17468 cwnd = rack->r_ctl.cwnd_to_use; in rack_get_pacing_delay() 17470 tr_perms = (cwnd * 1000) / srtt; in rack_get_pacing_delay()
|
/freebsd/sys/dev/irdma/ |
H A D | irdma_type.h | 839 u32 cwnd; member 946 u32 cwnd; member
|
H A D | irdma_verbs.c | 578 udp_info->cwnd = iwdev->roce_cwnd; in irdma_roce_fill_and_set_qpctx_info() 1022 udp_info->cwnd = iwdev->roce_cwnd; in irdma_modify_qp_roce()
|
H A D | irdma_ctrl.c | 776 FIELD_PREP(IRDMAQPC_CWNDROCE, udp->cwnd)); in irdma_sc_qp_setctx_roce() 1092 FIELD_PREP(IRDMAQPC_CWND, tcp->cwnd)); in irdma_sc_qp_setctx()
|
H A D | irdma_cm.c | 3217 tcp_info->cwnd = 2 * cm_node->tcp_cntxt.mss; in irdma_init_tcp_ctx()
|
/freebsd/sys/dev/bxe/ |
H A D | ecore_hsi.h | 10180 uint32_t cwnd /* Congestion window */; member
|