/linux-4.1.27/net/ipv4/ |
D | tcp_bic.c | 84 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 …]
|
D | tcp_cubic.c | 226 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 …]
|
D | tcp_highspeed.c | 16 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()
|
D | tcp_cong.c | 368 u32 cwnd = tp->snd_cwnd + acked; in tcp_slow_start() local 370 if (cwnd > tp->snd_ssthresh) in tcp_slow_start() 371 cwnd = tp->snd_ssthresh + 1; in tcp_slow_start() 372 acked -= cwnd - tp->snd_cwnd; in tcp_slow_start() 373 tp->snd_cwnd = min(cwnd, tp->snd_cwnd_clamp); in tcp_slow_start()
|
D | tcp_output.c | 146 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() 1599 u32 in_flight, cwnd, halfcwnd; in tcp_cwnd_test() local 1607 cwnd = tp->snd_cwnd; in tcp_cwnd_test() 1608 if (in_flight >= cwnd) in tcp_cwnd_test() 1614 halfcwnd = max(cwnd >> 1, 1U); in tcp_cwnd_test() 1615 return min(halfcwnd, cwnd - in_flight); in tcp_cwnd_test()
|
D | tcp_input.c | 806 __u32 cwnd = (dst ? dst_metric(dst, RTAX_INITCWND) : 0); in tcp_init_cwnd() local 808 if (!cwnd) in tcp_init_cwnd() 809 cwnd = TCP_INIT_CWND; in tcp_init_cwnd() 810 return min_t(__u32, cwnd, tp->snd_cwnd_clamp); in tcp_init_cwnd()
|
/linux-4.1.27/net/sctp/ |
D | transport.c | 385 __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 …]
|
D | probe.c | 149 (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()
|
D | outqueue.c | 457 transport->cwnd, transport->ssthresh, transport->flight_size, in sctp_retransmit_mark() 1630 transport->cwnd, transport->ssthresh, in sctp_mark_missing()
|
D | output.c | 681 flight_size >= transport->cwnd) in sctp_packet_can_append_data()
|
D | associola.c | 680 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()
|
D | socket.c | 590 trans->cwnd = min(4*asoc->pathmtu, max_t(__u32, in sctp_send_asconf_add_ip() 4273 status.sstat_primary.spinfo_cwnd = transport->cwnd; in sctp_getsockopt_sctp_status() 4333 pinfo.spinfo_cwnd = transport->cwnd; in sctp_getsockopt_peer_addr_info()
|
/linux-4.1.27/net/sunrpc/ |
D | xprt.c | 392 task->tk_pid, xprt->cong, xprt->cwnd); in __xprt_get_cong() 447 unsigned long cwnd = xprt->cwnd; in xprt_adjust_cwnd() local 449 if (result >= 0 && cwnd <= xprt->cong) { in xprt_adjust_cwnd() 452 cwnd += (RPC_CWNDSCALE * RPC_CWNDSCALE + (cwnd >> 1)) / cwnd; in xprt_adjust_cwnd() 453 if (cwnd > RPC_MAXCWND(xprt)) in xprt_adjust_cwnd() 454 cwnd = RPC_MAXCWND(xprt); in xprt_adjust_cwnd() 457 cwnd >>= 1; in xprt_adjust_cwnd() 458 if (cwnd < RPC_CWNDSCALE) in xprt_adjust_cwnd() 459 cwnd = RPC_CWNDSCALE; in xprt_adjust_cwnd() 462 xprt->cong, xprt->cwnd, cwnd); in xprt_adjust_cwnd() [all …]
|
/linux-4.1.27/net/dccp/ccids/ |
D | ccid2.c | 216 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.1.27/net/sunrpc/xprtrdma/ |
D | rpc_rdma.c | 739 unsigned long cwnd; in rpcrdma_reply_handler() local 880 cwnd = xprt->cwnd; in rpcrdma_reply_handler() 881 xprt->cwnd = credits << RPC_CWNDSHIFT; in rpcrdma_reply_handler() 882 if (xprt->cwnd > cwnd) in rpcrdma_reply_handler()
|
/linux-4.1.27/drivers/infiniband/hw/nes/ |
D | nes_context.h | 65 __le32 cwnd; member
|
D | nes_cm.c | 2967 nesqp->nesqp_context->cwnd = cpu_to_le32(2 * cm_node->tcp_cntxt.mss); in nes_cm_init_tsa_conn() 2980 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.1.27/include/linux/sunrpc/ |
D | xprt.h | 31 #define RPCXPRT_CONGESTED(xprt) ((xprt)->cong >= (xprt)->cwnd) 166 unsigned long cwnd; /* congestion window */ member
|
/linux-4.1.27/include/net/sctp/ |
D | structs.h | 818 __u32 cwnd; /* This is the actual cwnd. */ member
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
D | cnic_defs.h | 4101 u32 cwnd; member
|
D | cnic.c | 1762 ictx->tstorm_st_context.tcp.cwnd = 0x5A8; in cnic_setup_bnx2x_ctx()
|
/linux-4.1.27/Documentation/networking/ |
D | ip-sysctl.txt | 670 or device to reduce artificial RTT/cwnd and reduce bufferbloat.
|