Home
last modified time | relevance | path

Searched refs:hsize (Results 1 – 6 of 6) sorted by relevance

/net/xfrm/
Dxfrm_device.c24 unsigned int hsize) in __xfrm_transport_prep() argument
36 unsigned int hsize) in __xfrm_mode_tunnel_prep() argument
42 skb->transport_header = skb->network_header + hsize; in __xfrm_mode_tunnel_prep()
49 unsigned int hsize) in __xfrm_mode_beet_prep() argument
55 skb->transport_header = skb->network_header + hsize; in __xfrm_mode_beet_prep()
64 pskb_pull(skb, skb->mac_len + hsize + (x->props.header_len - phlen)); in __xfrm_mode_beet_prep()
/net/netfilter/ipset/
Dip_set_hash_gen.h108 size_t hsize; in htable_size() local
113 hsize = jhash_size(hbits); in htable_size()
115 < hsize) in htable_size()
118 return hsize * sizeof(struct hbucket *) + sizeof(struct htable); in htable_size()
626 size_t hsize, dsize = set->dsize; in mtype_resize() local
652 hsize = htable_size(htable_bits); in mtype_resize()
653 if (!hsize) in mtype_resize()
655 t = ip_set_alloc(hsize); in mtype_resize()
1470 size_t hsize; in IPSET_TOKEN() local
1552 hsize = sizeof(*h); in IPSET_TOKEN()
[all …]
/net/tipc/
Dmsg.c82 u32 hsize, u32 dnode) in tipc_msg_init() argument
84 memset(m, 0, hsize); in tipc_msg_init()
87 msg_set_hdr_sz(m, hsize); in tipc_msg_init()
88 msg_set_size(m, hsize); in tipc_msg_init()
91 if (hsize > SHORT_H_SIZE) { in tipc_msg_init()
Dmsg.h1161 u32 hsize, u32 destnode);
/net/netfilter/
Dnf_conntrack_core.c741 unsigned int bucket, hsize; in ____nf_conntrack_find() local
744 nf_conntrack_get_ht(&ct_hash, &hsize); in ____nf_conntrack_find()
745 bucket = reciprocal_scale(hash, hsize); in ____nf_conntrack_find()
1300 unsigned int hash, hsize; in nf_conntrack_tuple_taken() local
1308 nf_conntrack_get_ht(&ct_hash, &hsize); in nf_conntrack_tuple_taken()
1309 hash = __hash_conntrack(net, tuple, nf_ct_zone_id(zone, IP_CT_DIR_REPLY), hsize); in nf_conntrack_tuple_taken()
1412 unsigned int hsize, drops; in early_drop() local
1415 nf_conntrack_get_ht(&ct_hash, &hsize); in early_drop()
1417 bucket = reciprocal_scale(hash, hsize); in early_drop()
1419 bucket = (bucket + 1) % hsize; in early_drop()
/net/core/
Dskbuff.c4551 int hsize; in skb_segment() local
4562 hsize = skb_headlen(head_skb) - offset; in skb_segment()
4564 if (hsize <= 0 && i >= nfrags && skb_headlen(list_skb) && in skb_segment()
4597 hsize = skb_end_offset(nskb); in skb_segment()
4603 nskb->truesize += skb_end_offset(nskb) - hsize; in skb_segment()
4607 if (hsize < 0) in skb_segment()
4608 hsize = 0; in skb_segment()
4609 if (hsize > len || !sg) in skb_segment()
4610 hsize = len; in skb_segment()
4612 nskb = __alloc_skb(hsize + doffset + headroom, in skb_segment()
[all …]