Home
last modified time | relevance | path

Searched refs:nhs (Results 1 - 25 of 31) sorted by relevance

12

/kernel/linux/linux-5.10/net/ipv4/
H A Dgre_demux.c63 bool *csum_err, __be16 proto, int nhs) in gre_parse_header()
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()
62 gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, bool *csum_err, __be16 proto, int nhs) gre_parse_header() argument
H A Dfib_semantics.c473 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local
481 if (nhs) { in fib_nlmsg_size()
483 /* Also handles the special case nhs == 1 */ in fib_nlmsg_size()
506 payload += nla_total_size((nhs * nhsize) + nh_encapsize); in fib_nlmsg_size()
659 int nhs = 0; in fib_count_nexthops() local
662 nhs++; in fib_count_nexthops()
670 nhs = 0; in fib_count_nexthops()
673 return nhs; in fib_count_nexthops()
1412 int nhs = 1; in fib_create_info() local
1444 nhs in fib_create_info()
1802 unsigned int nhs = fib_info_num_path(fri->fi); fib_dump_info() local
[all...]
/kernel/linux/linux-6.6/net/ipv4/
H A Dgre_demux.c63 bool *csum_err, __be16 proto, int nhs) in gre_parse_header()
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()
62 gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, bool *csum_err, __be16 proto, int nhs) gre_parse_header() argument
H A Dfib_semantics.c473 unsigned int nhs = fib_info_num_path(fi); in fib_nlmsg_size() local
481 if (nhs) { in fib_nlmsg_size()
483 /* Also handles the special case nhs == 1 */ in fib_nlmsg_size()
506 payload += nla_total_size((nhs * nhsize) + nh_encapsize); in fib_nlmsg_size()
660 int nhs = 0; in fib_count_nexthops() local
663 nhs++; in fib_count_nexthops()
671 nhs = 0; in fib_count_nexthops()
674 return nhs; in fib_count_nexthops()
1392 int nhs = 1; in fib_create_info() local
1424 nhs in fib_create_info()
1783 unsigned int nhs = fib_info_num_path(fri->fi); fib_dump_info() local
[all...]
/kernel/linux/linux-5.10/include/net/netfilter/
H A Dnf_synproxy.h64 const struct nf_hook_state *nhs);
79 const struct nf_hook_state *nhs);
/kernel/linux/linux-6.6/include/net/netfilter/
H A Dnf_synproxy.h64 const struct nf_hook_state *nhs);
79 const struct nf_hook_state *nhs);
/kernel/linux/linux-5.10/drivers/net/ethernet/mellanox/mlx5/core/
H A Dlag_mp.c116 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-6.6/drivers/net/ethernet/mellanox/mlx5/core/lag/
H A Dmp.c127 int i, ldev_idx, nhs; in mlx5_lag_get_next_fib_dev() local
129 nhs = fib_info_num_path(fi); in mlx5_lag_get_next_fib_dev()
132 for (; i < nhs; i++) { in mlx5_lag_get_next_fib_dev()
140 for (; i < nhs; i++) { in mlx5_lag_get_next_fib_dev()
/kernel/linux/linux-5.10/net/ipv6/
H A Dicmp.c652 * @nhs is the size of the tunnel header(s) :
656 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument
664 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach()
677 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
692 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
694 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
695 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
/kernel/linux/linux-6.6/net/ipv6/
H A Dicmp.c648 * @nhs is the size of the tunnel header(s) :
652 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, in ip6_err_gen_icmpv6_unreach() argument
660 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) in ip6_err_gen_icmpv6_unreach()
673 skb_pull(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
688 __skb_push(skb2, nhs); in ip6_err_gen_icmpv6_unreach()
690 memmove(skb2->data, skb2->data + nhs, data_len - nhs); in ip6_err_gen_icmpv6_unreach()
691 memset(skb2->data + data_len - nhs, 0, nhs); in ip6_err_gen_icmpv6_unreach()
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/prestera/
H A Dprestera_router.c343 * valid index must be produced by nhs, which checks list length in prestera_kern_fib_info_nhc()
585 int i, nhs, err; in __prestera_kern_fib_cache_create_nhs() local
590 nhs = prestera_kern_fib_info_nhs(&fc->info); in __prestera_kern_fib_cache_create_nhs()
591 if (nhs > PRESTERA_NHGR_SIZE_MAX) in __prestera_kern_fib_cache_create_nhs()
594 for (i = 0; i < nhs; i++) { in __prestera_kern_fib_cache_create_nhs()
662 int i, nhs; in __prestera_k_arb_fib_nh_offload_set() local
664 nhs = prestera_kern_fib_info_nhs(&fibc->info); in __prestera_k_arb_fib_nh_offload_set()
665 for (i = 0; i < nhs; i++) { in __prestera_k_arb_fib_nh_offload_set()
H A Dprestera_hw.h272 struct prestera_neigh_info *nhs, u32 grp_id);
/kernel/linux/linux-5.10/net/mpls/
H A Daf_mpls.c838 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 in mpls_route_add()
[all...]
/kernel/linux/linux-6.6/net/mpls/
H A Daf_mpls.c841 u8 nhs = 0; in mpls_count_nexthops() local
874 if (nhs == 255) in mpls_count_nexthops()
876 nhs++; in mpls_count_nexthops()
882 return remaining > 0 ? 0 : nhs; in mpls_count_nexthops()
893 u8 nhs = 0; in mpls_nh_build_multi() local
929 nhs++; in mpls_nh_build_multi()
932 rt->rt_nhn = nhs; in mpls_nh_build_multi()
973 u8 nhs; in mpls_route_add() local
1009 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, in mpls_route_add()
1015 nhs in mpls_route_add()
[all...]
/kernel/linux/linux-5.10/include/net/
H A Dgre.h38 bool *csum_err, __be16 proto, int nhs);
/kernel/linux/linux-5.10/include/linux/
H A Dicmpv6.h52 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
/kernel/linux/linux-6.6/include/linux/
H A Dicmpv6.h52 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
/kernel/linux/linux-6.6/include/net/
H A Dgre.h38 bool *csum_err, __be16 proto, int nhs);
/kernel/linux/linux-5.10/drivers/net/netdevsim/
H A Dfib.c74 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/mm/
H A Dhugetlb.c3084 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 in hugetlb_register_node() local
[all...]
/kernel/linux/linux-5.10/net/netfilter/
H A Dnf_synproxy_core.c663 const struct nf_hook_state *nhs) in ipv4_synproxy_hook()
665 struct net *net = nhs->net; in ipv4_synproxy_hook()
1080 const struct nf_hook_state *nhs) in ipv6_synproxy_hook()
1082 struct net *net = nhs->net; in ipv6_synproxy_hook()
662 ipv4_synproxy_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *nhs) ipv4_synproxy_hook() argument
1079 ipv6_synproxy_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *nhs) ipv6_synproxy_hook() argument
/kernel/linux/linux-6.6/drivers/net/netdevsim/
H A Dfib.c91 unsigned int nhs; member
507 fib6_rt->nhs++; in nsim_fib6_rt_nh_add()
532 fib6_rt->nhs--; in nsim_fib6_rt_nh_del()
788 if (fib6_event->nrt6 != fib6_rt->nhs) { in nsim_fib6_rt_remove()
/kernel/linux/linux-6.6/net/netfilter/
H A Dnf_synproxy_core.c640 const struct nf_hook_state *nhs) in ipv4_synproxy_hook()
642 struct net *net = nhs->net; in ipv4_synproxy_hook()
1057 const struct nf_hook_state *nhs) in ipv6_synproxy_hook()
1059 struct net *net = nhs->net; in ipv6_synproxy_hook()
639 ipv4_synproxy_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *nhs) ipv4_synproxy_hook() argument
1056 ipv6_synproxy_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *nhs) ipv6_synproxy_hook() argument
/kernel/linux/linux-6.6/mm/
H A Dhugetlb.c4096 struct node_hstate *nhs = &node_hstates[nid]; in kobj_to_node_hstate() local
4099 if (nhs->hstate_kobjs[i] == kobj) { in kobj_to_node_hstate()
4117 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_unregister_node() local
4119 if (!nhs->hugepages_kobj) in hugetlb_unregister_node()
4124 struct kobject *hstate_kobj = nhs->hstate_kobjs[idx]; in hugetlb_unregister_node()
4132 nhs->hstate_kobjs[idx] = NULL; in hugetlb_unregister_node()
4135 kobject_put(nhs->hugepages_kobj); in hugetlb_unregister_node()
4136 nhs->hugepages_kobj = NULL; in hugetlb_unregister_node()
4147 struct node_hstate *nhs = &node_hstates[node->dev.id]; in hugetlb_register_node() local
4153 if (nhs in hugetlb_register_node()
[all...]
/kernel/linux/linux-5.10/tools/testing/selftests/drivers/net/mlxsw/
H A Dfib_offload.sh266 local nhs

Completed in 37 milliseconds

12