Home
last modified time | relevance | path

Searched refs:f6i (Results 1 – 7 of 7) sorted by relevance

/net/ipv6/
Droute.c106 static size_t rt6_nlmsg_size(struct fib6_info *f6i);
416 struct fib6_info *match = res->f6i; in fib6_select_path()
454 res->f6i = match; in fib6_select_path()
525 struct fib6_info *f6i = res->f6i; in rt6_device_match() local
530 if (unlikely(f6i->nh)) { in rt6_device_match()
531 nh = nexthop_fib6_nh(f6i->nh); in rt6_device_match()
532 if (nexthop_is_blackhole(f6i->nh)) in rt6_device_match()
535 nh = f6i->fib6_nh; in rt6_device_match()
541 for (spf6i = f6i; spf6i; spf6i = rcu_dereference(spf6i->fib6_next)) { in rt6_device_match()
555 res->f6i = spf6i; in rt6_device_match()
[all …]
Danycast.c260 static struct ifacaddr6 *aca_alloc(struct fib6_info *f6i, in aca_alloc() argument
270 fib6_info_hold(f6i); in aca_alloc()
271 aca->aca_rt = f6i; in aca_alloc()
287 struct fib6_info *f6i; in __ipv6_dev_ac_inc() local
308 f6i = addrconf_f6i_alloc(net, idev, addr, true, GFP_ATOMIC); in __ipv6_dev_ac_inc()
309 if (IS_ERR(f6i)) { in __ipv6_dev_ac_inc()
310 err = PTR_ERR(f6i); in __ipv6_dev_ac_inc()
313 aca = aca_alloc(f6i, addr); in __ipv6_dev_ac_inc()
315 fib6_info_release(f6i); in __ipv6_dev_ac_inc()
331 ip6_ins_rt(net, f6i); in __ipv6_dev_ac_inc()
Dip6_fib.c106 void fib6_update_sernum(struct net *net, struct fib6_info *f6i) in fib6_update_sernum() argument
110 fn = rcu_dereference_protected(f6i->fib6_node, in fib6_update_sernum()
111 lockdep_is_held(&f6i->fib6_table->tb6_lock)); in fib6_update_sernum()
148 struct fib6_info *f6i; in fib6_info_alloc() local
149 size_t sz = sizeof(*f6i); in fib6_info_alloc()
154 f6i = kzalloc(sz, gfp_flags); in fib6_info_alloc()
155 if (!f6i) in fib6_info_alloc()
159 INIT_LIST_HEAD(&f6i->fib6_siblings); in fib6_info_alloc()
160 refcount_set(&f6i->fib6_ref, 1); in fib6_info_alloc()
162 return f6i; in fib6_info_alloc()
[all …]
Daddrconf.c1075 struct fib6_info *f6i = NULL; in ipv6_add_addr() local
1118 f6i = addrconf_f6i_alloc(net, idev, cfg->pfx, false, gfp_flags); in ipv6_add_addr()
1119 if (IS_ERR(f6i)) { in ipv6_add_addr()
1120 err = PTR_ERR(f6i); in ipv6_add_addr()
1121 f6i = NULL; in ipv6_add_addr()
1146 ifa->rt = f6i; in ipv6_add_addr()
1180 fib6_info_release(f6i); in ipv6_add_addr()
1259 struct fib6_info *f6i; in cleanup_prefix_route() local
1261 f6i = addrconf_get_prefix_route(del_peer ? &ifp->peer_addr : &ifp->addr, in cleanup_prefix_route()
1264 if (f6i) { in cleanup_prefix_route()
[all …]
Dfib6_rules.c83 if (err || res->f6i == net->ipv6.fib6_null_entry) in fib6_lookup()
186 if (!err && res->f6i != net->ipv6.fib6_null_entry) in fib6_rule_action_alt()
/net/ipv4/
Dnexthop.c673 struct fib6_info *f6i; in fib6_check_nh_list() local
678 list_for_each_entry(f6i, &old->f6i_list, nh_list) { in fib6_check_nh_list()
679 if (check_src_addr(&f6i->fib6_src.addr, extack) < 0) in fib6_check_nh_list()
869 struct fib6_info *f6i, *tmp; in __remove_nexthop_fib() local
881 list_for_each_entry_safe(f6i, tmp, &nh->f6i_list, nh_list) { in __remove_nexthop_fib()
883 fib6_info_hold(f6i); in __remove_nexthop_fib()
884 ipv6_stub->ip6_del_rt(net, f6i, in __remove_nexthop_fib()
929 struct fib6_info *f6i; in nh_rt_cache_flush() local
934 list_for_each_entry(f6i, &nh->f6i_list, nh_list) in nh_rt_cache_flush()
935 ipv6_stub->fib6_update_sernum(net, f6i); in nh_rt_cache_flush()
[all …]
/net/core/
Dfilter.c5475 if (unlikely(err || IS_ERR_OR_NULL(res.f6i) || in bpf_ipv6_fib_lookup()
5476 res.f6i == net->ipv6.fib6_null_entry)) in bpf_ipv6_fib_lookup()
5509 params->rt_metric = res.f6i->fib6_metric; in bpf_ipv6_fib_lookup()