- switch (ifp->if_output_sched_model) {
- case IFNET_SCHED_MODEL_DRIVER_MANAGED:
- if (ifclassq_sched_fq_codel != 0) {
- err = pktsched_setup(ifq, PKTSCHEDT_FQ_CODEL,
- ifq->ifcq_sflags, ptype);
- } else {
- err = pktsched_setup(ifq, PKTSCHEDT_TCQ,
- ifq->ifcq_sflags, ptype);
- }
- break;
-
- case IFNET_SCHED_MODEL_NORMAL:
- if (ifclassq_sched_fq_codel != 0) {
- err = pktsched_setup(ifq, PKTSCHEDT_FQ_CODEL,
- ifq->ifcq_sflags, ptype);
- } else {
- err = pktsched_setup(ifq, PKTSCHEDT_QFQ,
- ifq->ifcq_sflags, ptype);
- }
- break;
- case IFNET_SCHED_MODEL_FQ_CODEL:
- err = pktsched_setup(ifq, PKTSCHEDT_FQ_CODEL,
- ifq->ifcq_sflags, ptype);
- break;
- default:
- VERIFY(0);
- /* NOTREACHED */
- }