Lines Matching refs:from

357 	struct fib6_info *from;  in ip6_dst_destroy()  local
369 from = unrcu_pointer(xchg(&rt->from, NULL)); in ip6_dst_destroy()
370 fib6_info_release(from); in ip6_dst_destroy()
377 struct fib6_info *from; in ip6_dst_ifdown() local
387 from = unrcu_pointer(xchg(&rt->from, NULL)); in ip6_dst_ifdown()
388 fib6_info_release(from); in ip6_dst_ifdown()
400 struct fib6_info *from; in rt6_check_expired() local
402 from = rcu_dereference(rt->from); in rt6_check_expired()
407 } else if (from) { in rt6_check_expired()
409 fib6_check_expired(from); in rt6_check_expired()
1161 static void rt6_set_from(struct rt6_info *rt, struct fib6_info *from) in rt6_set_from() argument
1164 rcu_assign_pointer(rt->from, from); in rt6_set_from()
1165 ip_dst_init_metrics(&rt->dst, from->fib6_metrics); in rt6_set_from()
1476 struct fib6_info *from; in rt6_make_pcpu_route() local
1478 from = unrcu_pointer(xchg(&pcpu_rt->from, NULL)); in rt6_make_pcpu_route()
1479 fib6_info_release(from); in rt6_make_pcpu_route()
1782 static void fib6_nh_flush_exceptions(struct fib6_nh *nh, struct fib6_info *from) in fib6_nh_flush_exceptions() argument
1796 if (!from) in fib6_nh_flush_exceptions()
1801 if (!from || in fib6_nh_flush_exceptions()
1802 rcu_access_pointer(rt6_ex->rt6i->from) == from) in fib6_nh_flush_exceptions()
1805 WARN_ON_ONCE(!from && bucket->depth); in fib6_nh_flush_exceptions()
1935 struct fib6_info *from; in rt6_remove_exception_rt() local
1937 from = rcu_dereference(rt->from); in rt6_remove_exception_rt()
1938 if (!from || !(rt->rt6i_flags & RTF_CACHE)) in rt6_remove_exception_rt()
1941 if (from->nh) { in rt6_remove_exception_rt()
1944 .plen = from->fib6_src.plen in rt6_remove_exception_rt()
1949 rc = nexthop_for_each_fib6_nh(from->nh, in rt6_remove_exception_rt()
1955 return fib6_nh_remove_exception(from->fib6_nh, in rt6_remove_exception_rt()
1956 from->fib6_src.plen, rt); in rt6_remove_exception_rt()
2010 struct fib6_info *from; in rt6_update_exception_stamp_rt() local
2015 from = rcu_dereference(rt->from); in rt6_update_exception_stamp_rt()
2016 if (!from || !(rt->rt6i_flags & RTF_CACHE)) in rt6_update_exception_stamp_rt()
2019 if (from->nh) { in rt6_update_exception_stamp_rt()
2025 nexthop_for_each_fib6_nh(from->nh, fib6_nh_find_match, &arg); in rt6_update_exception_stamp_rt()
2031 fib6_nh = from->fib6_nh; in rt6_update_exception_stamp_rt()
2033 fib6_nh_update_exception(fib6_nh, from->fib6_src.plen, rt); in rt6_update_exception_stamp_rt()
2760 struct fib6_info *from, in rt6_check() argument
2765 if (!from || !fib6_get_cookie_safe(from, &rt_cookie) || in rt6_check()
2776 struct fib6_info *from, in rt6_dst_from_check() argument
2781 fib6_check(from, cookie)) in rt6_dst_from_check()
2790 struct fib6_info *from; in ip6_dst_check() local
2805 from = rcu_dereference(rt->from); in ip6_dst_check()
2807 if (from && (rt->rt6i_flags & RTF_PCPU || in ip6_dst_check()
2809 dst_ret = rt6_dst_from_check(rt, from, cookie); in ip6_dst_check()
2811 dst_ret = rt6_check(rt, from, cookie); in ip6_dst_check()
2851 struct fib6_info *from; in ip6_link_failure() local
2854 from = rcu_dereference(rt->from); in ip6_link_failure()
2855 if (from) { in ip6_link_failure()
2856 fn = rcu_dereference(from->fib6_node); in ip6_link_failure()
2868 struct fib6_info *from; in rt6_update_expires() local
2871 from = rcu_dereference(rt0->from); in rt6_update_expires()
2872 if (from) in rt6_update_expires()
2873 WRITE_ONCE(rt0->dst.expires, from->expires); in rt6_update_expires()
2893 (rt->rt6i_flags & RTF_PCPU || rcu_access_pointer(rt->from)); in rt6_cache_allowed_for_pmtu()
2937 res.f6i = rcu_dereference(rt6->from); in __ip6_rt_update_pmtu()
4298 res.f6i = rcu_dereference(rt->from); in rt6_do_redirect()
6191 struct fib6_info *from; in inet6_rtm_getroute() local
6305 from = rcu_dereference(rt->from); in inet6_rtm_getroute()
6306 if (from) { in inet6_rtm_getroute()
6308 err = rt6_fill_node(net, skb, from, NULL, NULL, NULL, in inet6_rtm_getroute()
6313 err = rt6_fill_node(net, skb, from, dst, &fl6.daddr, in inet6_rtm_getroute()