Lines Matching refs:ipq
150 static struct ipq *ipq_alloc(void);
151 static void ipq_free(struct ipq *);
168 static TAILQ_HEAD(ipqhead, ipq) ipq[IPREASS_NHASH]; /* ip reassembly queues */
391 static void frag_freef(struct ipqhead *, struct ipq *);
526 TAILQ_INIT(&ipq[i]); in ip_init()
2171 struct ipq *fp = NULL; in ip_reass()
2200 head = &ipq[hash]; in ip_reass()
2226 struct ipq *fq = TAILQ_LAST(head, ipqhead); in ip_reass()
2229 struct ipq *r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
2232 frag_freef(&ipq[i], r); in ip_reass()
2617 frag_freef(struct ipqhead *fhp, struct ipq *fp) in frag_freef()
2638 struct ipq *fp; in frag_timeout()
2650 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2651 struct ipq *fpp; in frag_timeout()
2657 frag_freef(&ipq[i], fpp); in frag_timeout()
2669 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2671 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2672 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_timeout()
2703 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2705 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2706 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i])); in frag_drain()
2712 static struct ipq *
2715 struct ipq *fp; in ipq_alloc()
2726 fp = kalloc_type(struct ipq, Z_NOWAIT | Z_ZERO); in ipq_alloc()
2734 ipq_free(struct ipq *fp) in ipq_free()
2736 kfree_type(struct ipq, fp); in ipq_free()