/kernel/linux/linux-5.10/net/ipv4/ |
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()
|
D | fib_semantics.c | 471 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local 479 if (nhs) { in fib_nlmsg_size() 504 payload += nla_total_size((nhs * nhsize) + nh_encapsize); in fib_nlmsg_size() 657 int nhs = 0; in fib_count_nexthops() local 660 nhs++; in fib_count_nexthops() 668 nhs = 0; in fib_count_nexthops() 671 return nhs; in fib_count_nexthops() 1405 int nhs = 1; in fib_create_info() local 1437 nhs = 0; in fib_create_info() 1442 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); in fib_create_info() [all …]
|
/kernel/linux/linux-5.10/net/decnet/ |
D | dn_fib.c | 153 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(struct_size(fi, fib_nh, nhs), 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()
|
/kernel/linux/linux-5.10/include/net/netfilter/ |
D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag_mp.c | 116 unsigned int nhs; in mlx5_lag_fib_route_event() local 131 nhs = fib_info_num_path(fi); in mlx5_lag_fib_route_event() 132 if (nhs == 1) { in mlx5_lag_fib_route_event() 149 if (nhs != 2) in mlx5_lag_fib_route_event()
|
/kernel/linux/linux-5.10/net/ipv6/ |
D | icmp.c | 653 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument 661 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach() 674 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 689 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 691 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 692 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
|
/kernel/linux/linux-5.10/net/mpls/ |
D | af_mpls.c | 838 u8 nhs = 0; in mpls_count_nexthops() local 871 if (nhs == 255) in mpls_count_nexthops() 873 nhs++; in mpls_count_nexthops() 879 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops() 890 u8 nhs = 0; in mpls_nh_build_multi() local 926 nhs++; in mpls_nh_build_multi() 929 rt->rt_nhn = nhs; in mpls_nh_build_multi() 970 u8 nhs; in mpls_route_add() local 1006 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add() 1012 nhs = 1; in mpls_route_add() [all …]
|
/kernel/linux/linux-5.10/include/linux/ |
D | icmpv6.h | 52 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
D | fib.c | 74 unsigned int nhs; member 437 fib6_rt->nhs++; in nsim_fib6_rt_nh_add() 451 fib6_rt->nhs--; in nsim_fib6_rt_nh_del() 687 if (fen6_info->nsiblings + 1 != fib6_rt->nhs) { in nsim_fib6_rt_remove()
|
/kernel/linux/linux-5.10/include/net/ |
D | gre.h | 38 bool *csum_err, __be16 proto, int nhs);
|
/kernel/linux/linux-5.10/mm/ |
D | hugetlb.c | 3084 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local 3087 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate() 3105 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local 3107 if (!nhs->hugepages_kobj) in hugetlb_unregister_node() 3112 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node() 3113 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node() 3114 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node() 3118 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node() 3119 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node() 3130 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local [all …]
|
/kernel/linux/linux-5.10/net/netfilter/ |
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()
|
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/ |
D | fib_offload.sh | 266 local nhs
|
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 4013 unsigned int nhs = fib_info_num_path(fi); in mlxsw_sp_nexthop4_group_create() local 4020 nh_grp = kzalloc(struct_size(nh_grp, nexthops, nhs), GFP_KERNEL); in mlxsw_sp_nexthop4_group_create() 4028 nh_grp->count = nhs; in mlxsw_sp_nexthop4_group_create()
|