Searched refs:num_nh (Results 1 – 3 of 3) sorted by relevance
67 for (i = 0; i < nhg->num_nh; ++i) in nexthop_free_mpath()115 static struct nh_group *nexthop_grp_alloc(u16 num_nh) in nexthop_grp_alloc() argument119 + sizeof(struct nh_grp_entry) * num_nh; in nexthop_grp_alloc()124 nhg->num_nh = num_nh; in nexthop_grp_alloc()180 size_t len = nhg->num_nh * sizeof(*p); in nla_put_nh_group()196 for (i = 0; i < nhg->num_nh; ++i) { in nla_put_nh_group()286 size_t sz = sizeof(struct nexthop_grp) * nhg->num_nh; in nh_nlmsg_size_grp()490 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_select_path()532 for (i = 0; i < nhg->num_nh; i++) { in nexthop_for_each_fib6_nh()682 for (i = 0; i < nhg->num_nh; ++i) in nh_group_rebalance()[all …]
73 u16 num_nh; member143 rc = nh_grp->num_nh; in nexthop_num_path()157 if (nhsel >= nhg->num_nh) in nexthop_mpath_select()170 for (i = 0; i < nhg->num_nh; i++) { in nexthop_mpath_fill_node()
508 static struct mpls_route *mpls_rt_alloc(u8 num_nh, u8 max_alen, u8 max_labels) in mpls_rt_alloc() argument514 size = sizeof(*rt) + num_nh * nh_size; in mpls_rt_alloc()522 rt->rt_nhn = num_nh; in mpls_rt_alloc()523 rt->rt_nhn_alive = num_nh; in mpls_rt_alloc()