/linux/net/ipv4/ |
A D | gre_demux.c | 63 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument 69 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header() 72 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header() 79 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header() 82 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header() 117 val = skb_header_pointer(skb, nhs + hdr_len, in gre_parse_header() 135 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header() 138 ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); in gre_parse_header()
|
A D | fib_semantics.c | 469 if (nhs) { in fib_nlmsg_size() 648 int nhs = 0; in fib_count_nexthops() local 651 nhs++; in fib_count_nexthops() 659 nhs = 0; in fib_count_nexthops() 662 return nhs; in fib_count_nexthops() 1389 int nhs = 1; in fib_create_info() local 1421 nhs = 0; in fib_create_info() 1427 if (nhs == 0) in fib_create_info() 1475 fi->fib_nhs = nhs; in fib_create_info() 1533 if (nhs != 1) { in fib_create_info() [all …]
|
A D | nexthop.c | 157 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); in nh_notifier_res_table_info_init() 172 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i], in nh_notifier_res_table_info_init()
|
/linux/net/decnet/ |
A D | dn_fib.c | 152 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local 155 nhs++; in dn_fib_count_nhs() 160 return nhlen > 0 ? 0 : nhs; in dn_fib_count_nhs() 272 int nhs = 1; in dn_fib_create_info() local 281 (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) in dn_fib_create_info() 284 fi = kzalloc(struct_size(fi, fib_nh, nhs), GFP_KERNEL); in dn_fib_create_info() 290 fi->fib_nhs = nhs; in dn_fib_create_info() 341 if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) in dn_fib_create_info() 362 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
A D | mp.c | 119 unsigned int nhs; in mlx5_lag_fib_route_event() local 130 nhs = fib_info_num_path(fi); in mlx5_lag_fib_route_event() 131 if (nhs == 1) { in mlx5_lag_fib_route_event() 147 if (nhs != 2) in mlx5_lag_fib_route_event()
|
/linux/include/net/netfilter/ |
A D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
/linux/net/ipv6/ |
A D | icmp.c | 654 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument 662 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach() 675 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 690 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 692 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 693 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
|
/linux/net/mpls/ |
A D | af_mpls.c | 840 u8 nhs = 0; in mpls_count_nexthops() local 873 if (nhs == 255) in mpls_count_nexthops() 875 nhs++; in mpls_count_nexthops() 881 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops() 892 u8 nhs = 0; in mpls_nh_build_multi() local 928 nhs++; in mpls_nh_build_multi() 931 rt->rt_nhn = nhs; in mpls_nh_build_multi() 972 u8 nhs; in mpls_route_add() local 1014 nhs = 1; in mpls_route_add() 1017 if (nhs == 0) { in mpls_route_add() [all …]
|
/linux/include/linux/ |
A D | icmpv6.h | 52 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
|
/linux/include/net/ |
A D | gre.h | 38 bool *csum_err, __be16 proto, int nhs);
|
A D | nexthop.h | 203 struct nh_notifier_single_info nhs[]; member
|
/linux/mm/ |
A D | hugetlb.c | 3899 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local 3902 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate() 3922 if (!nhs->hugepages_kobj) in hugetlb_unregister_node() 3927 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node() 3928 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node() 3929 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node() 3933 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node() 3934 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node() 3948 if (nhs->hugepages_kobj) in hugetlb_register_node() 3953 if (!nhs->hugepages_kobj) in hugetlb_register_node() [all …]
|
/linux/net/netfilter/ |
A D | nf_synproxy_core.c | 663 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument 665 struct net *net = nhs->net; in ipv4_synproxy_hook() 1080 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument 1082 struct net *net = nhs->net; in ipv6_synproxy_hook()
|
/linux/drivers/net/netdevsim/ |
A D | fib.c | 88 unsigned int nhs; member 504 fib6_rt->nhs++; in nsim_fib6_rt_nh_add() 529 fib6_rt->nhs--; in nsim_fib6_rt_nh_del() 785 if (fib6_event->nrt6 != fib6_rt->nhs) { in nsim_fib6_rt_remove()
|
/linux/tools/testing/selftests/drivers/net/mlxsw/ |
A D | fib_offload.sh | 266 local nhs
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
A D | spectrum_router.c | 4706 nh = &nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_res_group_validate() 4861 unsigned int nhs; in mlxsw_sp_nexthop_obj_group_info_init() local 4866 nhs = 1; in mlxsw_sp_nexthop_obj_group_info_init() 4869 nhs = info->nh_grp->num_nh; in mlxsw_sp_nexthop_obj_group_info_init() 4872 nhs = info->nh_res_table->num_nh_buckets; in mlxsw_sp_nexthop_obj_group_info_init() 4879 nhgi = kzalloc(struct_size(nhgi, nexthops, nhs), GFP_KERNEL); in mlxsw_sp_nexthop_obj_group_info_init() 4886 nhgi->count = nhs; in mlxsw_sp_nexthop_obj_group_info_init() 4902 nh_obj = &info->nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_group_info_init() 5332 unsigned int nhs = fib_info_num_path(nh_grp->ipv4.fi); in mlxsw_sp_nexthop4_group_info_init() local 5337 nhgi = kzalloc(struct_size(nhgi, nexthops, nhs), GFP_KERNEL); in mlxsw_sp_nexthop4_group_info_init() [all …]
|