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()
1173 for (i = 0; i < nhg->num_nh; i++) { in nexthop_select_path_fdb()
1194 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_select_path_hthr()
1261 for (i = 0; i < nhg->num_nh; i++) { in nexthop_for_each_fib6_nh()
1664 for (i = 0; i < nhg->num_nh; ++i) in nh_res_group_rebalance()
1667 for (i = 0; i < nhg->num_nh; ++i) { in nh_res_group_rebalance()
1701 for (j = 0; j < nhg->num_nh; j++) { in nh_res_table_migrate_buckets()
1743 for (i = 0; i < nhg->num_nh; ++i) in nh_hthr_group_rebalance()
1746 for (i = 0; i < nhg->num_nh; ++i) { in nh_hthr_group_rebalance()
1772 if (nhg->num_nh == 1) { in remove_nh_grp_entry()
1782 newg->num_nh = nhg->num_nh; in remove_nh_grp_entry()
1787 for (i = 0, j = 0; i < nhg->num_nh; ++i) { in remove_nh_grp_entry()
1792 newg->num_nh--; in remove_nh_grp_entry()
1848 int i, num_nh = nhg->num_nh; in remove_nexthop_group() local
1850 for (i = 0; i < num_nh; ++i) { in remove_nexthop_group()
1946 for (i = 0; i < nhg->num_nh; i++) { in nh_rt_cache_flush()
2021 for (i = 0; i < newg->num_nh; i++) in replace_nexthop_grp()
2034 for (i = 0; i < oldg->num_nh; i++) in replace_nexthop_grp()
2049 for (i = 0; i < nhg->num_nh; i++) { in nh_group_v4_update()
2436 u16 num_nh = nla_len(grps_attr) / sizeof(*entry); in nexthop_create_group() local
2442 if (WARN_ON(!num_nh)) in nexthop_create_group()
2451 nhg = nexthop_grp_alloc(num_nh); in nexthop_create_group()
2458 nhg->spare = nexthop_grp_alloc(num_nh); in nexthop_create_group()
2466 for (i = 0; i < nhg->num_nh; ++i) { in nexthop_create_group()