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 */
392 static void frag_freef(struct ipqhead *, struct ipq *, drop_reason_t);
524 TAILQ_INIT(&ipq[i]); in ip_init()
1837 struct ipq *__single fp = NULL; in ip_reass()
1867 head = &ipq[hash]; in ip_reass()
1893 struct ipq *__single fq = TAILQ_LAST(head, ipqhead); in ip_reass()
1896 struct ipq *__single r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
1899 frag_freef(&ipq[i], r, DROP_REASON_IP_FRAG_TOO_MANY); in ip_reass()
2285 frag_freef(struct ipqhead *fhp, struct ipq *fp, drop_reason_t drop_reason) in frag_freef()
2310 struct ipq *__single fp; in frag_timeout()
2322 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2323 struct ipq *__single fpp; in frag_timeout()
2329 frag_freef(&ipq[i], fpp, DROP_REASON_IP_FRAG_TIMEOUT); in frag_timeout()
2341 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2343 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2344 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DROPPED); in frag_timeout()
2375 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2377 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2378 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DRAINED); in frag_drain()
2384 static struct ipq *
2387 struct ipq *__single fp; in ipq_alloc()
2398 fp = kalloc_type(struct ipq, Z_NOWAIT | Z_ZERO); in ipq_alloc()
2406 ipq_free(struct ipq *fp) in ipq_free()
2408 kfree_type(struct ipq, fp); in ipq_free()