Home
last modified time | relevance | path

Searched refs:num_nh (Results 1 – 3 of 3) sorted by relevance

/linux/include/net/
H A Dnexthop.h132 u16 num_nh; member
141 struct nh_grp_entry nh_entries[] __counted_by(num_nh);
204 u16 num_nh; member
207 struct nh_notifier_grp_entry_info nh_entries[] __counted_by(num_nh);
230 u16 num_nh; member
232 struct nh_notifier_grp_hw_stats_entry_info stats[] __counted_by(num_nh);
331 rc = nh_grp->num_nh; in nexthop_num_path()
343 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()
356 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
378 if (nh_grp->num_nh > 1) in nexthop_is_blackhole()
[all …]
/linux/net/ipv4/
H A Dnexthop.c137 u16 num_nh = nhg->num_nh; in nh_notifier_mpath_info_init() local
141 info->nh_grp = kzalloc_flex(*info->nh_grp, nh_entries, num_nh); in nh_notifier_mpath_info_init()
145 info->nh_grp->num_nh = num_nh; in nh_notifier_mpath_info_init()
149 for (i = 0; i < num_nh; i++) { in nh_notifier_mpath_info_init()
487 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_free_group()
548 static struct nh_group *nexthop_grp_alloc(u16 num_nh) in nexthop_grp_alloc() argument
552 nhg = kzalloc_flex(*nhg, nh_entries, num_nh); in nexthop_grp_alloc()
554 nhg->num_nh = num_nh; in nexthop_grp_alloc()
718 nhg->num_nh); in nh_notifier_grp_hw_stats_init()
722 info->nh_grp_hw_stats->num_nh = nhg->num_nh; in nh_notifier_grp_hw_stats_init()
[all …]
/linux/net/mpls/
H A Daf_mpls.c536 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc() argument
542 size = sizeof(*rt) + num_nh * nh_size; in mpls_rt_alloc()
550 rt->rt_nhn = num_nh; in mpls_rt_alloc()
551 rt->rt_nhn_alive = num_nh; in mpls_rt_alloc()