• Home
  • Raw
  • Download

Lines Matching refs:rt6_ex

1443 				 struct rt6_exception *rt6_ex)  in rt6_remove_exception()  argument
1448 if (!bucket || !rt6_ex) in rt6_remove_exception()
1451 net = dev_net(rt6_ex->rt6i->dst.dev); in rt6_remove_exception()
1457 from = xchg((__force struct fib6_info **)&rt6_ex->rt6i->from, NULL); in rt6_remove_exception()
1459 dst_dev_put(&rt6_ex->rt6i->dst); in rt6_remove_exception()
1461 hlist_del_rcu(&rt6_ex->hlist); in rt6_remove_exception()
1462 dst_release(&rt6_ex->rt6i->dst); in rt6_remove_exception()
1463 kfree_rcu(rt6_ex, rcu); in rt6_remove_exception()
1473 struct rt6_exception *rt6_ex, *oldest = NULL; in rt6_exception_remove_oldest() local
1478 hlist_for_each_entry(rt6_ex, &bucket->chain, hlist) { in rt6_exception_remove_oldest()
1479 if (!oldest || time_before(rt6_ex->stamp, oldest->stamp)) in rt6_exception_remove_oldest()
1480 oldest = rt6_ex; in rt6_exception_remove_oldest()
1518 struct rt6_exception *rt6_ex; in __rt6_find_exception_spinlock() local
1527 hlist_for_each_entry(rt6_ex, &(*bucket)->chain, hlist) { in __rt6_find_exception_spinlock()
1528 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_spinlock()
1536 return rt6_ex; in __rt6_find_exception_spinlock()
1551 struct rt6_exception *rt6_ex; in __rt6_find_exception_rcu() local
1562 hlist_for_each_entry_rcu(rt6_ex, &(*bucket)->chain, hlist) { in __rt6_find_exception_rcu()
1563 struct rt6_info *rt6 = rt6_ex->rt6i; in __rt6_find_exception_rcu()
1571 return rt6_ex; in __rt6_find_exception_rcu()
1658 struct rt6_exception *rt6_ex; in rt6_insert_exception() local
1699 rt6_ex = __rt6_find_exception_spinlock(&bucket, &nrt->rt6i_dst.addr, in rt6_insert_exception()
1701 if (rt6_ex) in rt6_insert_exception()
1702 rt6_remove_exception(bucket, rt6_ex); in rt6_insert_exception()
1704 rt6_ex = kzalloc(sizeof(*rt6_ex), GFP_ATOMIC); in rt6_insert_exception()
1705 if (!rt6_ex) { in rt6_insert_exception()
1709 rt6_ex->rt6i = nrt; in rt6_insert_exception()
1710 rt6_ex->stamp = jiffies; in rt6_insert_exception()
1711 hlist_add_head_rcu(&rt6_ex->hlist, &bucket->chain); in rt6_insert_exception()
1737 struct rt6_exception *rt6_ex; in fib6_nh_flush_exceptions() local
1752 hlist_for_each_entry_safe(rt6_ex, tmp, &bucket->chain, hlist) { in fib6_nh_flush_exceptions()
1754 rcu_access_pointer(rt6_ex->rt6i->from) == from) in fib6_nh_flush_exceptions()
1755 rt6_remove_exception(bucket, rt6_ex); in fib6_nh_flush_exceptions()
1791 struct rt6_exception *rt6_ex; in rt6_find_cached_rt() local
1811 rt6_ex = __rt6_find_exception_rcu(&bucket, daddr, src_key); in rt6_find_cached_rt()
1813 if (rt6_ex && !rt6_check_expired(rt6_ex->rt6i)) in rt6_find_cached_rt()
1814 ret = rt6_ex->rt6i; in rt6_find_cached_rt()
1833 struct rt6_exception *rt6_ex; in fib6_nh_remove_exception() local
1852 rt6_ex = __rt6_find_exception_spinlock(&bucket, in fib6_nh_remove_exception()
1855 if (rt6_ex) { in fib6_nh_remove_exception()
1856 rt6_remove_exception(bucket, rt6_ex); in fib6_nh_remove_exception()
1917 struct rt6_exception *rt6_ex; in fib6_nh_update_exception() local
1930 rt6_ex = __rt6_find_exception_rcu(&bucket, &rt->rt6i_dst.addr, src_key); in fib6_nh_update_exception()
1931 if (rt6_ex) in fib6_nh_update_exception()
1932 rt6_ex->stamp = jiffies; in fib6_nh_update_exception()
2014 struct rt6_exception *rt6_ex; in rt6_exceptions_update_pmtu() local
2022 hlist_for_each_entry(rt6_ex, &bucket->chain, hlist) { in rt6_exceptions_update_pmtu()
2023 struct rt6_info *entry = rt6_ex->rt6i; in rt6_exceptions_update_pmtu()
2043 struct rt6_exception *rt6_ex; in fib6_nh_exceptions_clean_tohost() local
2054 hlist_for_each_entry_safe(rt6_ex, tmp, in fib6_nh_exceptions_clean_tohost()
2056 struct rt6_info *entry = rt6_ex->rt6i; in fib6_nh_exceptions_clean_tohost()
2062 rt6_remove_exception(bucket, rt6_ex); in fib6_nh_exceptions_clean_tohost()
2073 struct rt6_exception *rt6_ex, in rt6_age_examine_exception() argument
2077 struct rt6_info *rt = rt6_ex->rt6i; in rt6_age_examine_exception()
2088 rt6_remove_exception(bucket, rt6_ex); in rt6_age_examine_exception()
2093 rt6_remove_exception(bucket, rt6_ex); in rt6_age_examine_exception()
2105 rt6_remove_exception(bucket, rt6_ex); in rt6_age_examine_exception()
2118 struct rt6_exception *rt6_ex; in fib6_nh_age_exceptions() local
2130 hlist_for_each_entry_safe(rt6_ex, tmp, in fib6_nh_age_exceptions()
2132 rt6_age_examine_exception(bucket, rt6_ex, in fib6_nh_age_exceptions()
5829 struct rt6_exception *rt6_ex; in rt6_nh_dump_exceptions() local
5837 hlist_for_each_entry(rt6_ex, &bucket->chain, hlist) { in rt6_nh_dump_exceptions()
5854 if (rt6_check_expired(rt6_ex->rt6i)) { in rt6_nh_dump_exceptions()
5860 &rt6_ex->rt6i->dst, NULL, NULL, 0, in rt6_nh_dump_exceptions()