Home
last modified time | relevance | path

Searched refs:cwnd (Results 1 – 23 of 23) sorted by relevance

/linux-4.4.14/net/ipv4/
Dtcp_bic.c84 static inline void bictcp_update(struct bictcp *ca, u32 cwnd) in bictcp_update() argument
86 if (ca->last_cwnd == cwnd && in bictcp_update()
90 ca->last_cwnd = cwnd; in bictcp_update()
97 if (cwnd <= low_window) { in bictcp_update()
98 ca->cnt = cwnd; in bictcp_update()
103 if (cwnd < ca->last_max_cwnd) { in bictcp_update()
104 __u32 dist = (ca->last_max_cwnd - cwnd) in bictcp_update()
109 ca->cnt = cwnd / max_increment; in bictcp_update()
112 ca->cnt = (cwnd * smooth_part) / BICTCP_B; in bictcp_update()
115 ca->cnt = cwnd / dist; in bictcp_update()
[all …]
Dtcp_cubic.c226 static inline void bictcp_update(struct bictcp *ca, u32 cwnd, u32 acked) in bictcp_update() argument
233 if (ca->last_cwnd == cwnd && in bictcp_update()
244 ca->last_cwnd = cwnd; in bictcp_update()
250 ca->tcp_cwnd = cwnd; /* syn with cubic */ in bictcp_update()
252 if (ca->last_max_cwnd <= cwnd) { in bictcp_update()
254 ca->bic_origin_point = cwnd; in bictcp_update()
260 * (ca->last_max_cwnd - cwnd)); in bictcp_update()
298 if (bic_target > cwnd) { in bictcp_update()
299 ca->cnt = cwnd / (bic_target - cwnd); in bictcp_update()
301 ca->cnt = 100 * cwnd; /* very small increment*/ in bictcp_update()
[all …]
Dtcp_highspeed.c16 unsigned int cwnd; member
129 if (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd) { in hstcp_cong_avoid()
130 while (tp->snd_cwnd > hstcp_aimd_vals[ca->ai].cwnd && in hstcp_cong_avoid()
133 } else if (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) { in hstcp_cong_avoid()
134 while (ca->ai && tp->snd_cwnd <= hstcp_aimd_vals[ca->ai-1].cwnd) in hstcp_cong_avoid()
Dtcp_cong.c379 u32 cwnd = min(tp->snd_cwnd + acked, tp->snd_ssthresh); in tcp_slow_start() local
381 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start()
382 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start()
Dtcp_output.c146 u32 cwnd = tp->snd_cwnd; in tcp_cwnd_restart() local
151 restart_cwnd = min(restart_cwnd, cwnd); in tcp_cwnd_restart()
153 while ((delta -= inet_csk(sk)->icsk_rto) > 0 && cwnd > restart_cwnd) in tcp_cwnd_restart()
154 cwnd >>= 1; in tcp_cwnd_restart()
155 tp->snd_cwnd = max(cwnd, restart_cwnd); in tcp_cwnd_restart()
1588 u32 in_flight, cwnd, halfcwnd; in tcp_cwnd_test() local
1596 cwnd = tp->snd_cwnd; in tcp_cwnd_test()
1597 if (in_flight >= cwnd) in tcp_cwnd_test()
1603 halfcwnd = max(cwnd >> 1, 1U); in tcp_cwnd_test()
1604 return min(halfcwnd, cwnd - in_flight); in tcp_cwnd_test()
Dtcp_input.c826 __u32 cwnd = (dst ? dst_metric(dst, RTAX_INITCWND) : 0); in tcp_init_cwnd() local
828 if (!cwnd) in tcp_init_cwnd()
829 cwnd = TCP_INIT_CWND; in tcp_init_cwnd()
830 return min_t(__u32, cwnd, tp->snd_cwnd_clamp); in tcp_init_cwnd()
/linux-4.4.14/net/sctp/
Dtransport.c385 __u32 cwnd, ssthresh, flight_size, pba, pmtu; in sctp_transport_raise_cwnd() local
387 cwnd = transport->cwnd; in sctp_transport_raise_cwnd()
400 (flight_size < cwnd)) in sctp_transport_raise_cwnd()
407 if (cwnd <= ssthresh) { in sctp_transport_raise_cwnd()
426 cwnd += pmtu; in sctp_transport_raise_cwnd()
428 cwnd += bytes_acked; in sctp_transport_raise_cwnd()
432 __func__, transport, bytes_acked, cwnd, ssthresh, in sctp_transport_raise_cwnd()
450 if (pba >= cwnd) { in sctp_transport_raise_cwnd()
451 cwnd += pmtu; in sctp_transport_raise_cwnd()
452 pba = ((cwnd < pba) ? (pba - cwnd) : 0); in sctp_transport_raise_cwnd()
[all …]
Dprobe.c149 (full || sp->cwnd != lcwnd)) { in jsctp_sf_eat_sack()
150 lcwnd = sp->cwnd; in jsctp_sf_eat_sack()
168 &sp->ipaddr, sp->state, sp->cwnd, sp->ssthresh, in jsctp_sf_eat_sack()
Doutqueue.c458 transport->cwnd, transport->ssthresh, transport->flight_size, in sctp_retransmit_mark()
1632 transport->cwnd, transport->ssthresh, in sctp_mark_missing()
Doutput.c681 flight_size >= transport->cwnd) in sctp_packet_can_append_data()
Dassociola.c680 peer->cwnd = min(4*asoc->pathmtu, max_t(__u32, 2*asoc->pathmtu, 4380)); in sctp_assoc_add_peer()
800 transport->cwnd = asoc->pathmtu; in sctp_assoc_control_transport()
Dsocket.c590 trans->cwnd = min(4*asoc->pathmtu, max_t(__u32, in sctp_send_asconf_add_ip()
4260 status.sstat_primary.spinfo_cwnd = transport->cwnd; in sctp_getsockopt_sctp_status()
4320 pinfo.spinfo_cwnd = transport->cwnd; in sctp_getsockopt_peer_addr_info()
/linux-4.4.14/net/sunrpc/
Dxprt.c395 task->tk_pid, xprt->cong, xprt->cwnd); in __xprt_get_cong()
450 unsigned long cwnd = xprt->cwnd; in xprt_adjust_cwnd() local
452 if (result >= 0 && cwnd <= xprt->cong) { in xprt_adjust_cwnd()
455 cwnd += (RPC_CWNDSCALE * RPC_CWNDSCALE + (cwnd >> 1)) / cwnd; in xprt_adjust_cwnd()
456 if (cwnd > RPC_MAXCWND(xprt)) in xprt_adjust_cwnd()
457 cwnd = RPC_MAXCWND(xprt); in xprt_adjust_cwnd()
460 cwnd >>= 1; in xprt_adjust_cwnd()
461 if (cwnd < RPC_CWNDSCALE) in xprt_adjust_cwnd()
462 cwnd = RPC_CWNDSCALE; in xprt_adjust_cwnd()
465 xprt->cong, xprt->cwnd, cwnd); in xprt_adjust_cwnd()
[all …]
/linux-4.4.14/net/dccp/ccids/
Dccid2.c216 u32 cwnd = hc->tx_cwnd, restart_cwnd, in ccid2_cwnd_restart() local
219 hc->tx_ssthresh = max(hc->tx_ssthresh, (cwnd >> 1) + (cwnd >> 2)); in ccid2_cwnd_restart()
222 restart_cwnd = min(cwnd, iwnd); in ccid2_cwnd_restart()
223 cwnd >>= (now - hc->tx_lsndtime) / hc->tx_rto; in ccid2_cwnd_restart()
224 hc->tx_cwnd = max(cwnd, restart_cwnd); in ccid2_cwnd_restart()
/linux-4.4.14/net/sunrpc/xprtrdma/
Drpc_rdma.c777 unsigned long cwnd; in rpcrdma_reply_handler() local
897 cwnd = xprt->cwnd; in rpcrdma_reply_handler()
898 xprt->cwnd = credits << RPC_CWNDSHIFT; in rpcrdma_reply_handler()
899 if (xprt->cwnd > cwnd) in rpcrdma_reply_handler()
/linux-4.4.14/drivers/infiniband/hw/nes/
Dnes_context.h65 __le32 cwnd; member
Dnes_cm.c2973 nesqp->nesqp_context->cwnd = cpu_to_le32(2 * cm_node->tcp_cntxt.mss); in nes_cm_init_tsa_conn()
2986 nes_debug(NES_DBG_CM, " snd_cwnd = 0x%08X.\n", le32_to_cpu(nesqp->nesqp_context->cwnd)); in nes_cm_init_tsa_conn()
/linux-4.4.14/include/linux/sunrpc/
Dxprt.h31 #define RPCXPRT_CONGESTED(xprt) ((xprt)->cong >= (xprt)->cwnd)
178 unsigned long cwnd; /* congestion window */ member
/linux-4.4.14/include/net/sctp/
Dstructs.h818 __u32 cwnd; /* This is the actual cwnd. */ member
/linux-4.4.14/Documentation/DocBook/
Dnetworking.xml.db217 API-xprt-adjust-cwnd
/linux-4.4.14/Documentation/networking/
Dip-sysctl.txt608 to current rate. (current_rate = cwnd * mss / srtt)
610 to let TCP probe for bigger speeds, assuming cwnd can be
616 to current rate. (current_rate = cwnd * mss / srtt)
711 or device to reduce artificial RTT/cwnd and reduce bufferbloat.
/linux-4.4.14/drivers/net/ethernet/broadcom/
Dcnic_defs.h4101 u32 cwnd; member
Dcnic.c1773 ictx->tstorm_st_context.tcp.cwnd = 0x5A8; in cnic_setup_bnx2x_ctx()