| /linux/mm/ |
| H A D | hugetlb_sysfs.c | 378 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local 381 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate() 399 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local 401 if (!nhs->hugepages_kobj) in hugetlb_unregister_node() 406 struct kobject *hstate_kobj = nhs->hstate_kobjs[idx]; in hugetlb_unregister_node() 414 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node() 417 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node() 418 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node() 429 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local 435 if (nhs->hugepages_kobj) in hugetlb_register_node() [all …]
|
| /linux/include/net/netfilter/ |
| H A D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
| /linux/net/ipv6/ |
| H A D | icmp.c | 858 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument 866 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach() 882 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 897 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 899 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 900 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_router.c | 585 int i, nhs, err; in __prestera_kern_fib_cache_create_nhs() local 590 nhs = prestera_kern_fib_info_nhs(&fc->info); in __prestera_kern_fib_cache_create_nhs() 591 if (nhs > PRESTERA_NHGR_SIZE_MAX) in __prestera_kern_fib_cache_create_nhs() 594 for (i = 0; i < nhs; i++) { in __prestera_kern_fib_cache_create_nhs() 662 int i, nhs; in __prestera_k_arb_fib_nh_offload_set() local 664 nhs = prestera_kern_fib_info_nhs(&fibc->info); in __prestera_k_arb_fib_nh_offload_set() 665 for (i = 0; i < nhs; i++) { in __prestera_k_arb_fib_nh_offload_set()
|
| H A D | prestera_hw.h | 272 struct prestera_neigh_info *nhs, u32 grp_id);
|
| H A D | prestera_hw.c | 2089 struct prestera_neigh_info *nhs, u32 grp_id) in prestera_hw_nh_entries_set() argument 2096 req.nh[i].is_active = nhs[i].connected; in prestera_hw_nh_entries_set() 2097 memcpy(&req.nh[i].mac, nhs[i].ha, ETH_ALEN); in prestera_hw_nh_entries_set() 2098 err = prestera_iface_to_msg(&nhs[i].iface, &req.nh[i].oif); in prestera_hw_nh_entries_set()
|
| /linux/include/net/ |
| H A D | gre.h | 38 bool *csum_err, __be16 proto, int nhs);
|
| H A D | nexthop.h | 219 struct nh_notifier_single_info nhs[] __counted_by(num_nh_buckets);
|
| /linux/net/mpls/ |
| H A D | af_mpls.c | 873 u8 nhs = 0; in mpls_count_nexthops() local 906 if (nhs == 255) in mpls_count_nexthops() 908 nhs++; in mpls_count_nexthops() 914 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops() 1002 u8 nhs; in mpls_route_add() local 1037 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add() 1043 nhs = 1; in mpls_route_add() 1046 if (nhs == 0) { in mpls_route_add() 1051 rt = mpls_rt_alloc(nhs, max_via_alen, max_labels); in mpls_route_add()
|
| /linux/drivers/net/netdevsim/ |
| H A D | fib.c | 91 unsigned int nhs; member 507 fib6_rt->nhs++; in nsim_fib6_rt_nh_add() 532 fib6_rt->nhs--; in nsim_fib6_rt_nh_del() 788 if (fib6_event->nrt6 != fib6_rt->nhs) { in nsim_fib6_rt_remove()
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | fib_offload.sh | 266 local nhs
|
| /linux/drivers/net/ethernet/mellanox/mlxsw/ |
| H A D | spectrum_router.c | 5026 nh = &nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_res_group_validate() 5179 unsigned int nhs; in mlxsw_sp_nexthop_obj_group_info_init() local 5184 nhs = 1; in mlxsw_sp_nexthop_obj_group_info_init() 5187 nhs = info->nh_grp->num_nh; in mlxsw_sp_nexthop_obj_group_info_init() 5191 nhs = info->nh_res_table->num_nh_buckets; in mlxsw_sp_nexthop_obj_group_info_init() 5199 nhgi = kzalloc_flex(*nhgi, nexthops, nhs); in mlxsw_sp_nexthop_obj_group_info_init() 5206 nhgi->count = nhs; in mlxsw_sp_nexthop_obj_group_info_init() 5226 nh_obj = &info->nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_group_info_init() 5775 unsigned int nhs = fib_info_num_path(nh_grp->ipv4.fi); in mlxsw_sp_nexthop4_group_info_init() local 5780 nhgi = kzalloc_flex(*nhgi, nexthops, nhs); in mlxsw_sp_nexthop4_group_info_init() [all …]
|
| /linux/net/ipv4/ |
| H A D | nexthop.c | 170 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init() 186 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
|