Home
last modified time | relevance | path

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

/Linux-v4.19/net/ipv4/
Dgre_demux.c65 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument
71 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header()
74 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
81 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header()
84 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header()
Dfib_semantics.c467 int nhs = 0; in fib_count_nexthops() local
470 nhs++; in fib_count_nexthops()
478 nhs = 0; in fib_count_nexthops()
481 return nhs; in fib_count_nexthops()
1034 int nhs = 1; in fib_create_info() local
1054 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); in fib_create_info()
1055 if (nhs == 0) in fib_create_info()
1082 fi = kzalloc(sizeof(*fi)+nhs*sizeof(struct fib_nh), GFP_KERNEL); in fib_create_info()
1105 fi->fib_nhs = nhs; in fib_create_info()
1206 if (nhs != 1) { in fib_create_info()
/Linux-v4.19/net/decnet/
Ddn_fib.c153 int nhs = 0, nhlen = nla_len(attr); in dn_fib_count_nhs() local
156 nhs++; in dn_fib_count_nhs()
161 return nhlen > 0 ? 0 : nhs; in dn_fib_count_nhs()
273 int nhs = 1; in dn_fib_create_info() local
282 (nhs = dn_fib_count_nhs(attrs[RTA_MULTIPATH])) == 0) in dn_fib_create_info()
285 fi = kzalloc(sizeof(*fi)+nhs*sizeof(struct dn_fib_nh), GFP_KERNEL); in dn_fib_create_info()
291 fi->fib_nhs = nhs; in dn_fib_create_info()
342 if (!attrs[RTA_GATEWAY] || nhs != 1 || attrs[RTA_OIF]) in dn_fib_create_info()
363 if (nhs != 1 || nh->nh_gw) in dn_fib_create_info()
/Linux-v4.19/net/ipv6/
Dicmp.c606 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument
614 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach()
627 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
642 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
644 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
645 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
/Linux-v4.19/include/linux/
Dicmpv6.h22 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
/Linux-v4.19/net/mpls/
Daf_mpls.c840 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
1008 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1014 nhs = 1; in mpls_route_add()
[all …]
/Linux-v4.19/mm/
Dhugetlb.c2652 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local
2655 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()
2673 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local
2675 if (!nhs->hugepages_kobj) in hugetlb_unregister_node()
2680 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node()
2681 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node()
2682 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node()
2686 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node()
2687 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node()
2698 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local
[all …]
/Linux-v4.19/include/net/
Dgre.h38 bool *csum_err, __be16 proto, int nhs);
/Linux-v4.19/net/ipv4/netfilter/
Dipt_SYNPROXY.c314 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument
316 struct net *net = nhs->net; in ipv4_synproxy_hook()
/Linux-v4.19/net/ipv6/netfilter/
Dip6t_SYNPROXY.c329 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument
331 struct net *net = nhs->net; in ipv6_synproxy_hook()