Lines Matching refs:q

139 	fq = container_of(frag, struct frag_queue, q);  in nf_ct_frag6_expire()
141 ip6frag_expire_frag_queue(fq->q.fqdir->net, fq); in nf_ct_frag6_expire()
156 struct inet_frag_queue *q; in fq_find() local
158 q = inet_frag_find(nf_frag->fqdir, &key); in fq_find()
159 if (!q) in fq_find()
162 return container_of(q, struct frag_queue, q); in fq_find()
175 if (fq->q.flags & INET_FRAG_COMPLETE) { in nf_ct_frag6_queue()
205 if (end < fq->q.len || in nf_ct_frag6_queue()
206 ((fq->q.flags & INET_FRAG_LAST_IN) && end != fq->q.len)) { in nf_ct_frag6_queue()
210 fq->q.flags |= INET_FRAG_LAST_IN; in nf_ct_frag6_queue()
211 fq->q.len = end; in nf_ct_frag6_queue()
221 inet_frag_kill(&fq->q); in nf_ct_frag6_queue()
224 if (end > fq->q.len) { in nf_ct_frag6_queue()
226 if (fq->q.flags & INET_FRAG_LAST_IN) { in nf_ct_frag6_queue()
230 fq->q.len = end; in nf_ct_frag6_queue()
252 prev = fq->q.fragments_tail; in nf_ct_frag6_queue()
253 err = inet_frag_queue_insert(&fq->q, skb, offset, end); in nf_ct_frag6_queue()
266 fq->q.stamp = skb->tstamp; in nf_ct_frag6_queue()
267 fq->q.mono_delivery_time = skb->mono_delivery_time; in nf_ct_frag6_queue()
268 fq->q.meat += skb->len; in nf_ct_frag6_queue()
270 if (payload_len > fq->q.max_size) in nf_ct_frag6_queue()
271 fq->q.max_size = payload_len; in nf_ct_frag6_queue()
272 add_frag_mem_limit(fq->q.fqdir, skb->truesize); in nf_ct_frag6_queue()
279 fq->q.flags |= INET_FRAG_FIRST_IN; in nf_ct_frag6_queue()
282 if (fq->q.flags == (INET_FRAG_FIRST_IN | INET_FRAG_LAST_IN) && in nf_ct_frag6_queue()
283 fq->q.meat == fq->q.len) { in nf_ct_frag6_queue()
301 inet_frag_kill(&fq->q); in nf_ct_frag6_queue()
321 inet_frag_kill(&fq->q); in nf_ct_frag6_reasm()
327 reasm_data = inet_frag_reasm_prepare(&fq->q, skb, prev_tail); in nf_ct_frag6_reasm()
332 sizeof(struct ipv6hdr) + fq->q.len - in nf_ct_frag6_reasm()
350 inet_frag_reasm_finish(&fq->q, skb, reasm_data, false); in nf_ct_frag6_reasm()
356 IP6CB(skb)->frag_max_size = sizeof(struct ipv6hdr) + fq->q.max_size; in nf_ct_frag6_reasm()
365 fq->q.rb_fragments = RB_ROOT; in nf_ct_frag6_reasm()
366 fq->q.fragments_tail = NULL; in nf_ct_frag6_reasm()
367 fq->q.last_run_head = NULL; in nf_ct_frag6_reasm()
372 inet_frag_kill(&fq->q); in nf_ct_frag6_reasm()
480 spin_lock_bh(&fq->q.lock); in nf_ct_frag6_gather()
488 spin_unlock_bh(&fq->q.lock); in nf_ct_frag6_gather()
489 inet_frag_put(&fq->q); in nf_ct_frag6_gather()