Lines Matching defs:dst

20 #include <net/dst.h>
99 const struct dst_entry *dst,
108 if (dst_metric_locked(dst, RTAX_RTT))
110 if (dst_metric_locked(dst, RTAX_RTTVAR))
112 if (dst_metric_locked(dst, RTAX_SSTHRESH))
114 if (dst_metric_locked(dst, RTAX_CWND))
116 if (dst_metric_locked(dst, RTAX_REORDERING))
121 msval = dst_metric_raw(dst, RTAX_RTT);
124 msval = dst_metric_raw(dst, RTAX_RTTVAR);
127 dst_metric_raw(dst, RTAX_SSTHRESH));
129 dst_metric_raw(dst, RTAX_CWND));
131 dst_metric_raw(dst, RTAX_REORDERING));
146 const struct dst_entry *dst)
154 tcpm_suck_dst(tm, dst, false);
163 static struct tcp_metrics_block *tcpm_new(struct dst_entry *dst,
173 net = dev_net(dst->dev);
184 tcpm_check_stamp(tm, dst);
210 tcpm_suck_dst(tm, dst, reclaim);
250 struct dst_entry *dst)
276 net = dev_net(dst->dev);
287 tcpm_check_stamp(tm, dst);
292 struct dst_entry *dst,
321 net = dev_net(dst->dev);
329 tm = tcpm_new(dst, &saddr, &daddr, hash);
331 tcpm_check_stamp(tm, dst);
343 struct dst_entry *dst = __sk_dst_get(sk);
352 if (READ_ONCE(net->ipv4.sysctl_tcp_nometrics_save) || !dst)
361 tm = tcp_get_metrics(sk, dst, false);
366 tm = tcp_get_metrics(sk, dst, true);
466 struct dst_entry *dst = __sk_dst_get(sk);
477 if (!dst)
481 tm = tcp_get_metrics(sk, dst, false);
506 * small. Use the per-dst cached values to seed the RTO but keep
542 bool tcp_peer_is_proven(struct request_sock *req, struct dst_entry *dst)
547 if (!dst)
551 tm = __tcp_get_metrics_req(req, dst);
588 struct dst_entry *dst = __sk_dst_get(sk);
591 if (!dst)
594 tm = tcp_get_metrics(sk, dst, true);