Lines Matching refs:fq
73 struct inet_frag_queue *fq = ptr; in inet_frags_free_cb() local
79 if (!del_timer(&fq->timer)) in inet_frags_free_cb()
82 spin_lock_bh(&fq->lock); in inet_frags_free_cb()
83 if (!(fq->flags & INET_FRAG_COMPLETE)) { in inet_frags_free_cb()
84 fq->flags |= INET_FRAG_COMPLETE; in inet_frags_free_cb()
85 refcount_dec(&fq->refcnt); in inet_frags_free_cb()
87 spin_unlock_bh(&fq->lock); in inet_frags_free_cb()
89 inet_frag_put(fq); in inet_frags_free_cb()
100 void inet_frag_kill(struct inet_frag_queue *fq) in inet_frag_kill() argument
102 if (del_timer(&fq->timer)) in inet_frag_kill()
103 refcount_dec(&fq->refcnt); in inet_frag_kill()
105 if (!(fq->flags & INET_FRAG_COMPLETE)) { in inet_frag_kill()
106 struct netns_frags *nf = fq->net; in inet_frag_kill()
108 fq->flags |= INET_FRAG_COMPLETE; in inet_frag_kill()
109 rhashtable_remove_fast(&nf->rhashtable, &fq->node, nf->f->rhash_params); in inet_frag_kill()
110 refcount_dec(&fq->refcnt); in inet_frag_kill()
207 struct inet_frag_queue *fq; in inet_frag_find() local
214 fq = rhashtable_lookup(&nf->rhashtable, key, nf->f->rhash_params); in inet_frag_find()
215 if (fq) { in inet_frag_find()
216 if (!refcount_inc_not_zero(&fq->refcnt)) in inet_frag_find()
217 fq = NULL; in inet_frag_find()
219 return fq; in inet_frag_find()