Lines Matching refs:dst
19 struct dst_entry *dst; member
28 struct dst_entry *dst, u32 cookie) in dst_cache_per_cpu_dst_set() argument
31 dst_release(dst_cache->dst); in dst_cache_per_cpu_dst_set()
32 if (dst) in dst_cache_per_cpu_dst_set()
33 dst_hold(dst); in dst_cache_per_cpu_dst_set()
36 dst_cache->dst = dst; in dst_cache_per_cpu_dst_set()
42 struct dst_entry *dst; in dst_cache_per_cpu_get() local
45 dst = idst->dst; in dst_cache_per_cpu_get()
46 if (!dst) in dst_cache_per_cpu_get()
50 dst_hold(dst); in dst_cache_per_cpu_get()
54 (dst->obsolete && !dst->ops->check(dst, idst->cookie)))) { in dst_cache_per_cpu_get()
56 dst_release(dst); in dst_cache_per_cpu_get()
59 return dst; in dst_cache_per_cpu_get()
78 struct dst_entry *dst; in dst_cache_get_ip4() local
84 dst = dst_cache_per_cpu_get(dst_cache, idst); in dst_cache_get_ip4()
85 if (!dst) in dst_cache_get_ip4()
89 return dst_rtable(dst); in dst_cache_get_ip4()
93 void dst_cache_set_ip4(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip4() argument
102 dst_cache_per_cpu_dst_set(idst, dst, 0); in dst_cache_set_ip4()
108 void dst_cache_set_ip6(struct dst_cache *dst_cache, struct dst_entry *dst, in dst_cache_set_ip6() argument
117 dst_cache_per_cpu_dst_set(idst, dst, in dst_cache_set_ip6()
118 rt6_get_cookie(dst_rt6_info(dst))); in dst_cache_set_ip6()
127 struct dst_entry *dst; in dst_cache_get_ip6() local
133 dst = dst_cache_per_cpu_get(dst_cache, idst); in dst_cache_get_ip6()
134 if (!dst) in dst_cache_get_ip6()
138 return dst; in dst_cache_get_ip6()
163 dst_release(per_cpu_ptr(dst_cache->cache, i)->dst); in dst_cache_destroy()
179 struct dst_entry *dst = idst->dst; in dst_cache_reset_now() local
182 idst->dst = NULL; in dst_cache_reset_now()
183 dst_release(dst); in dst_cache_reset_now()