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()
1802 struct ipq *__single fp = NULL; in ip_reass()
1832 head = &ipq[hash]; in ip_reass()
1858 struct ipq *__single fq = TAILQ_LAST(head, ipqhead); in ip_reass()
1861 struct ipq *__single r = TAILQ_LAST(&ipq[i], ipqhead); in ip_reass()
1864 frag_freef(&ipq[i], r, DROP_REASON_IP_FRAG_TOO_MANY); in ip_reass()
2250 frag_freef(struct ipqhead *fhp, struct ipq *fp, drop_reason_t drop_reason) in frag_freef()
2275 struct ipq *__single fp; in frag_timeout()
2287 for (fp = TAILQ_FIRST(&ipq[i]); fp;) { in frag_timeout()
2288 struct ipq *__single fpp; in frag_timeout()
2294 frag_freef(&ipq[i], fpp, DROP_REASON_IP_FRAG_TIMEOUT); in frag_timeout()
2306 !TAILQ_EMPTY(&ipq[i])) { in frag_timeout()
2308 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_timeout()
2309 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DROPPED); in frag_timeout()
2340 while (!TAILQ_EMPTY(&ipq[i])) { in frag_drain()
2342 TAILQ_FIRST(&ipq[i])->ipq_nfrags; in frag_drain()
2343 frag_freef(&ipq[i], TAILQ_FIRST(&ipq[i]), DROP_REASON_IP_FRAG_DRAINED); in frag_drain()
2349 static struct ipq *
2352 struct ipq *__single fp; in ipq_alloc()
2363 fp = kalloc_type(struct ipq, Z_NOWAIT | Z_ZERO); in ipq_alloc()
2371 ipq_free(struct ipq *fp) in ipq_free()
2373 kfree_type(struct ipq, fp); in ipq_free()