Lines Matching refs:cl_q

246 		if ((cl = pif->pif_classes[pri]) != NULL && !qempty(cl->cl_q))  in priq_purge()
280 if (!qempty(cl->cl_q)) in priq_class_create()
285 if (q_is_rio(cl->cl_q)) in priq_class_create()
289 if (q_is_red(cl->cl_q)) in priq_class_create()
293 if (q_is_codel(cl->cl_q)) in priq_class_create()
302 cl->cl_q = malloc(sizeof(class_queue_t), M_DEVBUF, in priq_class_create()
304 if (cl->cl_q == NULL) in priq_class_create()
313 qlimit(cl->cl_q) = qlimit; in priq_class_create()
314 qtype(cl->cl_q) = Q_DROPTAIL; in priq_class_create()
315 qlen(cl->cl_q) = 0; in priq_class_create()
316 qsize(cl->cl_q) = 0; in priq_class_create()
346 qtype(cl->cl_q) = Q_RIO; in priq_class_create()
351 qlimit(cl->cl_q) * 10/100, in priq_class_create()
352 qlimit(cl->cl_q) * 30/100, in priq_class_create()
356 qtype(cl->cl_q) = Q_RED; in priq_class_create()
364 qtype(cl->cl_q) = Q_CODEL; in priq_class_create()
373 if (q_is_rio(cl->cl_q)) in priq_class_create()
377 if (q_is_red(cl->cl_q)) in priq_class_create()
381 if (q_is_codel(cl->cl_q)) in priq_class_create()
385 if (cl->cl_q != NULL) in priq_class_create()
386 free(cl->cl_q, M_DEVBUF); in priq_class_create()
405 if (!qempty(cl->cl_q)) in priq_class_destroy()
424 if (q_is_rio(cl->cl_q)) in priq_class_destroy()
428 if (q_is_red(cl->cl_q)) in priq_class_destroy()
432 if (q_is_codel(cl->cl_q)) in priq_class_destroy()
436 free(cl->cl_q, M_DEVBUF); in priq_class_destroy()
511 !qempty(cl->cl_q)) { in priq_dequeue()
518 if (qempty(cl->cl_q)) in priq_dequeue()
533 if (q_is_rio(cl->cl_q)) in priq_addq()
534 return rio_addq((rio_t *)cl->cl_red, cl->cl_q, m, in priq_addq()
538 if (q_is_red(cl->cl_q)) in priq_addq()
539 return red_addq(cl->cl_red, cl->cl_q, m, cl->cl_pktattr); in priq_addq()
542 if (q_is_codel(cl->cl_q)) in priq_addq()
543 return codel_addq(cl->cl_codel, cl->cl_q, m); in priq_addq()
545 if (qlen(cl->cl_q) >= qlimit(cl->cl_q)) { in priq_addq()
553 _addq(cl->cl_q, m); in priq_addq()
562 if (q_is_rio(cl->cl_q)) in priq_getq()
563 return rio_getq((rio_t *)cl->cl_red, cl->cl_q); in priq_getq()
566 if (q_is_red(cl->cl_q)) in priq_getq()
567 return red_getq(cl->cl_red, cl->cl_q); in priq_getq()
570 if (q_is_codel(cl->cl_q)) in priq_getq()
571 return codel_getq(cl->cl_codel, cl->cl_q); in priq_getq()
573 return _getq(cl->cl_q); in priq_getq()
579 return qhead(cl->cl_q); in priq_pollq()
587 if (qempty(cl->cl_q)) in priq_purgeq()
590 while ((m = _getq(cl->cl_q)) != NULL) { in priq_purgeq()
594 ASSERT(qlen(cl->cl_q) == 0); in priq_purgeq()
601 sp->qlength = qlen(cl->cl_q); in get_class_stats()
602 sp->qlimit = qlimit(cl->cl_q); in get_class_stats()
607 sp->qtype = qtype(cl->cl_q); in get_class_stats()
609 if (q_is_red(cl->cl_q)) in get_class_stats()
613 if (q_is_rio(cl->cl_q)) in get_class_stats()
617 if (q_is_codel(cl->cl_q)) in get_class_stats()