Lines Matching defs:ifq
1060 struct ifclassq *ifq;
1068 ifq = &ifp->if_snd;
1069 IFCQ_LOCK(ifq);
1070 if (IFCQ_ALTQ(ifq)->altq_type != ALTQT_NONE)
1071 error = altq_enable(IFCQ_ALTQ(ifq));
1074 if (error == 0 && ifp != NULL && ALTQ_IS_ENABLED(IFCQ_ALTQ(ifq))) {
1087 error = ifclassq_tbr_set(ifq, &tb, TRUE);
1089 } else if (IFCQ_TBR_IS_ENABLED(ifq)) {
1090 error = ifclassq_tbr_set(ifq, &tb, TRUE);
1093 IFCQ_UNLOCK(ifq);
1102 struct ifclassq *ifq;
1114 ifq = &ifp->if_snd;
1115 IFCQ_LOCK(ifq);
1116 if (altq->altq_disc != IFCQ_ALTQ(ifq)->altq_disc) {
1117 IFCQ_UNLOCK(ifq);
1121 error = altq_disable(IFCQ_ALTQ(ifq));
1123 if (error == 0 && IFCQ_TBR_IS_ENABLED(ifq)) {
1126 error = ifclassq_tbr_set(ifq, &tb, TRUE);
1128 IFCQ_UNLOCK(ifq);