Lines Matching refs:num_nh

123 	u16 num_nh = nhg->num_nh;  in nh_notifier_mpath_info_init()  local
127 info->nh_grp = kzalloc(struct_size(info->nh_grp, nh_entries, num_nh), in nh_notifier_mpath_info_init()
132 info->nh_grp->num_nh = num_nh; in nh_notifier_mpath_info_init()
135 for (i = 0; i < num_nh; i++) { in nh_notifier_mpath_info_init()
473 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_free_group()
532 static struct nh_group *nexthop_grp_alloc(u16 num_nh) in nexthop_grp_alloc() argument
536 nhg = kzalloc(struct_size(nhg, nh_entries, num_nh), GFP_KERNEL); in nexthop_grp_alloc()
538 nhg->num_nh = num_nh; in nexthop_grp_alloc()
660 size_t len = nhg->num_nh * sizeof(*p); in nla_put_nh_group()
678 for (i = 0; i < nhg->num_nh; ++i) { in nla_put_nh_group()
786 size_t sz = sizeof(struct nexthop_grp) * nhg->num_nh; in nh_nlmsg_size_grp()
1160 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_select_path_hthr()
1238 for (i = 0; i < nhg->num_nh; i++) { in nexthop_for_each_fib6_nh()
1641 for (i = 0; i < nhg->num_nh; ++i) in nh_res_group_rebalance()
1644 for (i = 0; i < nhg->num_nh; ++i) { in nh_res_group_rebalance()
1678 for (j = 0; j < nhg->num_nh; j++) { in nh_res_table_migrate_buckets()
1720 for (i = 0; i < nhg->num_nh; ++i) in nh_hthr_group_rebalance()
1723 for (i = 0; i < nhg->num_nh; ++i) { in nh_hthr_group_rebalance()
1749 if (nhg->num_nh == 1) { in remove_nh_grp_entry()
1759 newg->num_nh = nhg->num_nh; in remove_nh_grp_entry()
1764 for (i = 0, j = 0; i < nhg->num_nh; ++i) { in remove_nh_grp_entry()
1769 newg->num_nh--; in remove_nh_grp_entry()
1825 int i, num_nh = nhg->num_nh; in remove_nexthop_group() local
1827 for (i = 0; i < num_nh; ++i) { in remove_nexthop_group()
1923 for (i = 0; i < nhg->num_nh; i++) { in nh_rt_cache_flush()
1998 for (i = 0; i < newg->num_nh; i++) in replace_nexthop_grp()
2011 for (i = 0; i < oldg->num_nh; i++) in replace_nexthop_grp()
2026 for (i = 0; i < nhg->num_nh; i++) { in nh_group_v4_update()
2413 u16 num_nh = nla_len(grps_attr) / sizeof(*entry); in nexthop_create_group() local
2419 if (WARN_ON(!num_nh)) in nexthop_create_group()
2428 nhg = nexthop_grp_alloc(num_nh); in nexthop_create_group()
2435 nhg->spare = nexthop_grp_alloc(num_nh); in nexthop_create_group()
2443 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_create_group()