/linux-master/net/ipv4/ |
H A D | gre_demux.c | 63 bool *csum_err, __be16 proto, int nhs) 69 if (unlikely(!pskb_may_pull(skb, nhs + sizeof(struct gre_base_hdr)))) 72 greh = (struct gre_base_hdr *)(skb->data + nhs); 79 if (!pskb_may_pull(skb, nhs + hdr_len)) 82 greh = (struct gre_base_hdr *)(skb->data + nhs); 117 val = skb_header_pointer(skb, nhs + hdr_len, 135 if (!pskb_may_pull(skb, nhs + hdr_len + sizeof(*ershdr))) 138 ershdr = (struct erspan_base_hdr *)(skb->data + nhs + hdr_len); 62 gre_parse_header(struct sk_buff *skb, struct tnl_ptk_info *tpi, bool *csum_err, __be16 proto, int nhs) argument
|
H A D | fib_semantics.c | 473 unsigned int nhs = fib_info_num_path(fi); local 481 if (nhs) { 483 /* Also handles the special case nhs == 1 */ 506 payload += nla_total_size((nhs * nhsize) + nh_encapsize); 660 int nhs = 0; local 663 nhs++; 671 nhs = 0; 674 return nhs; 1392 int nhs = 1; local 1424 nhs 1783 unsigned int nhs = fib_info_num_path(fri->fi); local [all...] |
H A D | nexthop.c | 171 size = struct_size(info->nh_res_table, nhs, num_nh_buckets); 187 __nh_notifier_single_info_init(&info->nh_res_table->nhs[i],
|
/linux-master/include/net/netfilter/ |
H A D | nf_synproxy.h | 64 const struct nf_hook_state *nhs); 79 const struct nf_hook_state *nhs);
|
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lag/ |
H A D | mp.c | 127 int i, ldev_idx, nhs; local 129 nhs = fib_info_num_path(fi); 132 for (; i < nhs; i++) { 140 for (; i < nhs; i++) {
|
/linux-master/include/linux/ |
H A D | icmpv6.h | 52 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type,
|
/linux-master/net/ipv6/ |
H A D | icmp.c | 648 * @nhs is the size of the tunnel header(s) : 652 int ip6_err_gen_icmpv6_unreach(struct sk_buff *skb, int nhs, int type, argument 660 if (!pskb_may_pull(skb, nhs + sizeof(struct ipv6hdr) + 8)) 673 skb_pull(skb2, nhs); 688 __skb_push(skb2, nhs); 690 memmove(skb2->data, skb2->data + nhs, data_len - nhs); 691 memset(skb2->data + data_len - nhs, 0, nhs);
|
/linux-master/include/net/ |
H A D | gre.h | 38 bool *csum_err, __be16 proto, int nhs);
|
H A D | nexthop.h | 217 struct nh_notifier_single_info nhs[] __counted_by(num_nh_buckets);
|
/linux-master/drivers/net/ethernet/marvell/prestera/ |
H A D | prestera_router.c | 343 * valid index must be produced by nhs, which checks list length 585 int i, nhs, err; local 590 nhs = prestera_kern_fib_info_nhs(&fc->info); 591 if (nhs > PRESTERA_NHGR_SIZE_MAX) 594 for (i = 0; i < nhs; i++) { 662 int i, nhs; local 664 nhs = prestera_kern_fib_info_nhs(&fibc->info); 665 for (i = 0; i < nhs; i++) {
|
H A D | prestera_hw.h | 272 struct prestera_neigh_info *nhs, u32 grp_id);
|
H A D | prestera_hw.c | 2092 struct prestera_neigh_info *nhs, u32 grp_id) 2099 req.nh[i].is_active = nhs[i].connected; 2100 memcpy(&req.nh[i].mac, nhs[i].ha, ETH_ALEN); 2101 err = prestera_iface_to_msg(&nhs[i].iface, &req.nh[i].oif); 2091 prestera_hw_nh_entries_set(struct prestera_switch *sw, int count, struct prestera_neigh_info *nhs, u32 grp_id) argument
|
/linux-master/net/mpls/ |
H A D | af_mpls.c | 841 u8 nhs = 0; local 874 if (nhs == 255) 876 nhs++; 882 return remaining > 0 ? 0 : nhs; 893 u8 nhs = 0; local 929 nhs++; 932 rt->rt_nhn = nhs; 973 u8 nhs; local 1009 nhs = mpls_count_nexthops(cfg->rc_mp, cfg->rc_mp_len, 1015 nhs [all...] |
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | fib_offload.sh | 266 local nhs
|
/linux-master/drivers/net/netdevsim/ |
H A D | fib.c | 91 unsigned int nhs; member in struct:nsim_fib6_rt 507 fib6_rt->nhs++; 532 fib6_rt->nhs--; 788 if (fib6_event->nrt6 != fib6_rt->nhs) {
|
/linux-master/net/netfilter/ |
H A D | nf_synproxy_core.c | 640 const struct nf_hook_state *nhs) 642 struct net *net = nhs->net; 1057 const struct nf_hook_state *nhs) 1059 struct net *net = nhs->net; 639 ipv4_synproxy_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *nhs) argument 1056 ipv6_synproxy_hook(void *priv, struct sk_buff *skb, const struct nf_hook_state *nhs) argument
|
/linux-master/mm/ |
H A D | hugetlb.c | 4444 struct node_hstate *nhs = &node_hstates[nid]; local 4447 if (nhs->hstate_kobjs[i] == kobj) { 4465 struct node_hstate *nhs = &node_hstates[node->dev.id]; local 4467 if (!nhs->hugepages_kobj) 4472 struct kobject *hstate_kobj = nhs->hstate_kobjs[idx]; 4480 nhs->hstate_kobjs[idx] = NULL; 4483 kobject_put(nhs->hugepages_kobj); 4484 nhs->hugepages_kobj = NULL; 4495 struct node_hstate *nhs = &node_hstates[node->dev.id]; local 4501 if (nhs [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_router.c | 5027 nh = &nh_res_table->nhs[i]; 5180 unsigned int nhs; local 5185 nhs = 1; 5188 nhs = info->nh_grp->num_nh; 5192 nhs = info->nh_res_table->num_nh_buckets; 5200 nhgi = kzalloc(struct_size(nhgi, nexthops, nhs), GFP_KERNEL); 5207 nhgi->count = nhs; 5227 nh_obj = &info->nh_res_table->nhs[i]; 5776 unsigned int nhs = fib_info_num_path(nh_grp->ipv4.fi); local 5781 nhgi = kzalloc(struct_size(nhgi, nexthops, nhs), GFP_KERNE [all...] |