Lines Matching refs:nh

619 static void update_or_create_fnhe(struct fib_nh *nh, __be32 daddr, __be32 gw,  in update_or_create_fnhe()  argument
631 hash = rcu_dereference(nh->nh_exceptions); in update_or_create_fnhe()
636 rcu_assign_pointer(nh->nh_exceptions, hash); in update_or_create_fnhe()
674 fnhe->fnhe_genid = fnhe_genid(dev_net(nh->nh_dev)); in update_or_create_fnhe()
684 rt = rcu_dereference(nh->nh_rth_input); in update_or_create_fnhe()
690 prt = per_cpu_ptr(nh->nh_pcpu_rth_output, i); in update_or_create_fnhe()
754 struct fib_nh *nh = &FIB_RES_NH(res); in __ip_do_redirect() local
756 update_or_create_fnhe(nh, fl4->daddr, new_gw, in __ip_do_redirect()
982 struct fib_nh *nh = &FIB_RES_NH(res); in __ip_rt_update_pmtu() local
984 update_or_create_fnhe(nh, fl4->daddr, 0, mtu, in __ip_rt_update_pmtu()
1247 static struct fib_nh_exception *find_exception(struct fib_nh *nh, __be32 daddr) in find_exception() argument
1249 struct fnhe_hash_bucket *hash = rcu_dereference(nh->nh_exceptions); in find_exception()
1310 static bool rt_cache_route(struct fib_nh *nh, struct rtable *rt) in rt_cache_route() argument
1316 p = (struct rtable **)&nh->nh_rth_input; in rt_cache_route()
1318 p = (struct rtable **)raw_cpu_ptr(nh->nh_pcpu_rth_output); in rt_cache_route()
1399 struct fib_nh *nh = &FIB_RES_NH(*res); in rt_set_nexthop() local
1401 if (nh->nh_gw && nh->nh_scope == RT_SCOPE_LINK) { in rt_set_nexthop()
1402 rt->rt_gateway = nh->nh_gw; in rt_set_nexthop()
1407 rt->dst.tclassid = nh->nh_tclassid; in rt_set_nexthop()
1412 cached = rt_cache_route(nh, rt); in rt_set_nexthop()
1542 static void ip_del_fnhe(struct fib_nh *nh, __be32 daddr) in ip_del_fnhe() argument
1550 hash = rcu_dereference_protected(nh->nh_exceptions, in ip_del_fnhe()
1985 struct fib_nh *nh = &FIB_RES_NH(*res); in __mkroute_output() local
1987 fnhe = find_exception(nh, fl4->daddr); in __mkroute_output()
1993 ip_del_fnhe(nh, fl4->daddr); in __mkroute_output()
2002 !(nh->nh_gw && in __mkroute_output()
2003 nh->nh_scope == RT_SCOPE_LINK))) { in __mkroute_output()
2007 prth = raw_cpu_ptr(nh->nh_pcpu_rth_output); in __mkroute_output()