Home
last modified time | relevance | path

Searched refs:rtt_us (Results 1 – 22 of 22) sorted by relevance

/linux-6.12.1/net/rxrpc/
Drtt.c130 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.12.1/net/ipv4/
Dtcp_illinois.c89 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()
Dtcp_recovery.c34 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()
Dtcp_nv.c251 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()
Dtcp_cdg.c304 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()
Dtcp_veno.c79 if (sample->rtt_us < 0) in tcp_veno_pkts_acked()
83 vrtt = sample->rtt_us + 1; in tcp_veno_pkts_acked()
Dtcp_vegas.c116 if (sample->rtt_us < 0) in tcp_vegas_pkts_acked()
120 vrtt = sample->rtt_us + 1; in tcp_vegas_pkts_acked()
Dtcp_bbr.c271 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()
950 if (rs->rtt_us >= 0 && in bbr_update_min_rtt()
951 (rs->rtt_us < bbr->min_rtt_us || in bbr_update_min_rtt()
953 bbr->min_rtt_us = rs->rtt_us; in bbr_update_min_rtt()
Dtcp_lp.c278 if (sample->rtt_us > 0) in tcp_lp_pkts_acked()
279 tcp_lp_rtt_sample(sk, sample->rtt_us); in tcp_lp_pkts_acked()
Dtcp_westwood.c108 if (sample->rtt_us > 0) in tcp_westwood_pkts_acked()
109 w->rtt = usecs_to_jiffies(sample->rtt_us); in tcp_westwood_pkts_acked()
Dtcp_htcp.c112 if (sample->rtt_us > 0) in measure_achieved_throughput()
113 measure_rtt(sk, usecs_to_jiffies(sample->rtt_us)); in measure_achieved_throughput()
Dtcp_cubic.c455 if (sample->rtt_us < 0) in cubictcp_acked()
462 delay = sample->rtt_us; in cubictcp_acked()
Dtcp_input.c648 u32 new_sample = tp->rcv_rtt_est.rtt_us; in tcp_rcv_rtt_update()
675 tp->rcv_rtt_est.rtt_us = new_sample; in tcp_rcv_rtt_update()
745 if (time < (tp->rcv_rtt_est.rtt_us >> 3) || tp->rcv_rtt_est.rtt_us == 0) in tcp_rcv_space_adjust()
3180 static void tcp_update_rtt_min(struct sock *sk, u32 rtt_us, const int flag) in tcp_update_rtt_min() argument
3185 if ((flag & FLAG_ACK_MAYBE_DELAYED) && rtt_us > tcp_min_rtt(tp)) { in tcp_update_rtt_min()
3193 rtt_us ? : jiffies_to_usecs(1)); in tcp_update_rtt_min()
3220 rs->rtt_us = ca_rtt_us; /* RTT of last (S)ACKed packet (or -1) */ in tcp_ack_update_rtt()
3241 long rtt_us = -1L; in tcp_synack_rtt_meas() local
3244 rtt_us = tcp_stamp_us_delta(tcp_clock_us(), tcp_rsk(req)->snt_synack); in tcp_synack_rtt_meas()
3246 tcp_ack_update_rtt(sk, FLAG_SYN_ACKED, rtt_us, -1L, rtt_us, &rs); in tcp_synack_rtt_meas()
[all …]
Dtcp.c4142 info->tcpi_rcv_rtt = tp->rcv_rtt_est.rtt_us >> 3; in tcp_get_info()
/linux-6.12.1/fs/afs/
Dvl_probe.c53 unsigned int rtt_us = 0; in afs_vlserver_probe_result() local
119 rtt_us = rxrpc_kernel_get_srtt(addr->peer); in afs_vlserver_probe_result()
120 if (rtt_us < server->probe.rtt) { in afs_vlserver_probe_result()
121 server->probe.rtt = rtt_us; in afs_vlserver_probe_result()
122 server->rtt = rtt_us; in afs_vlserver_probe_result()
134 trace_afs_vl_probe(server, false, alist, index, call->error, call->abort_code, rtt_us); in afs_vlserver_probe_result()
137 rtt_us, ret); in afs_vlserver_probe_result()
Dfs_probe.c145 unsigned int rtt_us = -1, cap0; in afs_fileserver_probe_result() local
211 rtt_us = rxrpc_kernel_get_srtt(addr->peer); in afs_fileserver_probe_result()
212 if (rtt_us < estate->rtt) { in afs_fileserver_probe_result()
213 estate->rtt = rtt_us; in afs_fileserver_probe_result()
214 server->rtt = rtt_us; in afs_fileserver_probe_result()
225 trace_afs_fs_probe(server, false, estate, index, call->error, call->abort_code, rtt_us); in afs_fileserver_probe_result()
229 rtt_us, ret); in afs_fileserver_probe_result()
/linux-6.12.1/include/trace/events/
Dafs.h1475 unsigned int addr_index, int error, s32 abort_code, unsigned int rtt_us),
1477 TP_ARGS(server, tx, estate, addr_index, error, abort_code, rtt_us),
1486 __field(unsigned int, rtt_us)
1498 __entry->rtt_us = rtt_us;
1505 __entry->addr_index, __entry->error, __entry->abort_code, __entry->rtt_us,
1511 unsigned int addr_index, int error, s32 abort_code, unsigned int rtt_us),
1513 TP_ARGS(server, tx, alist, addr_index, error, abort_code, rtt_us),
1522 __field(unsigned int, rtt_us)
1532 __entry->rtt_us = rtt_us;
1539 __entry->error, __entry->abort_code, __entry->rtt_us,
/linux-6.12.1/include/linux/
Dtcp.h333 u32 rtt_us; member
360 u32 rtt_us; /* Associated RTT */ member
/linux-6.12.1/tools/testing/selftests/bpf/progs/
Dbpf_cubic.c511 if (sample->rtt_us < 0) in BPF_PROG()
518 delay = sample->rtt_us; in BPF_PROG()
/linux-6.12.1/net/mptcp/
Dprotocol.c2008 u64 rtt_us, mstamp; in mptcp_rcv_space_adjust() local
2023 rtt_us = msk->rcvq_space.rtt_us; in mptcp_rcv_space_adjust()
2024 if (rtt_us && time < (rtt_us >> 3)) in mptcp_rcv_space_adjust()
2027 rtt_us = 0; in mptcp_rcv_space_adjust()
2035 sf_rtt_us = READ_ONCE(tp->rcv_rtt_est.rtt_us); in mptcp_rcv_space_adjust()
2038 rtt_us = max(sf_rtt_us, rtt_us); in mptcp_rcv_space_adjust()
2043 msk->rcvq_space.rtt_us = rtt_us; in mptcp_rcv_space_adjust()
2045 if (time < (rtt_us >> 3) || rtt_us == 0) in mptcp_rcv_space_adjust()
3385 msk->rcvq_space.rtt_us = 0; in mptcp_rcv_space_init()
Dprotocol.h340 u64 rtt_us; /* last maximum rtt of subflows */ member
/linux-6.12.1/include/net/
Dtcp.h1119 s32 rtt_us; member
1140 long rtt_us; /* RTT of last (S)ACKed packet (or -1) */ member