Home
last modified time | relevance | path

Searched refs:ht (Results 1 – 15 of 15) sorted by relevance

/net/sched/
Dcls_u32.c83 struct tc_u_knode __rcu *ht[]; member
113 struct tc_u_hnode *ht = rcu_dereference_bh(tp->root); in u32_classify() local
125 n = rcu_dereference_bh(ht->ht[sel]); in u32_classify()
170 ht = rcu_dereference_bh(n->ht_down); in u32_classify()
171 if (!ht) { in u32_classify()
202 ht = rcu_dereference_bh(n->ht_down); in u32_classify()
204 if (ht->divisor) { in u32_classify()
211 sel = ht->divisor & u32_hash_fold(*data, &n->sel, in u32_classify()
244 ht = rcu_dereference_bh(n->ht_up); in u32_classify()
258 struct tc_u_hnode *ht; in u32_lookup_ht() local
[all …]
Dcls_fw.c30 struct fw_filter __rcu *ht[HTSIZE]; member
63 for (f = rcu_dereference_bh(head->ht[fw_hash(id)]); f; in fw_classify()
99 f = rtnl_dereference(head->ht[fw_hash(handle)]); in fw_get()
143 while ((f = rtnl_dereference(head->ht[h])) != NULL) { in fw_destroy()
144 RCU_INIT_POINTER(head->ht[h], in fw_destroy()
169 fp = &head->ht[fw_hash(f->id)]; in fw_delete()
185 if (rcu_access_pointer(head->ht[h])) { in fw_delete()
287 fp = &head->ht[fw_hash(fnew->id)]; in fw_change()
333 RCU_INIT_POINTER(f->next, head->ht[fw_hash(handle)]); in fw_change()
334 rcu_assign_pointer(head->ht[fw_hash(handle)], f); in fw_change()
[all …]
Dcls_route.c43 struct route4_filter __rcu *ht[16 + 16 + 1]; member
166 for (f = rcu_dereference_bh(b->ht[route4_hash_from(id)]); in route4_classify()
172 for (f = rcu_dereference_bh(b->ht[route4_hash_iif(iif)]); in route4_classify()
178 for (f = rcu_dereference_bh(b->ht[route4_hash_wild()]); in route4_classify()
234 for (f = rtnl_dereference(b->ht[h2]); in route4_get()
294 while ((f = rtnl_dereference(b->ht[h2])) != NULL) { in route4_destroy()
298 RCU_INIT_POINTER(b->ht[h2], next); in route4_destroy()
330 fp = &b->ht[from_hash(h >> 16)]; in route4_delete()
352 rt = rtnl_dereference(b->ht[i]); in route4_delete()
445 for (fp = rtnl_dereference(b->ht[h2]); in route4_set_parms()
[all …]
Dsch_sfq.c126 sfq_index *ht; /* Hash table ('divisor' slots) */ member
321 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_drop()
365 x = q->ht[hash]; in sfq_enqueue()
371 q->ht[hash] = x; in sfq_enqueue()
507 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_dequeue()
558 q->ht[slot->hash] = SFQ_EMPTY_SLOT; in sfq_rehash()
564 sfq_index x = q->ht[hash]; in sfq_rehash()
577 q->ht[hash] = x; in sfq_rehash()
729 sfq_free(q->ht); in sfq_destroy()
770 q->ht = sfq_alloc(sizeof(q->ht[0]) * q->divisor); in sfq_init()
[all …]
Dcls_flower.c89 struct rhashtable ht; member
106 struct rhashtable ht; member
262 return rhashtable_lookup_fast(&mask->ht, fl_key_get_start(mkey, mask), in __fl_lookup()
365 return rhashtable_init(&head->ht, &mask_ht_params); in fl_init()
373 rhashtable_destroy(&mask->ht); in fl_mask_free()
399 rhashtable_remove_fast(&head->ht, &mask->ht_node, mask_ht_params); in fl_mask_put()
562 rhashtable_remove_fast(&f->mask->ht, &f->ht_node, in __fl_delete()
583 rhashtable_destroy(&head->ht); in fl_destroy_sleepable()
2014 return rhashtable_init(&mask->ht, &mask->filter_ht_params); in fl_init_mask_hashtable()
2132 err = rhashtable_replace_fast(&head->ht, &mask->ht_node, in fl_create_new_mask()
[all …]
/net/netfilter/
Dxt_hashlimit.c184 hash_dst(const struct xt_hashlimit_htable *ht, const struct dsthash_dst *dst) in hash_dst() argument
188 ht->rnd); in hash_dst()
195 return reciprocal_scale(hash, ht->cfg.size); in hash_dst()
199 dsthash_find(const struct xt_hashlimit_htable *ht, in dsthash_find() argument
203 u_int32_t hash = hash_dst(ht, dst); in dsthash_find()
205 if (!hlist_empty(&ht->hash[hash])) { in dsthash_find()
206 hlist_for_each_entry_rcu(ent, &ht->hash[hash], node) in dsthash_find()
217 dsthash_alloc_init(struct xt_hashlimit_htable *ht, in dsthash_alloc_init() argument
222 spin_lock(&ht->lock); in dsthash_alloc_init()
227 ent = dsthash_find(ht, dst); in dsthash_alloc_init()
[all …]
Dnft_set_hash.c25 struct rhashtable ht; member
91 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_lookup()
109 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_get()
132 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_update()
140 prev = rhashtable_lookup_get_insert_key(&priv->ht, &arg, &he->node, in nft_rhash_update()
176 prev = rhashtable_lookup_get_insert_key(&priv->ht, &arg, &he->node, in nft_rhash_insert()
218 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_deactivate()
234 rhashtable_remove_fast(&priv->ht, &he->node, nft_rhash_params); in nft_rhash_remove()
248 he = rhashtable_lookup(&priv->ht, &arg, nft_rhash_params); in nft_rhash_delete()
265 rhashtable_walk_enter(&priv->ht, &hti); in nft_rhash_walk()
[all …]
/net/hsr/
Dhsr_main.h61 static inline void set_hsr_tag_path(struct hsr_tag *ht, u16 path) in set_hsr_tag_path() argument
63 ht->path_and_LSDU_size = in set_hsr_tag_path()
64 htons((ntohs(ht->path_and_LSDU_size) & 0x0FFF) | (path << 12)); in set_hsr_tag_path()
67 static inline void set_hsr_tag_LSDU_size(struct hsr_tag *ht, u16 LSDU_size) in set_hsr_tag_LSDU_size() argument
69 ht->path_and_LSDU_size = htons((ntohs(ht->path_and_LSDU_size) & in set_hsr_tag_LSDU_size()
/net/ipv4/
Draw_diag.c69 hlist = &hashinfo->ht[slot]; in raw_sock_get()
161 hlist = &hashinfo->ht[slot]; in raw_diag_dump()
Draw.c96 hlist = &h->ht[raw_hashfunc(sock_net(sk), inet_sk(sk)->inet_num)]; in raw_hash_sk()
172 hlist = &raw_v4_hashinfo.ht[hash]; in raw_v4_input()
276 hlist = &raw_v4_hashinfo.ht[hash]; in raw_icmp_error()
959 hlist = &h->ht[state->bucket]; in raw_get_first()
/net/netfilter/ipset/
Dip_set_hash_gen.h719 struct hbucket *ht; in mtype_resize() local
724 ht = kzalloc(sizeof(*ht) + in mtype_resize()
728 if (!ht) in mtype_resize()
733 memcpy(ht, m, sizeof(struct hbucket) + in mtype_resize()
735 ht->size = m->size + AHASH_INIT_SIZE; in mtype_resize()
740 m = ht; in mtype_resize()
741 RCU_INIT_POINTER(hbucket(t, key), ht); in mtype_resize()
/net/mac80211/
DMakefile13 ht.o agg-tx.o agg-rx.o \
/net/smc/
Dsmc_diag.c203 head = &prot->h.smc_hash->ht; in smc_diag_dump_proto()
Daf_smc.c185 head = &h->ht; in smc_hash_sk()
3510 INIT_HLIST_HEAD(&smc_v4_hashinfo.ht); in smc_init()
3511 INIT_HLIST_HEAD(&smc_v6_hashinfo.ht); in smc_init()
/net/ipv6/
Draw.c155 hlist = &raw_v6_hashinfo.ht[hash]; in ipv6_raw_deliver()
337 hlist = &raw_v6_hashinfo.ht[hash]; in raw6_icmp_error()