Lines Matching refs:ipq

155 static struct ipq *ipq_alloc(void);
156 static void ipq_free(struct ipq *);
173 static TAILQ_HEAD(ipqhead, ipq) ipq[IPREASS_NHASH]; /* ip reassembly queues */
396 static void frag_freef(struct ipqhead *, struct ipq *, drop_reason_t);
529 TAILQ_INIT(&ipq[i]); in ip_init()
2205 struct ipq *__single fp = NULL; in ip_reass()
2235 head = &ipq[hash]; in ip_reass()
2261 struct ipq *__single fq = TAILQ_LAST(head, ipqhead); in ip_reass()
2264 struct ipq *__single r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
2267 frag_freef(&ipq[i], r, DROP_REASON_IP_FRAG_TOO_MANY); in ip_reass()
2653 frag_freef(struct ipqhead *fhp, struct ipq *fp, drop_reason_t drop_reason) in frag_freef()
2678 struct ipq *__single fp; in frag_timeout()
2690 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2691 struct ipq *__single fpp; in frag_timeout()
2697 frag_freef(&ipq[i], fpp, DROP_REASON_IP_FRAG_TIMEOUT); in frag_timeout()
2709 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2711 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2712 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DROPPED); in frag_timeout()
2743 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2745 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2746 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DRAINED); in frag_drain()
2752 static struct ipq *
2755 struct ipq *__single fp; in ipq_alloc()
2766 fp = kalloc_type(struct ipq, Z_NOWAIT | Z_ZERO); in ipq_alloc()
2774 ipq_free(struct ipq *fp) in ipq_free()
2776 kfree_type(struct ipq, fp); in ipq_free()