Lines Matching refs:cl_q

361 		if (!qempty(cl->cl_q))
399 cl->cl_q = malloc(sizeof(class_queue_t), M_DEVBUF, M_NOWAIT | M_ZERO);
400 if (cl->cl_q == NULL)
407 qlimit(cl->cl_q) = qlimit;
408 qtype(cl->cl_q) = Q_DROPTAIL;
409 qlen(cl->cl_q) = 0;
410 qsize(cl->cl_q) = 0;
439 qlimit(cl->cl_q) * 10/100,
440 qlimit(cl->cl_q) * 30/100,
443 qtype(cl->cl_q) = Q_RED;
450 qtype(cl->cl_q) = Q_RIO;
459 qtype(cl->cl_q) = Q_CODEL;
543 if (q_is_rio(cl->cl_q))
547 if (q_is_red(cl->cl_q))
551 if (q_is_codel(cl->cl_q))
561 if (cl->cl_q != NULL)
562 free(cl->cl_q, M_DEVBUF);
586 if (!qempty(cl->cl_q))
617 if (q_is_rio(cl->cl_q))
621 if (q_is_red(cl->cl_q))
625 if (q_is_codel(cl->cl_q))
643 free(cl->cl_q, M_DEVBUF);
725 if (qlen(cl->cl_q) == 1)
824 if (!qempty(cl->cl_q)) {
827 next_len = m_pktlen(qhead(cl->cl_q));
847 if (q_is_rio(cl->cl_q))
848 return rio_addq((rio_t *)cl->cl_red, cl->cl_q,
852 if (q_is_red(cl->cl_q))
853 return red_addq(cl->cl_red, cl->cl_q, m, cl->cl_pktattr);
856 if (q_is_codel(cl->cl_q))
857 return codel_addq(cl->cl_codel, cl->cl_q, m);
859 if (qlen(cl->cl_q) >= qlimit(cl->cl_q)) {
867 _addq(cl->cl_q, m);
876 if (q_is_rio(cl->cl_q))
877 return rio_getq((rio_t *)cl->cl_red, cl->cl_q);
880 if (q_is_red(cl->cl_q))
881 return red_getq(cl->cl_red, cl->cl_q);
884 if (q_is_codel(cl->cl_q))
885 return codel_getq(cl->cl_codel, cl->cl_q);
887 return _getq(cl->cl_q);
893 return qhead(cl->cl_q);
901 if (qempty(cl->cl_q))
904 while ((m = _getq(cl->cl_q)) != NULL) {
910 ASSERT(qlen(cl->cl_q) == 0);
1079 go_passive = qempty(cl->cl_q);
1656 sp->qlength = qlen(cl->cl_q);
1657 sp->qlimit = qlimit(cl->cl_q);
1662 sp->qtype = qtype(cl->cl_q);
1664 if (q_is_red(cl->cl_q))
1668 if (q_is_rio(cl->cl_q))
1672 if (q_is_codel(cl->cl_q))
1800 if (!qempty(cl->cl_q))
1822 if (!qempty(cl->cl_q))
1852 if (!qempty(cl->cl_q)) {
1854 update_ed(cl, m_pktlen(qhead(cl->cl_q)));