Home
last modified time | relevance | path

Searched refs:rtt (Results 1 – 20 of 20) sorted by relevance

/net/ipv4/
Dtcp_westwood.c39 u32 rtt; member
71 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; in tcp_westwood_init()
103 static void tcp_westwood_pkts_acked(struct sock *sk, u32 cnt, s32 rtt) in tcp_westwood_pkts_acked() argument
107 if (rtt > 0) in tcp_westwood_pkts_acked()
108 w->rtt = usecs_to_jiffies(rtt); in tcp_westwood_pkts_acked()
139 if (w->rtt && delta > max_t(u32, w->rtt, TCP_WESTWOOD_RTT_MIN)) { in westwood_update_window()
150 w->rtt_min = w->rtt; in update_rtt_min()
153 w->rtt_min = min(w->rtt, w->rtt_min); in update_rtt_min()
266 .tcpv_rtt = jiffies_to_usecs(ca->rtt), in tcp_westwood_info()
Dtcp_illinois.c86 static void tcp_illinois_acked(struct sock *sk, u32 pkts_acked, s32 rtt) in tcp_illinois_acked() argument
93 if (rtt < 0) in tcp_illinois_acked()
97 if (rtt > RTT_MAX) in tcp_illinois_acked()
98 rtt = RTT_MAX; in tcp_illinois_acked()
101 if (ca->base_rtt > rtt) in tcp_illinois_acked()
102 ca->base_rtt = rtt; in tcp_illinois_acked()
105 if (ca->max_rtt < rtt) in tcp_illinois_acked()
106 ca->max_rtt = rtt; in tcp_illinois_acked()
109 ca->sum_rtt += rtt; in tcp_illinois_acked()
Dtcp_yeah.c134 u32 rtt, queue; in tcp_yeah_cong_avoid() local
148 rtt = yeah->vegas.minRTT; in tcp_yeah_cong_avoid()
154 bw *= rtt - yeah->vegas.baseRTT; in tcp_yeah_cong_avoid()
155 do_div(bw, rtt); in tcp_yeah_cong_avoid()
159 rtt - yeah->vegas.baseRTT > (yeah->vegas.baseRTT / TCP_YEAH_PHY)) { in tcp_yeah_cong_avoid()
Dtcp_vegas.c199 u32 rtt, diff; in tcp_vegas_cong_avoid() local
213 rtt = vegas->minRTT; in tcp_vegas_cong_avoid()
221 target_cwnd = tp->snd_cwnd * vegas->baseRTT / rtt; in tcp_vegas_cong_avoid()
227 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT; in tcp_vegas_cong_avoid()
Dtcp_veno.c139 u32 rtt; in tcp_veno_cong_avoid() local
145 rtt = veno->minrtt; in tcp_veno_cong_avoid()
149 do_div(target_cwnd, rtt); in tcp_veno_cong_avoid()
Dtcp_htcp.c101 static void measure_achieved_throughput(struct sock *sk, u32 pkts_acked, s32 rtt) in measure_achieved_throughput() argument
111 if (rtt > 0) in measure_achieved_throughput()
112 measure_rtt(sk, usecs_to_jiffies(rtt)); in measure_achieved_throughput()
Dtcp_metrics.c326 unsigned long rtt; in tcp_update_metrics() local
352 rtt = tcp_metric_get_jiffies(tm, TCP_METRIC_RTT); in tcp_update_metrics()
353 m = rtt - tp->srtt; in tcp_update_metrics()
361 rtt = tp->srtt; in tcp_update_metrics()
363 rtt -= (m >> 3); in tcp_update_metrics()
364 tcp_metric_set_msecs(tm, TCP_METRIC_RTT, rtt); in tcp_update_metrics()
Dtcp_bic.c203 static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) in bictcp_acked() argument
Dtcp_output.c1917 u32 rtt = tp->srtt >> 3; in tcp_schedule_loss_probe() local
1939 if (sysctl_tcp_early_retrans < 3 || !rtt || !tp->packets_out || in tcp_schedule_loss_probe()
1950 timeout = rtt << 1; in tcp_schedule_loss_probe()
1953 (rtt + (rtt >> 1) + TCP_DELACK_MAX)); in tcp_schedule_loss_probe()
2992 int rtt = max(tp->srtt >> 3, TCP_DELACK_MIN); in tcp_send_delayed_ack() local
2994 if (rtt < max_ato) in tcp_send_delayed_ack()
2995 max_ato = rtt; in tcp_send_delayed_ack()
Dtcp_lp.c220 static void tcp_lp_rtt_sample(struct sock *sk, u32 rtt) in tcp_lp_rtt_sample() argument
Dtcp_input.c463 u32 new_sample = tp->rcv_rtt_est.rtt; in tcp_rcv_rtt_update()
493 if (tp->rcv_rtt_est.rtt != new_sample) in tcp_rcv_rtt_update()
494 tp->rcv_rtt_est.rtt = new_sample; in tcp_rcv_rtt_update()
534 if (time < (tp->rcv_rtt_est.rtt >> 3) || tp->rcv_rtt_est.rtt == 0) in tcp_rcv_space_adjust()
Dtcp.c2740 info->tcpi_rcv_rtt = jiffies_to_usecs(tp->rcv_rtt_est.rtt)>>3; in tcp_get_info()
/net/ax25/
Dax25_subr.c242 ax25->t1 = t * ax25->rtt; in ax25_calculate_t1()
254 ax25->rtt = (9 * ax25->rtt + ax25->t1 - ax25_display_timer(&ax25->t1timer)) / 10; in ax25_calculate_rtt()
256 if (ax25->rtt < AX25_T1CLAMPLO) in ax25_calculate_rtt()
257 ax25->rtt = AX25_T1CLAMPLO; in ax25_calculate_rtt()
259 if (ax25->rtt > AX25_T1CLAMPHI) in ax25_calculate_rtt()
260 ax25->rtt = AX25_T1CLAMPHI; in ax25_calculate_rtt()
Daf_ax25.c401 ax25->rtt = (ax25_ctl.arg * HZ) / 2; in ax25_ctl_ioctl()
452 ax25->rtt = msecs_to_jiffies(ax25_dev->values[AX25_VALUES_T1]) / 2; in ax25_fillin_cb_from_dev()
486 ax25->rtt = msecs_to_jiffies(AX25_DEF_T1) / 2; in ax25_fillin_cb()
578 ax25->rtt = (opt * HZ) >> 1; in ax25_setsockopt()
920 ax25->rtt = oax25->rtt; in ax25_make_new()
1904 ax25->rtt / HZ, in ax25_info_show()
/net/sctp/
Dtransport.c318 void sctp_transport_update_rto(struct sctp_transport *tp, __u32 rtt) in sctp_transport_update_rto() argument
340 + (((__u32)abs64((__s64)tp->srtt - (__s64)rtt)) >> net->sctp.rto_beta); in sctp_transport_update_rto()
342 + (rtt >> net->sctp.rto_alpha); in sctp_transport_update_rto()
347 tp->srtt = rtt; in sctp_transport_update_rto()
348 tp->rttvar = rtt >> 1; in sctp_transport_update_rto()
373 tp->rtt = rtt; in sctp_transport_update_rto()
382 tp, rtt, tp->srtt, tp->rttvar, tp->rto); in sctp_transport_update_rto()
538 transport->rtt)) { in sctp_transport_lower_cwnd()
631 t->rtt = 0; in sctp_transport_reset()
Doutqueue.c1344 __u32 rtt; in sctp_check_transmitted() local
1411 rtt = jiffies - tchunk->sent_at; in sctp_check_transmitted()
1413 rtt); in sctp_check_transmitted()
Dsocket.c615 trans->rtt = trans->srtt = trans->rttvar = 0; in sctp_send_asconf_add_ip()
/net/decnet/
Ddn_nsp_out.c165 static void dn_nsp_rtt(struct sock *sk, long rtt) in dn_nsp_rtt() argument
177 if (rtt < 0) in dn_nsp_rtt()
178 rtt = -rtt; in dn_nsp_rtt()
182 delta = ((rtt << 3) - srtt); in dn_nsp_rtt()
/net/sunrpc/
Dxprt.c547 struct rpc_rtt *rtt = clnt->cl_rtt; in xprt_set_retrans_timeout_rtt() local
551 task->tk_timeout = rpc_calc_rto(rtt, timer); in xprt_set_retrans_timeout_rtt()
552 task->tk_timeout <<= rpc_ntimeo(rtt, timer) + req->rq_retries; in xprt_set_retrans_timeout_rtt()
788 struct rpc_rtt *rtt = task->tk_client->cl_rtt; in xprt_update_rtt() local
794 rpc_update_rtt(rtt, timer, m); in xprt_update_rtt()
795 rpc_set_timeo(rtt, timer, req->rq_ntrans - 1); in xprt_update_rtt()
/net/rxrpc/
Dar-internal.h189 suseconds_t rtt; /* current RTT estimate (in uS) */ member