Lines Matching refs:nf
92 void inet_frags_exit_net(struct netns_frags *nf) in inet_frags_exit_net() argument
94 nf->high_thresh = 0; /* prevent creation of new frags */ in inet_frags_exit_net()
96 rhashtable_free_and_destroy(&nf->rhashtable, inet_frags_free_cb, NULL); in inet_frags_exit_net()
106 struct netns_frags *nf = fq->net; in inet_frag_kill() local
109 rhashtable_remove_fast(&nf->rhashtable, &fq->node, nf->f->rhash_params); in inet_frag_kill()
129 struct netns_frags *nf; in inet_frag_destroy() local
138 nf = q->net; in inet_frag_destroy()
139 f = nf->f; in inet_frag_destroy()
155 sub_frag_mem_limit(nf, sum); in inet_frag_destroy()
159 static struct inet_frag_queue *inet_frag_alloc(struct netns_frags *nf, in inet_frag_alloc() argument
169 q->net = nf; in inet_frag_alloc()
171 add_frag_mem_limit(nf, f->qsize); in inet_frag_alloc()
180 static struct inet_frag_queue *inet_frag_create(struct netns_frags *nf, in inet_frag_create() argument
183 struct inet_frags *f = nf->f; in inet_frag_create()
187 q = inet_frag_alloc(nf, f, arg); in inet_frag_create()
191 mod_timer(&q->timer, jiffies + nf->timeout); in inet_frag_create()
193 err = rhashtable_insert_fast(&nf->rhashtable, &q->node, in inet_frag_create()
205 struct inet_frag_queue *inet_frag_find(struct netns_frags *nf, void *key) in inet_frag_find() argument
209 if (!nf->high_thresh || frag_mem_limit(nf) > nf->high_thresh) in inet_frag_find()
214 fq = rhashtable_lookup(&nf->rhashtable, key, nf->f->rhash_params); in inet_frag_find()
223 return inet_frag_create(nf, key); in inet_frag_find()