/linux/net/ipv4/ |
A D | tcp_bic.c | 85 if (ca->last_cwnd == cwnd && in bictcp_update() 89 ca->last_cwnd = cwnd; in bictcp_update() 96 if (cwnd <= low_window) { in bictcp_update() 97 ca->cnt = cwnd; in bictcp_update() 102 if (cwnd < ca->last_max_cwnd) { in bictcp_update() 103 __u32 dist = (ca->last_max_cwnd - cwnd) in bictcp_update() 108 ca->cnt = cwnd / max_increment; in bictcp_update() 114 ca->cnt = cwnd / dist; in bictcp_update() 122 ca->cnt = (cwnd * (BICTCP_B-1)) in bictcp_update() 123 / (cwnd - ca->last_max_cwnd); in bictcp_update() [all …]
|
A D | tcp_cubic.c | 221 if (ca->last_cwnd == cwnd && in bictcp_update() 232 ca->last_cwnd = cwnd; in bictcp_update() 238 ca->tcp_cwnd = cwnd; /* syn with cubic */ in bictcp_update() 240 if (ca->last_max_cwnd <= cwnd) { in bictcp_update() 242 ca->bic_origin_point = cwnd; in bictcp_update() 248 * (ca->last_max_cwnd - cwnd)); in bictcp_update() 286 if (bic_target > cwnd) { in bictcp_update() 287 ca->cnt = cwnd / (bic_target - cwnd); in bictcp_update() 304 delta = (cwnd * scale) >> 3; in bictcp_update() 311 delta = ca->tcp_cwnd - cwnd; in bictcp_update() [all …]
|
A D | tcp_bbr.c | 399 cwnd += 3 * bbr_tso_segs_goal(sk); in bbr_quantization_budget() 402 cwnd = (cwnd + 1) & ~1U; in bbr_quantization_budget() 406 cwnd += 2; in bbr_quantization_budget() 408 return cwnd; in bbr_quantization_budget() 485 u32 cwnd = tp->snd_cwnd; in bbr_set_cwnd_to_recover_or_restore() local 492 cwnd = max_t(s32, cwnd - rs->losses, 1); in bbr_set_cwnd_to_recover_or_restore() 502 cwnd = max(cwnd, bbr->prior_cwnd); in bbr_set_cwnd_to_recover_or_restore() 511 *new_cwnd = cwnd; in bbr_set_cwnd_to_recover_or_restore() 541 cwnd = min(cwnd + acked, target_cwnd); in bbr_set_cwnd() 543 cwnd = cwnd + acked; in bbr_set_cwnd() [all …]
|
A D | tcp_highspeed.c | 17 unsigned int cwnd; member 130 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid() 131 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid() 134 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid() 135 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid()
|
A D | tcp_cong.c | 398 u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh); in tcp_slow_start() local 400 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start() 401 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start()
|
A D | tcp_output.c | 145 u32 cwnd = tp->snd_cwnd; in tcp_cwnd_restart() local 150 restart_cwnd = min(restart_cwnd, cwnd); in tcp_cwnd_restart() 152 while ((delta -= inet_csk(sk)->icsk_rto) > 0 && cwnd > restart_cwnd) in tcp_cwnd_restart() 153 cwnd >>= 1; in tcp_cwnd_restart() 154 tp->snd_cwnd = max(cwnd, restart_cwnd); in tcp_cwnd_restart() 2029 u32 in_flight, cwnd, halfcwnd; in tcp_cwnd_test() local 2037 cwnd = tp->snd_cwnd; in tcp_cwnd_test() 2038 if (in_flight >= cwnd) in tcp_cwnd_test() 2044 halfcwnd = max(cwnd >> 1, 1U); in tcp_cwnd_test() 2045 return min(halfcwnd, cwnd - in_flight); in tcp_cwnd_test()
|
/linux/net/sctp/ |
A D | transport.c | 564 cwnd = transport->cwnd; in sctp_transport_raise_cwnd() 576 if (cwnd <= ssthresh) { in sctp_transport_raise_cwnd() 603 cwnd += pmtu; in sctp_transport_raise_cwnd() 605 cwnd += bytes_acked; in sctp_transport_raise_cwnd() 635 if (pba > cwnd && flight_size < cwnd) in sctp_transport_raise_cwnd() 636 pba = cwnd; in sctp_transport_raise_cwnd() 637 if (pba >= cwnd && flight_size >= cwnd) { in sctp_transport_raise_cwnd() 638 pba = pba - cwnd; in sctp_transport_raise_cwnd() 639 cwnd += pmtu; in sctp_transport_raise_cwnd() 649 transport->cwnd = cwnd; in sctp_transport_raise_cwnd() [all …]
|
A D | output.c | 717 flight_size >= transport->cwnd) in sctp_packet_can_append_data() 847 psize + chunk_len > (packet->transport->cwnd >> 1)) in sctp_packet_will_fit()
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | bpf_cubic.c | 274 if (ca->last_cwnd == cwnd && in bictcp_update() 285 ca->last_cwnd = cwnd; in bictcp_update() 291 ca->tcp_cwnd = cwnd; /* syn with cubic */ in bictcp_update() 293 if (ca->last_max_cwnd <= cwnd) { in bictcp_update() 295 ca->bic_origin_point = cwnd; in bictcp_update() 301 * (ca->last_max_cwnd - cwnd)); in bictcp_update() 339 if (bic_target > cwnd) { in bictcp_update() 340 ca->cnt = cwnd / (bic_target - cwnd); in bictcp_update() 359 delta = (cwnd * scale) >> 3; in bictcp_update() 367 delta = ca->tcp_cwnd - cwnd; in bictcp_update() [all …]
|
/linux/net/batman-adv/ |
A D | tp_meter.c | 148 if (tp_vars->cwnd <= tp_vars->ss_threshold) { in batadv_tp_update_cwnd() 150 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd() 163 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, mss, mss); in batadv_tp_update_cwnd() 417 tp_vars->cwnd, tp_vars->ss_threshold); in batadv_tp_sender_end() 508 tp_vars->ss_threshold = tp_vars->cwnd >> 1; in batadv_tp_sender_timeout() 517 tp_vars->cwnd = BATADV_TP_PLEN * 3; in batadv_tp_sender_timeout() 636 u32 rtt, recv_ack, cwnd; in batadv_tp_recv_ack() local 702 tp_vars->cwnd, tp_vars->ss_threshold, in batadv_tp_recv_ack() 730 tp_vars->cwnd = batadv_tp_cwnd(tp_vars->cwnd, in batadv_tp_recv_ack() 740 tp_vars->cwnd = cwnd; in batadv_tp_recv_ack() [all …]
|
/linux/samples/bpf/ |
A D | hbm_kern.h | 74 int cwnd; member 94 pkti->cwnd = tp->snd_cwnd; in get_tcp_info() 102 pkti->cwnd = 0; in get_tcp_info() 114 pkti->cwnd = 0; in hbm_get_pkt_info() 187 if (pkti->cwnd) { in hbm_update_stats() 189 pkti->cwnd); in hbm_update_stats()
|
/linux/include/trace/events/ |
A D | sctp.h | 23 __field(__u32, cwnd) 35 __entry->cwnd = sp->cwnd; 45 __entry->ipaddr, __entry->state, __entry->cwnd,
|
A D | sunrpc.h | 1186 __field(unsigned long, cwnd) 1202 __entry->cwnd = xprt->cwnd; 1210 __entry->snd_task_id, __entry->cong, __entry->cwnd,
|
/linux/net/rxrpc/ |
A D | input.c | 55 cwnd = 1; in rxrpc_congestion_management() 56 if (cwnd >= call->cong_ssthresh && in rxrpc_congestion_management() 70 summary->cwnd = call->cong_cwnd; in rxrpc_congestion_management() 80 cwnd += 1; in rxrpc_congestion_management() 102 if (cumulative_acks >= cwnd) in rxrpc_congestion_management() 103 cwnd++; in rxrpc_congestion_management() 126 cwnd = call->cong_ssthresh + 3; in rxrpc_congestion_management() 135 cwnd += 1; in rxrpc_congestion_management() 144 cwnd = call->cong_ssthresh; in rxrpc_congestion_management() 160 if (cwnd < call->cong_ssthresh) in rxrpc_congestion_management() [all …]
|
/linux/net/sunrpc/ |
A D | xprt.c | 564 unsigned long cwnd = xprt->cwnd; in xprt_adjust_cwnd() local 566 if (result >= 0 && cwnd <= xprt->cong) { in xprt_adjust_cwnd() 569 cwnd += (RPC_CWNDSCALE * RPC_CWNDSCALE + (cwnd >> 1)) / cwnd; in xprt_adjust_cwnd() 570 if (cwnd > RPC_MAXCWND(xprt)) in xprt_adjust_cwnd() 571 cwnd = RPC_MAXCWND(xprt); in xprt_adjust_cwnd() 574 cwnd >>= 1; in xprt_adjust_cwnd() 575 if (cwnd < RPC_CWNDSCALE) in xprt_adjust_cwnd() 576 cwnd = RPC_CWNDSCALE; in xprt_adjust_cwnd() 579 xprt->cong, xprt->cwnd, cwnd); in xprt_adjust_cwnd() 580 xprt->cwnd = cwnd; in xprt_adjust_cwnd() [all …]
|
/linux/include/linux/qed/ |
A D | tcp_common.h | 92 __le32 cwnd; member 158 __le32 cwnd; member 238 __le32 cwnd; member
|
A D | qed_nvmetcp_if.h | 51 u32 cwnd; member
|
A D | qed_iscsi_if.h | 75 u32 cwnd; member
|
/linux/net/dccp/ccids/ |
A D | ccid2.c | 220 u32 cwnd = hc->tx_cwnd, restart_cwnd, in ccid2_cwnd_restart() local 224 hc->tx_ssthresh = max(hc->tx_ssthresh, (cwnd >> 1) + (cwnd >> 2)); in ccid2_cwnd_restart() 227 restart_cwnd = min(cwnd, iwnd); in ccid2_cwnd_restart() 229 while ((delta -= hc->tx_rto) >= 0 && cwnd > restart_cwnd) in ccid2_cwnd_restart() 230 cwnd >>= 1; in ccid2_cwnd_restart() 231 hc->tx_cwnd = max(cwnd, restart_cwnd); in ccid2_cwnd_restart()
|
/linux/net/sunrpc/xprtrdma/ |
A D | svc_rdma_backchannel.c | 50 xprt->cwnd = credits << RPC_CWNDSHIFT; in svc_rdma_handle_bc_reply() 209 xprt->cwnd = RPC_CWNDSHIFT; in xprt_rdma_bc_close()
|
/linux/drivers/net/ethernet/qlogic/qed/ |
A D | qed_nvmetcp.h | 73 u32 cwnd; member
|
A D | qed_iscsi.c | 80 u32 cwnd; member 364 p_tcp->cwnd = cpu_to_le32(p_conn->cwnd); in qed_sp_iscsi_conn_offload() 439 p_tcp2->cwnd = cpu_to_le32(p_conn->cwnd); in qed_sp_iscsi_conn_offload() 1244 con->cwnd = conn_info->cwnd; in qed_iscsi_offload_conn()
|
A D | qed_nvmetcp.c | 347 p_tcp->cwnd = cpu_to_le32(p_conn->cwnd); in qed_sp_nvmetcp_conn_offload() 715 con->cwnd = conn_info->cwnd; in qed_nvmetcp_offload_conn()
|
/linux/include/linux/sunrpc/ |
A D | xprt.h | 31 #define RPCXPRT_CONGESTED(xprt) ((xprt)->cong >= (xprt)->cwnd) 198 unsigned long cwnd; /* congestion window */ member
|
/linux/drivers/infiniband/hw/irdma/ |
A D | type.h | 845 u32 cwnd; member 954 u32 cwnd; member
|