Searched refs:nhs (Results 1 – 6 of 6) sorted by relevance
151 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local156 nhs++; in dn_fib_count_nhs()160 return nhs; in dn_fib_count_nhs()269 int nhs = 1; in dn_fib_create_info() local278 (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) in dn_fib_create_info()281 fi = kzalloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL); in dn_fib_create_info()287 fi->fib_nhs = nhs; in dn_fib_create_info()338 if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) in dn_fib_create_info()359 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
632 int nhs = 0; in mpls_count_nexthops() local658 nhs++; in mpls_count_nexthops()663 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()672 int nhs = 0; in mpls_nh_build_multi() local706 nhs++; in mpls_nh_build_multi()709 rt->rt_nhn = nhs; in mpls_nh_build_multi()725 int nhs; in mpls_route_add() local763 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()765 if (nhs == 0) in mpls_route_add()769 rt = mpls_rt_alloc(nhs, max_via_alen); in mpls_route_add()
459 int nhs = 0; in fib_count_nexthops() local462 nhs++; in fib_count_nexthops()467 return remaining > 0 ? 0 : nhs; in fib_count_nexthops()996 int nhs = 1; in fib_create_info() local1008 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len); in fib_create_info()1009 if (nhs == 0) in fib_create_info()1036 fi = kzalloc(sizeof(*fi)+nhs*sizeof(struct fib_nh), GFP_KERNEL); in fib_create_info()1055 fi->fib_nhs = nhs; in fib_create_info()1139 if (nhs != 1 || nh->nh_gw) in fib_create_info()
2514 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local2517 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()2535 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local2537 if (!nhs->hugepages_kobj) in hugetlb_unregister_node()2542 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node()2543 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node()2544 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node()2548 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node()2549 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node()2579 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local[all …]
308 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument310 struct synproxy_net *snet = synproxy_pernet(nhs->net); in ipv4_synproxy_hook()
321 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument323 struct synproxy_net *snet = synproxy_pernet(nhs->net); in ipv6_synproxy_hook()