/linux/net/rxrpc/ |
A D | rtt.c | 130 static void rxrpc_ack_update_rtt(struct rxrpc_peer *peer, long rtt_us) in rxrpc_ack_update_rtt() argument 132 if (rtt_us < 0) in rxrpc_ack_update_rtt() 136 rxrpc_rtt_estimator(peer, rtt_us); in rxrpc_ack_update_rtt() 153 s64 rtt_us; in rxrpc_peer_add_rtt() local 155 rtt_us = ktime_to_us(ktime_sub(resp_time, send_time)); in rxrpc_peer_add_rtt() 156 if (rtt_us < 0) in rxrpc_peer_add_rtt() 160 rxrpc_ack_update_rtt(peer, rtt_us); in rxrpc_peer_add_rtt()
|
/linux/net/ipv4/ |
A D | tcp_illinois.c | 89 s32 rtt_us = sample->rtt_us; in tcp_illinois_acked() local 94 if (rtt_us < 0) in tcp_illinois_acked() 98 if (rtt_us > RTT_MAX) in tcp_illinois_acked() 99 rtt_us = RTT_MAX; in tcp_illinois_acked() 102 if (ca->base_rtt > rtt_us) in tcp_illinois_acked() 103 ca->base_rtt = rtt_us; in tcp_illinois_acked() 106 if (ca->max_rtt < rtt_us) in tcp_illinois_acked() 107 ca->max_rtt = rtt_us; in tcp_illinois_acked() 110 ca->sum_rtt += rtt_us; in tcp_illinois_acked()
|
A D | tcp_recovery.c | 38 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout() 125 u32 rtt_us; in tcp_rack_advance() local 127 rtt_us = tcp_stamp_us_delta(tp->tcp_mstamp, xmit_time); in tcp_rack_advance() 128 if (rtt_us < tcp_min_rtt(tp) && (sacked & TCPCB_RETRANS)) { in tcp_rack_advance() 142 tp->rack.rtt_us = rtt_us; in tcp_rack_advance()
|
A D | tcp_nv.c | 251 if (sample->rtt_us < 0) in tcpnv_acked() 274 avg_rtt = (((u64)sample->rtt_us) * nv_rtt_factor + in tcpnv_acked() 278 avg_rtt = sample->rtt_us; in tcpnv_acked() 283 avg_rtt = sample->rtt_us; in tcpnv_acked()
|
A D | tcp_cdg.c | 304 if (sample->rtt_us <= 0) in tcp_cdg_acked() 316 ca->rtt.min = min(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked() 324 ca->rtt.min = min_not_zero(ca->rtt.min, sample->rtt_us); in tcp_cdg_acked() 325 ca->rtt.max = max(ca->rtt.max, sample->rtt_us); in tcp_cdg_acked()
|
A D | tcp_veno.c | 79 if (sample->rtt_us < 0) in tcp_veno_pkts_acked() 83 vrtt = sample->rtt_us + 1; in tcp_veno_pkts_acked()
|
A D | tcp_bbr.c | 271 u32 rtt_us; in bbr_init_pacing_rate_from_rtt() local 274 rtt_us = max(tp->srtt_us >> 3, 1U); in bbr_init_pacing_rate_from_rtt() 277 rtt_us = USEC_PER_MSEC; /* use nominal default RTT */ in bbr_init_pacing_rate_from_rtt() 280 do_div(bw, rtt_us); in bbr_init_pacing_rate_from_rtt() 949 if (rs->rtt_us >= 0 && in bbr_update_min_rtt() 950 (rs->rtt_us < bbr->min_rtt_us || in bbr_update_min_rtt() 952 bbr->min_rtt_us = rs->rtt_us; in bbr_update_min_rtt()
|
A D | tcp_vegas.c | 116 if (sample->rtt_us < 0) in tcp_vegas_pkts_acked() 120 vrtt = sample->rtt_us + 1; in tcp_vegas_pkts_acked()
|
A D | tcp_lp.c | 278 if (sample->rtt_us > 0) in tcp_lp_pkts_acked() 279 tcp_lp_rtt_sample(sk, sample->rtt_us); in tcp_lp_pkts_acked()
|
A D | tcp_westwood.c | 108 if (sample->rtt_us > 0) in tcp_westwood_pkts_acked() 109 w->rtt = usecs_to_jiffies(sample->rtt_us); in tcp_westwood_pkts_acked()
|
A D | tcp_htcp.c | 112 if (sample->rtt_us > 0) in measure_achieved_throughput() 113 measure_rtt(sk, usecs_to_jiffies(sample->rtt_us)); in measure_achieved_throughput()
|
A D | tcp_cubic.c | 455 if (sample->rtt_us < 0) in cubictcp_acked() 462 delay = sample->rtt_us; in cubictcp_acked()
|
A D | tcp_input.c | 625 u32 new_sample = tp->rcv_rtt_est.rtt_us; in tcp_rcv_rtt_update() 652 tp->rcv_rtt_est.rtt_us = new_sample; in tcp_rcv_rtt_update() 710 if (time < (tp->rcv_rtt_est.rtt_us >> 3) || tp->rcv_rtt_est.rtt_us == 0) in tcp_rcv_space_adjust() 3055 if ((flag & FLAG_ACK_MAYBE_DELAYED) && rtt_us > tcp_min_rtt(tp)) { in tcp_update_rtt_min() 3063 rtt_us ? : jiffies_to_usecs(1)); in tcp_update_rtt_min() 3097 rs->rtt_us = ca_rtt_us; /* RTT of last (S)ACKed packet (or -1) */ in tcp_ack_update_rtt() 3118 long rtt_us = -1L; in tcp_synack_rtt_meas() local 3121 rtt_us = tcp_stamp_us_delta(tcp_clock_us(), tcp_rsk(req)->snt_synack); in tcp_synack_rtt_meas() 3123 tcp_ack_update_rtt(sk, FLAG_SYN_ACKED, rtt_us, -1L, rtt_us, &rs); in tcp_synack_rtt_meas() 3390 .rtt_us = sack->rate->rtt_us }; in tcp_clean_rtx_queue() [all …]
|
A D | tcp.c | 3765 info->tcpi_rcv_rtt = tp->rcv_rtt_est.rtt_us >> 3; in tcp_get_info()
|
/linux/fs/afs/ |
A D | vl_probe.c | 52 unsigned int rtt_us = 0; in afs_vlserver_probe_result() local 118 if (rxrpc_kernel_get_srtt(call->net->socket, call->rxcall, &rtt_us) && in afs_vlserver_probe_result() 119 rtt_us < server->probe.rtt) { in afs_vlserver_probe_result() 120 server->probe.rtt = rtt_us; in afs_vlserver_probe_result() 121 server->rtt = rtt_us; in afs_vlserver_probe_result() 134 server_index, index, &alist->addrs[index].transport, rtt_us, ret); in afs_vlserver_probe_result()
|
A D | fs_probe.c | 106 unsigned int rtt_us = 0, cap0; in afs_fileserver_probe_result() local 170 if (rxrpc_kernel_get_srtt(call->net->socket, call->rxcall, &rtt_us) && in afs_fileserver_probe_result() 171 rtt_us < server->probe.rtt) { in afs_fileserver_probe_result() 172 server->probe.rtt = rtt_us; in afs_fileserver_probe_result() 173 server->rtt = rtt_us; in afs_fileserver_probe_result() 186 rtt_us, ret); in afs_fileserver_probe_result()
|
/linux/tools/testing/selftests/bpf/ |
A D | bpf_tcp_helpers.h | 131 __s32 rtt_us; member 142 long rtt_us; /* RTT of last (S)ACKed packet (or -1) */ member
|
/linux/net/mptcp/ |
A D | protocol.c | 1816 u64 rtt_us, mstamp; in mptcp_rcv_space_adjust() local 1828 rtt_us = msk->rcvq_space.rtt_us; in mptcp_rcv_space_adjust() 1829 if (rtt_us && time < (rtt_us >> 3)) in mptcp_rcv_space_adjust() 1832 rtt_us = 0; in mptcp_rcv_space_adjust() 1840 sf_rtt_us = READ_ONCE(tp->rcv_rtt_est.rtt_us); in mptcp_rcv_space_adjust() 1843 rtt_us = max(sf_rtt_us, rtt_us); in mptcp_rcv_space_adjust() 1847 msk->rcvq_space.rtt_us = rtt_us; in mptcp_rcv_space_adjust() 1848 if (time < (rtt_us >> 3) || rtt_us == 0) in mptcp_rcv_space_adjust() 2838 msk->rcvq_space.rtt_us = 0; in mptcp_rcv_space_init()
|
A D | protocol.h | 268 u64 rtt_us; /* last maximum rtt of subflows */ member
|
/linux/include/linux/ |
A D | tcp.h | 215 u32 rtt_us; /* Associated RTT */ member 373 u32 rtt_us; member
|
/linux/tools/testing/selftests/bpf/progs/ |
A D | bpf_cubic.c | 501 if (sample->rtt_us < 0) in BPF_STRUCT_OPS() 508 delay = sample->rtt_us; in BPF_STRUCT_OPS()
|
/linux/include/net/ |
A D | tcp.h | 1020 s32 rtt_us; member 1041 long rtt_us; /* RTT of last (S)ACKed packet (or -1) */ member
|