/linux-6.1.9/net/rxrpc/ |
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-6.1.9/net/ipv4/ |
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()
|
D | tcp_recovery.c | 34 return tp->rack.rtt_us + reo_wnd - in tcp_rack_skb_timeout() 121 u32 rtt_us; in tcp_rack_advance() local 123 rtt_us = tcp_stamp_us_delta(tp->tcp_mstamp, xmit_time); in tcp_rack_advance() 124 if (rtt_us < tcp_min_rtt(tp) && (sacked & TCPCB_RETRANS)) { in tcp_rack_advance() 138 tp->rack.rtt_us = rtt_us; in tcp_rack_advance()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
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()
|
D | tcp_cubic.c | 455 if (sample->rtt_us < 0) in cubictcp_acked() 462 delay = sample->rtt_us; in cubictcp_acked()
|
D | tcp_input.c | 626 u32 new_sample = tp->rcv_rtt_est.rtt_us; in tcp_rcv_rtt_update() 653 tp->rcv_rtt_est.rtt_us = new_sample; in tcp_rcv_rtt_update() 711 if (time < (tp->rcv_rtt_est.rtt_us >> 3) || tp->rcv_rtt_est.rtt_us == 0) in tcp_rcv_space_adjust() 3071 static void tcp_update_rtt_min(struct sock *sk, u32 rtt_us, const int flag) in tcp_update_rtt_min() argument 3076 if ((flag & FLAG_ACK_MAYBE_DELAYED) && rtt_us > tcp_min_rtt(tp)) { in tcp_update_rtt_min() 3084 rtt_us ? : jiffies_to_usecs(1)); in tcp_update_rtt_min() 3118 rs->rtt_us = ca_rtt_us; /* RTT of last (S)ACKed packet (or -1) */ in tcp_ack_update_rtt() 3139 long rtt_us = -1L; in tcp_synack_rtt_meas() local 3142 rtt_us = tcp_stamp_us_delta(tcp_clock_us(), tcp_rsk(req)->snt_synack); in tcp_synack_rtt_meas() 3144 tcp_ack_update_rtt(sk, FLAG_SYN_ACKED, rtt_us, -1L, rtt_us, &rs); in tcp_synack_rtt_meas() [all …]
|
D | tcp.c | 3912 info->tcpi_rcv_rtt = tp->rcv_rtt_est.rtt_us >> 3; in tcp_get_info()
|
/linux-6.1.9/fs/afs/ |
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()
|
D | fs_probe.c | 106 unsigned int rtt_us = 0, cap0; in afs_fileserver_probe_result() local 170 rxrpc_kernel_get_srtt(call->net->socket, call->rxcall, &rtt_us); in afs_fileserver_probe_result() 171 if (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-6.1.9/tools/testing/selftests/bpf/ |
D | bpf_tcp_helpers.h | 136 __s32 rtt_us; member 147 long rtt_us; /* RTT of last (S)ACKed packet (or -1) */ member
|
/linux-6.1.9/include/linux/ |
D | tcp.h | 245 u32 rtt_us; /* Associated RTT */ member 409 u32 rtt_us; member
|
/linux-6.1.9/net/mptcp/ |
D | protocol.c | 1905 u64 rtt_us, mstamp; in mptcp_rcv_space_adjust() local 1917 rtt_us = msk->rcvq_space.rtt_us; in mptcp_rcv_space_adjust() 1918 if (rtt_us && time < (rtt_us >> 3)) in mptcp_rcv_space_adjust() 1921 rtt_us = 0; in mptcp_rcv_space_adjust() 1929 sf_rtt_us = READ_ONCE(tp->rcv_rtt_est.rtt_us); in mptcp_rcv_space_adjust() 1932 rtt_us = max(sf_rtt_us, rtt_us); in mptcp_rcv_space_adjust() 1936 msk->rcvq_space.rtt_us = rtt_us; in mptcp_rcv_space_adjust() 1937 if (time < (rtt_us >> 3) || rtt_us == 0) in mptcp_rcv_space_adjust() 3115 msk->rcvq_space.rtt_us = 0; in mptcp_rcv_space_init()
|
D | protocol.h | 306 u64 rtt_us; /* last maximum rtt of subflows */ member
|
/linux-6.1.9/tools/testing/selftests/bpf/progs/ |
D | bpf_cubic.c | 501 if (sample->rtt_us < 0) in BPF_STRUCT_OPS() 508 delay = sample->rtt_us; in BPF_STRUCT_OPS()
|
/linux-6.1.9/include/net/ |
D | tcp.h | 1035 s32 rtt_us; member 1056 long rtt_us; /* RTT of last (S)ACKed packet (or -1) */ member
|