/net/ipv4/ |
H A D | tcp_bic.c | 203 static void bictcp_acked(struct sock *sk, u32 cnt, s32 rtt) argument
|
H A D | tcp_lp.c | 220 static void tcp_lp_rtt_sample(struct sock *sk, u32 rtt) argument
|
H A D | tcp_vegas.c | 119 /* Never allow zero rtt or baseRTT */ 199 u32 rtt, diff; local 213 rtt = vegas->minRTT; 221 target_cwnd = tp->snd_cwnd * vegas->baseRTT / rtt; 227 diff = tp->snd_cwnd * (rtt-vegas->baseRTT) / vegas->baseRTT;
|
H A D | tcp_veno.c | 27 u8 doing_veno_now; /* if true, do veno for this rtt */ 28 u16 cntrtt; /* # of rtts measured within last rtt */ 29 u32 minrtt; /* min of rtts measured within last rtt (in usec) */ 30 u32 basertt; /* the min of all Veno rtt measurements seen (in usec) */ 71 /* Do rtt sampling needed for Veno. */ 80 /* Never allow zero rtt or baseRTT */ 87 /* Find the min rtt during the last rtt to find 105 * until we get fresh rtt samples. So when we 131 /* We do the Veno calculations only if we got enough rtt sample 139 u32 rtt; local [all...] |
H A D | tcp_westwood.c | 39 u32 rtt; member in struct:westwood 71 w->rtt_min = w->rtt = TCP_WESTWOOD_INIT_RTT; 103 static void tcp_westwood_pkts_acked(struct sock *sk, u32 cnt, s32 rtt) argument 107 if (rtt > 0) 108 w->rtt = usecs_to_jiffies(rtt); 139 if (w->rtt && delta > max_t(u32, w->rtt, TCP_WESTWOOD_RTT_MIN)) { 150 w->rtt_min = w->rtt; 153 w->rtt_min = min(w->rtt, [all...] |
H A D | tcp_yeah.c | 19 #define TCP_YEAH_GAMMA 1 //lin fraction of queue to be removed per rtt 23 #define TCP_YEAH_RHO 16 //lin minimum number of consecutive rtt to consider competition on loss 110 * (v_beg_snd_nxt - v_vegas.beg_snd_una) / (rtt duration) 134 u32 rtt, queue; local 148 rtt = yeah->vegas.minRTT; 154 bw *= rtt - yeah->vegas.baseRTT; 155 do_div(bw, rtt); 159 rtt - yeah->vegas.baseRTT > (yeah->vegas.baseRTT / TCP_YEAH_PHY)) {
|
H A D | tcp_htcp.c | 101 static void measure_achieved_throughput(struct sock *sk, u32 pkts_acked, s32 rtt) argument 111 if (rtt > 0) 112 measure_rtt(sk, usecs_to_jiffies(rtt)); 199 * After we have the rtt data to calculate beta, we'd still prefer to wait one 200 * rtt before we adjust our beta to ensure we are working from a consistent
|
H A D | tcp_illinois.c | 45 u64 sum_rtt; /* sum of rtt's measured within last rtt */ 46 u16 cnt_rtt; /* # of rtts measured within last rtt */ 47 u32 base_rtt; /* min of all rtt in usec */ 48 u32 max_rtt; /* max of all rtt in usec */ 53 u8 rtt_above; /* average rtt has gone above threshold */ 86 static void tcp_illinois_acked(struct sock *sk, u32 pkts_acked, s32 rtt) argument 92 /* dup ack, no rtt sample */ 93 if (rtt < 0) 97 if (rtt > RTT_MA [all...] |
H A D | tcp_metrics.c | 326 unsigned long rtt; local 338 /* This session failed to estimate rtt. Why? 352 rtt = tcp_metric_get_jiffies(tm, TCP_METRIC_RTT); 353 m = rtt - tp->srtt; 355 /* If newly calculated rtt larger than stored one, store new 356 * one. Otherwise, use EWMA. Remember, rtt overestimation is 361 rtt = tp->srtt; 363 rtt -= (m >> 3); 364 tcp_metric_set_msecs(tm, TCP_METRIC_RTT, rtt); 486 /* Initial rtt i [all...] |
H A D | tcp_output.c | 1917 u32 rtt = tp->srtt >> 3; local 1939 if (sysctl_tcp_early_retrans < 3 || !rtt || !tp->packets_out || 1947 /* Probe timeout is at least 1.5*rtt + TCP_DELACK_MAX to account 1950 timeout = rtt << 1; 1953 (rtt + (rtt >> 1) + TCP_DELACK_MAX)); 2987 /* If some rtt estimate is known, use it to bound delayed ack. 2988 * Do not use inet_csk(sk)->icsk_rto here, use results of rtt measurements 2992 int rtt = max(tp->srtt >> 3, TCP_DELACK_MIN); local 2994 if (rtt < max_at [all...] |
/net/sctp/ |
H A D | transport.c | 318 void sctp_transport_update_rto(struct sctp_transport *tp, __u32 rtt) argument 340 + (((__u32)abs64((__s64)tp->srtt - (__s64)rtt)) >> net->sctp.rto_beta); 342 + (rtt >> net->sctp.rto_alpha); 347 tp->srtt = rtt; 348 tp->rttvar = rtt >> 1; 373 tp->rtt = rtt; 380 SCTP_DEBUG_PRINTK("%s: transport: %p, rtt: %d, srtt: %d " 382 tp, rtt, tp->srtt, tp->rttvar, tp->rto); 538 transport->rtt)) { [all...] |
H A D | outqueue.c | 1344 __u32 rtt; local 1411 rtt = jiffies - tchunk->sent_at; 1413 rtt);
|
/net/decnet/ |
H A D | dn_nsp_out.c | 162 * This is called each time we get an estimate for the rtt 165 static void dn_nsp_rtt(struct sock *sk, long rtt) argument 177 if (rtt < 0) 178 rtt = -rtt; 180 * Add new rtt to smoothed average 182 delta = ((rtt << 3) - srtt); 190 * Add new rtt varience to smoothed varience
|
/net/sunrpc/ |
H A D | xprt.c | 547 struct rpc_rtt *rtt = clnt->cl_rtt; local 551 task->tk_timeout = rpc_calc_rto(rtt, timer); 552 task->tk_timeout <<= rpc_ntimeo(rtt, timer) + req->rq_retries; 788 struct rpc_rtt *rtt = task->tk_client->cl_rtt; local 794 rpc_update_rtt(rtt, timer, m); 795 rpc_set_timeo(rtt, timer, req->rq_ntrans - 1);
|
/net/rxrpc/ |
H A D | ar-internal.h | 189 suseconds_t rtt; /* current RTT estimate (in uS) */ member in struct:rxrpc_peer
|