Home
last modified time | relevance | path

Searched refs:nhs (Results 1 – 6 of 6) sorted by relevance

/linux-4.4.14/net/decnet/
Ddn_fib.c151 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local
156 nhs++; in dn_fib_count_nhs()
160 return nhs; in dn_fib_count_nhs()
269 int nhs = 1; in dn_fib_create_info() local
278 (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()
/linux-4.4.14/net/mpls/
Daf_mpls.c632 int nhs = 0; in mpls_count_nexthops() local
658 nhs++; in mpls_count_nexthops()
663 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
672 int nhs = 0; in mpls_nh_build_multi() local
706 nhs++; in mpls_nh_build_multi()
709 rt->rt_nhn = nhs; in mpls_nh_build_multi()
725 int nhs; in mpls_route_add() local
763 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()
/linux-4.4.14/net/ipv4/
Dfib_semantics.c459 int nhs = 0; in fib_count_nexthops() local
462 nhs++; in fib_count_nexthops()
467 return remaining > 0 ? 0 : nhs; in fib_count_nexthops()
996 int nhs = 1; in fib_create_info() local
1008 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()
/linux-4.4.14/mm/
Dhugetlb.c2514 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local
2517 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() local
2537 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 …]
/linux-4.4.14/net/ipv4/netfilter/
Dipt_SYNPROXY.c308 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument
310 struct synproxy_net *snet = synproxy_pernet(nhs->net); in ipv4_synproxy_hook()
/linux-4.4.14/net/ipv6/netfilter/
Dip6t_SYNPROXY.c321 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument
323 struct synproxy_net *snet = synproxy_pernet(nhs->net); in ipv6_synproxy_hook()