/linux-6.3-rc2/tools/testing/selftests/bpf/progs/ |
A D | bpf_iter_ipv6_route.c | 17 struct fib6_nh *fib6_nh; in dump_ipv6_route() local 24 fib6_nh = &rt->fib6_nh[0]; in dump_ipv6_route() 30 fib6_nh = &nh->nh_info->fib6_nh; in dump_ipv6_route() 40 if (fib6_nh->fib_nh_gw_family) { in dump_ipv6_route() 42 BPF_SEQ_PRINTF(seq, "%pi6 ", &fib6_nh->fib_nh_gw6); in dump_ipv6_route() 47 dev = fib6_nh->fib_nh_dev; in dump_ipv6_route()
|
/linux-6.3-rc2/include/net/ |
A D | ipv6_stubs.h | 15 struct fib6_nh; 46 int (*fib6_nh_init)(struct net *net, struct fib6_nh *fib6_nh, 49 void (*fib6_nh_release)(struct fib6_nh *fib6_nh); 50 void (*fib6_nh_release_dsts)(struct fib6_nh *fib6_nh);
|
A D | nexthop.h | 68 struct fib6_nh fib6_nh; member 371 BUILD_BUG_ON(offsetof(struct fib6_nh, nh_common) != 0); in nexthop_fib_nhc() 480 static inline struct fib6_nh *nexthop_fib6_nh(struct nexthop *nh) in nexthop_fib6_nh() 495 return &nhi->fib6_nh; in nexthop_fib6_nh() 503 static inline struct fib6_nh *nexthop_fib6_nh_bh(struct nexthop *nh) in nexthop_fib6_nh_bh() 518 return &nhi->fib6_nh; in nexthop_fib6_nh_bh() 525 struct fib6_nh *fib6_nh; in fib6_info_nh_dev() local 527 fib6_nh = f6i->nh ? nexthop_fib6_nh(f6i->nh) : f6i->fib6_nh; in fib6_info_nh_dev() 528 return fib6_nh->fib_nh_dev; in fib6_info_nh_dev() 544 res->nh = &nhi->fib6_nh; in nexthop_path_fib6_result() [all …]
|
A D | ip6_fib.h | 153 struct fib6_nh { struct 206 struct fib6_nh fib6_nh[]; member 228 struct fib6_nh *nh; 486 int fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, 489 void fib6_nh_release(struct fib6_nh *fib6_nh); 490 void fib6_nh_release_dsts(struct fib6_nh *fib6_nh);
|
A D | ip6_route.h | 78 f6i->fib6_nh->fib_nh_gw_family; in rt6_qualify_for_ecmp() 303 struct fib6_nh *nha, *nhb; in rt6_duplicate_nexthop() 308 nha = a->fib6_nh; in rt6_duplicate_nexthop() 309 nhb = b->fib6_nh; in rt6_duplicate_nexthop()
|
/linux-6.3-rc2/net/ipv6/ |
A D | route.c | 445 const struct fib6_nh *nh = sibling->fib6_nh; in fib6_select_path() 614 static void rt6_probe(struct fib6_nh *fib6_nh) in rt6_probe() argument 673 static inline void rt6_probe(struct fib6_nh *fib6_nh) in rt6_probe() argument 1961 struct fib6_nh *fib6_nh; in rt6_update_exception_stamp_rt() local 1981 fib6_nh = from->fib6_nh; in rt6_update_exception_stamp_rt() 3631 void fib6_nh_release(struct fib6_nh *fib6_nh) in fib6_nh_release() argument 3652 void fib6_nh_release_dsts(struct fib6_nh *fib6_nh) in fib6_nh_release_dsts() argument 3679 struct fib6_nh *fib6_nh; in ip6_route_info_create() local 3796 fib6_nh = rt->fib6_nh; in ip6_route_info_create() 5537 struct fib6_nh *nh = f6i->fib6_nh; in rt6_nlmsg_size() [all …]
|
A D | ip6_fib.c | 153 sz += sizeof(struct fib6_nh); in fib6_info_alloc() 175 fib6_nh_release(f6i->fib6_nh); in fib6_info_destroy_rcu() 955 static void __fib6_drop_pcpu_from(struct fib6_nh *fib6_nh, in __fib6_drop_pcpu_from() argument 961 if (!fib6_nh->rt6i_pcpu) in __fib6_drop_pcpu_from() 1019 struct fib6_nh *fib6_nh; in fib6_drop_pcpu_from() local 1021 fib6_nh = f6i->fib6_nh; in fib6_drop_pcpu_from() 1022 __fib6_drop_pcpu_from(fib6_nh, f6i, table); in fib6_drop_pcpu_from() 2489 struct fib6_nh *fib6_nh = rt->fib6_nh; in ipv6_route_native_seq_show() local 2494 fib6_nh = nexthop_fib6_nh_bh(rt->nh); in ipv6_route_native_seq_show() 2503 if (fib6_nh->fib_nh_gw_family) { in ipv6_route_native_seq_show() [all …]
|
A D | addrconf_core.c | 180 static int eafnosupport_fib6_nh_init(struct net *net, struct fib6_nh *fib6_nh, in eafnosupport_fib6_nh_init() argument
|
A D | ndisc.c | 1354 neigh = ip6_neigh_lookup(&rt->fib6_nh->fib_nh_gw6, in ndisc_router_discovery() 1355 rt->fib6_nh->fib_nh_dev, NULL, in ndisc_router_discovery() 1390 neigh = ip6_neigh_lookup(&rt->fib6_nh->fib_nh_gw6, in ndisc_router_discovery() 1391 rt->fib6_nh->fib_nh_dev, NULL, in ndisc_router_discovery()
|
A D | addrconf.c | 2454 if (rt->fib6_nh->fib_nh_dev->ifindex != dev->ifindex) in addrconf_get_prefix_route() 2456 if (no_gw && rt->fib6_nh->fib_nh_gw_family) in addrconf_get_prefix_route() 6544 struct fib6_nh *nh = ifa->rt->fib6_nh; in addrconf_disable_policy_idev()
|
/linux-6.3-rc2/net/ipv4/ |
A D | nexthop.c | 499 ipv6_stub->fib6_nh_release(&nhi->fib6_nh); in nexthop_free_single() 696 struct fib6_nh *fib6_nh; in nh_fill_node() local 753 fib6_nh = &nhi->fib6_nh; in nh_fill_node() 754 if (fib6_nh->fib_nh_gw_family && in nh_fill_node() 814 if (nhi->fib6_nh.fib_nh_gw_family) in nh_nlmsg_size_single() 1180 if (ipv6_good_nh(&nhi->fib6_nh)) in nexthop_select_path_hthr() 1242 err = cb(&nhi->fib6_nh, arg); in nexthop_for_each_fib6_nh() 1248 err = cb(&nhi->fib6_nh, arg); in nexthop_for_each_fib6_nh() 2549 struct fib6_nh *fib6_nh = &nhi->fib6_nh; in nh_create_ipv6() local 2572 ipv6_stub->fib6_nh_release(fib6_nh); in nh_create_ipv6() [all …]
|
A D | fib_semantics.c | 1059 struct fib6_nh fib6_nh = {}; in fib_check_nh_v6_gw() local 1062 err = ipv6_stub->fib6_nh_init(net, &fib6_nh, &cfg, GFP_KERNEL, extack); in fib_check_nh_v6_gw() 1064 nh->fib_nh_dev = fib6_nh.fib_nh_dev; in fib_check_nh_v6_gw() 1070 ipv6_stub->fib6_nh_release(&fib6_nh); in fib_check_nh_v6_gw()
|
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_router.c | 3224 struct fib6_nh *fib6_nh = mlxsw_sp_rt6->rt->fib6_nh; in mlxsw_sp_nexthop6_group_cmp() local 3228 ifindex = fib6_nh->fib_nh_dev->ifindex; in mlxsw_sp_nexthop6_group_cmp() 3229 weight = fib6_nh->fib_nh_weight; in mlxsw_sp_nexthop6_group_cmp() 3230 gw = &fib6_nh->fib_nh_gw6; in mlxsw_sp_nexthop6_group_cmp() 3297 struct fib6_nh *fib6_nh = mlxsw_sp_rt6->rt->fib6_nh; in mlxsw_sp_nexthop6_group_hash() local 3777 struct fib6_nh *fib6_nh = mlxsw_sp_rt6->rt->fib6_nh; in __mlxsw_sp_nexthop6_group_offload_refresh() local 3782 fib6_nh->fib_nh_flags |= RTNH_F_OFFLOAD; in __mlxsw_sp_nexthop6_group_offload_refresh() 5516 &rt->fib6_nh->fib_nh_gw6)) in mlxsw_sp_rt6_nexthop() 6464 struct fib6_nh *fib6_nh = mlxsw_sp_rt6->rt->fib6_nh; in mlxsw_sp_rt6_destroy() local 6497 return rt->fib6_nh->fib_nh_dev && in mlxsw_sp_nexthop6_ipip_type() [all …]
|
/linux-6.3-rc2/drivers/net/ethernet/marvell/prestera/ |
A D | prestera_router.c | 198 if (!fi->fib6_nh->nh_common.nhc_gw_family) in __prestera_fi6_is_direct() 332 return &fen6_info->rt->fib6_nh->nh_common; in prestera_kern_fib_info_nhc() 337 return &iter->fib6_nh->nh_common; in prestera_kern_fib_info_nhc()
|