/Linux-v5.4/net/ipv4/ |
D | gre_demux.c | 61 bool *csum_err, __be16 proto, int nhs) in gre_parse_header() argument 67 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) in gre_parse_header() 70 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header() 77 if (!pskb_may_pull(skb, nhs + hdr_len)) in gre_parse_header() 80 greh = (struct gre_base_hdr *)(skb->data + nhs); in gre_parse_header() 127 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) in gre_parse_header()
|
D | fib_semantics.c | 463 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local 471 if (nhs) { in fib_nlmsg_size() 496 payload += nla_total_size((nhs * nhsize) + nh_encapsize); in fib_nlmsg_size() 640 int nhs = 0; in fib_count_nexthops() local 643 nhs++; in fib_count_nexthops() 651 nhs = 0; in fib_count_nexthops() 654 return nhs; in fib_count_nexthops() 1344 int nhs = 1; in fib_create_info() local 1376 nhs = 0; in fib_create_info() 1381 nhs = fib_count_nexthops(cfg->fc_mp, cfg->fc_mp_len, extack); in fib_create_info() [all …]
|
/Linux-v5.4/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()
|
/Linux-v5.4/include/net/netfilter/ |
D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlx5/core/ |
D | lag_mp.c | 115 unsigned int nhs; in mlx5_lag_fib_route_event() local 126 nhs = fib_info_num_path(fi); in mlx5_lag_fib_route_event() 127 if (nhs == 1) { in mlx5_lag_fib_route_event() 138 if (nhs != 2) in mlx5_lag_fib_route_event()
|
/Linux-v5.4/net/ipv6/ |
D | icmp.c | 612 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument 620 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach() 633 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 648 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach() 650 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach() 651 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
|
/Linux-v5.4/include/linux/ |
D | icmpv6.h | 22 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
|
/Linux-v5.4/net/mpls/ |
D | af_mpls.c | 839 u8 nhs = 0; in mpls_count_nexthops() local 872 if (nhs == 255) in mpls_count_nexthops() 874 nhs++; in mpls_count_nexthops() 880 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops() 891 u8 nhs = 0; in mpls_nh_build_multi() local 927 nhs++; in mpls_nh_build_multi() 930 rt->rt_nhn = nhs; in mpls_nh_build_multi() 971 u8 nhs; in mpls_route_add() local 1007 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add() 1013 nhs = 1; in mpls_route_add() [all …]
|
/Linux-v5.4/mm/ |
D | hugetlb.c | 2789 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local 2792 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate() 2810 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local 2812 if (!nhs->hugepages_kobj) in hugetlb_unregister_node() 2817 if (nhs->hstate_kobjs[idx]) { in hugetlb_unregister_node() 2818 kobject_put(nhs->hstate_kobjs[idx]); in hugetlb_unregister_node() 2819 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node() 2823 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node() 2824 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node() 2835 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local [all …]
|
/Linux-v5.4/include/net/ |
D | gre.h | 38 bool *csum_err, __be16 proto, int nhs);
|
/Linux-v5.4/net/netfilter/ |
D | nf_synproxy_core.c | 658 const struct nf_hook_state *nhs) in ipv4_synproxy_hook() argument 660 struct net *net = nhs->net; in ipv4_synproxy_hook() 1076 const struct nf_hook_state *nhs) in ipv6_synproxy_hook() argument 1078 struct net *net = nhs->net; in ipv6_synproxy_hook()
|
/Linux-v5.4/tools/testing/selftests/drivers/net/mlxsw/ |
D | fib_offload.sh | 266 local nhs
|
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/ |
D | spectrum_router.c | 3881 unsigned int nhs = fib_info_num_path(fi); in mlxsw_sp_nexthop4_group_create() local 3888 nh_grp = kzalloc(struct_size(nh_grp, nexthops, nhs), GFP_KERNEL); in mlxsw_sp_nexthop4_group_create() 3896 nh_grp->count = nhs; in mlxsw_sp_nexthop4_group_create()
|