Lines Matching refs:nf
219 void inet_frags_exit_net(struct netns_frags *nf, struct inet_frags *f) in inet_frags_exit_net() argument
224 nf->low_thresh = 0; in inet_frags_exit_net()
237 percpu_counter_sum(&nf->mem)) in inet_frags_exit_net()
240 percpu_counter_destroy(&nf->mem); in inet_frags_exit_net()
288 static inline void frag_kfree_skb(struct netns_frags *nf, struct inet_frags *f, in frag_kfree_skb() argument
299 struct netns_frags *nf; in inet_frag_destroy() local
307 nf = q->net; in inet_frag_destroy()
312 frag_kfree_skb(nf, f, fp); in inet_frag_destroy()
321 sub_frag_mem_limit(nf, sum); in inet_frag_destroy()
325 static struct inet_frag_queue *inet_frag_intern(struct netns_frags *nf, in inet_frag_intern() argument
339 if (qp->net == nf && f->match(qp, arg)) { in inet_frag_intern()
349 if (!mod_timer(&qp->timer, jiffies + nf->timeout)) in inet_frag_intern()
360 static struct inet_frag_queue *inet_frag_alloc(struct netns_frags *nf, in inet_frag_alloc() argument
366 if (frag_mem_limit(nf) > nf->high_thresh) { in inet_frag_alloc()
375 q->net = nf; in inet_frag_alloc()
377 add_frag_mem_limit(nf, f->qsize); in inet_frag_alloc()
386 static struct inet_frag_queue *inet_frag_create(struct netns_frags *nf, in inet_frag_create() argument
392 q = inet_frag_alloc(nf, f, arg); in inet_frag_create()
396 return inet_frag_intern(nf, q, f, arg); in inet_frag_create()
399 struct inet_frag_queue *inet_frag_find(struct netns_frags *nf, in inet_frag_find() argument
407 if (frag_mem_limit(nf) > nf->low_thresh) in inet_frag_find()
415 if (q->net == nf && f->match(q, key)) { in inet_frag_find()
425 return inet_frag_create(nf, f, key); in inet_frag_find()