• Home
  • Raw
  • Download

Lines Matching refs:dst

99 static void tcpm_suck_dst(struct tcp_metrics_block *tm, struct dst_entry *dst,  in tcpm_suck_dst()  argument
107 if (dst_metric_locked(dst, RTAX_RTT)) in tcpm_suck_dst()
109 if (dst_metric_locked(dst, RTAX_RTTVAR)) in tcpm_suck_dst()
111 if (dst_metric_locked(dst, RTAX_SSTHRESH)) in tcpm_suck_dst()
113 if (dst_metric_locked(dst, RTAX_CWND)) in tcpm_suck_dst()
115 if (dst_metric_locked(dst, RTAX_REORDERING)) in tcpm_suck_dst()
119 tm->tcpm_vals[TCP_METRIC_RTT] = dst_metric_raw(dst, RTAX_RTT); in tcpm_suck_dst()
120 tm->tcpm_vals[TCP_METRIC_RTTVAR] = dst_metric_raw(dst, RTAX_RTTVAR); in tcpm_suck_dst()
121 tm->tcpm_vals[TCP_METRIC_SSTHRESH] = dst_metric_raw(dst, RTAX_SSTHRESH); in tcpm_suck_dst()
122 tm->tcpm_vals[TCP_METRIC_CWND] = dst_metric_raw(dst, RTAX_CWND); in tcpm_suck_dst()
123 tm->tcpm_vals[TCP_METRIC_REORDERING] = dst_metric_raw(dst, RTAX_REORDERING); in tcpm_suck_dst()
133 static struct tcp_metrics_block *tcpm_new(struct dst_entry *dst, in tcpm_new() argument
142 net = dev_net(dst->dev); in tcpm_new()
160 tcpm_suck_dst(tm, dst, true); in tcpm_new()
174 static void tcpm_check_stamp(struct tcp_metrics_block *tm, struct dst_entry *dst) in tcpm_check_stamp() argument
177 tcpm_suck_dst(tm, dst, false); in tcpm_check_stamp()
208 struct dst_entry *dst) in __tcp_get_metrics_req() argument
229 net = dev_net(dst->dev); in __tcp_get_metrics_req()
237 tcpm_check_stamp(tm, dst); in __tcp_get_metrics_req()
276 struct dst_entry *dst, in tcp_get_metrics() argument
299 net = dev_net(dst->dev); in tcp_get_metrics()
309 tm = tcpm_new(dst, &addr, hash, reclaim); in tcp_get_metrics()
311 tcpm_check_stamp(tm, dst); in tcp_get_metrics()
323 struct dst_entry *dst = __sk_dst_get(sk); in tcp_update_metrics() local
330 if (sysctl_tcp_nometrics_save || !dst) in tcp_update_metrics()
333 if (dst->flags & DST_HOST) in tcp_update_metrics()
334 dst_confirm(dst); in tcp_update_metrics()
342 tm = tcp_get_metrics(sk, dst, false); in tcp_update_metrics()
347 tm = tcp_get_metrics(sk, dst, true); in tcp_update_metrics()
443 struct dst_entry *dst = __sk_dst_get(sk); in tcp_init_metrics() local
448 if (dst == NULL) in tcp_init_metrics()
451 dst_confirm(dst); in tcp_init_metrics()
454 tm = tcp_get_metrics(sk, dst, true); in tcp_init_metrics()
532 tp->snd_cwnd = tcp_init_cwnd(tp, dst); in tcp_init_metrics()
536 bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst, bool paws_check) in tcp_peer_is_proven() argument
541 if (!dst) in tcp_peer_is_proven()
545 tm = __tcp_get_metrics_req(req, dst); in tcp_peer_is_proven()
565 void tcp_fetch_timewait_stamp(struct sock *sk, struct dst_entry *dst) in tcp_fetch_timewait_stamp() argument
570 tm = tcp_get_metrics(sk, dst, true); in tcp_fetch_timewait_stamp()
590 struct dst_entry *dst = __sk_dst_get(sk); in tcp_remember_stamp() local
593 if (dst) { in tcp_remember_stamp()
597 tm = tcp_get_metrics(sk, dst, true); in tcp_remember_stamp()