Home
last modified time | relevance | path

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

/include/net/
Dact_api.h50 static inline int tcf_hashinfo_init(struct tcf_hashinfo *hf, unsigned int mask) in tcf_hashinfo_init() argument
54 spin_lock_init(&hf->lock); in tcf_hashinfo_init()
55 hf->index = 0; in tcf_hashinfo_init()
56 hf->hmask = mask; in tcf_hashinfo_init()
57 hf->htab = kzalloc((mask + 1) * sizeof(struct hlist_head), in tcf_hashinfo_init()
59 if (!hf->htab) in tcf_hashinfo_init()
62 INIT_HLIST_HEAD(&hf->htab[i]); in tcf_hashinfo_init()
66 static inline void tcf_hashinfo_destroy(struct tcf_hashinfo *hf) in tcf_hashinfo_destroy() argument
68 kfree(hf->htab); in tcf_hashinfo_destroy()