/Linux-v5.15/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 | 461 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local 469 if (nhs) { in fib_nlmsg_size() 494 payload += nla_total_size((nhs * nhsize) + nh_encapsize); 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() 1352 int nhs = 1; in fib_create_info() local 1384 nhs = 0; in fib_create_info() 1389 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); in fib_create_info() [all …]
|
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-v5.15/net/decnet/ |
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-v5.15/include/net/netfilter/ |
D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag_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-v5.15/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()
|
/Linux-v5.15/net/mpls/ |
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 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-v5.15/include/linux/ |
D | icmpv6.h | 52 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
|
/Linux-v5.15/include/net/ |
D | gre.h | 38 bool *csum_err, __be16 proto, int nhs);
|
D | nexthop.h | 203 struct nh_notifier_single_info nhs[]; member
|
/Linux-v5.15/mm/ |
D | hugetlb.c | 3527 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local 3530 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate() 3548 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local 3550 if (!nhs->hugepages_kobj) in hugetlb_unregister_node() 3555 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node() 3556 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node() 3557 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node() 3561 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node() 3562 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node() 3573 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local [all …]
|
/Linux-v5.15/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()
|
/Linux-v5.15/drivers/net/netdevsim/ |
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-v5.15/tools/testing/selftests/drivers/net/mlxsw/ |
D | fib_offload.sh | 266 local nhs
|
/Linux-v5.15/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 4585 nh = &nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_res_group_validate() 4740 unsigned int nhs; in mlxsw_sp_nexthop_obj_group_info_init() local 4745 nhs = 1; in mlxsw_sp_nexthop_obj_group_info_init() 4748 nhs = info->nh_grp->num_nh; in mlxsw_sp_nexthop_obj_group_info_init() 4751 nhs = info->nh_res_table->num_nh_buckets; in mlxsw_sp_nexthop_obj_group_info_init() 4758 nhgi = kzalloc(struct_size(nhgi, nexthops, nhs), GFP_KERNEL); in mlxsw_sp_nexthop_obj_group_info_init() 4765 nhgi->count = nhs; in mlxsw_sp_nexthop_obj_group_info_init() 4781 nh_obj = &info->nh_res_table->nhs[i]; in mlxsw_sp_nexthop_obj_group_info_init() 5205 unsigned int nhs = fib_info_num_path(nh_grp->ipv4.fi); in mlxsw_sp_nexthop4_group_info_init() local 5210 nhgi = kzalloc(struct_size(nhgi, nexthops, nhs), GFP_KERNEL); in mlxsw_sp_nexthop4_group_info_init() [all …]
|