Lines Matching defs:ifq
1063 struct ifclassq *ifq;
1071 ifq = &ifp->if_snd;
1072 IFCQ_LOCK(ifq);
1073 if (IFCQ_ALTQ(ifq)->altq_type != ALTQT_NONE)
1074 error = altq_enable(IFCQ_ALTQ(ifq));
1077 if (error == 0 && ifp != NULL && ALTQ_IS_ENABLED(IFCQ_ALTQ(ifq))) {
1090 error = ifclassq_tbr_set(ifq, &tb, TRUE);
1092 } else if (IFCQ_TBR_IS_ENABLED(ifq)) {
1093 error = ifclassq_tbr_set(ifq, &tb, TRUE);
1096 IFCQ_UNLOCK(ifq);
1105 struct ifclassq *ifq;
1117 ifq = &ifp->if_snd;
1118 IFCQ_LOCK(ifq);
1119 if (altq->altq_disc != IFCQ_ALTQ(ifq)->altq_disc) {
1120 IFCQ_UNLOCK(ifq);
1124 error = altq_disable(IFCQ_ALTQ(ifq));
1126 if (error == 0 && IFCQ_TBR_IS_ENABLED(ifq)) {
1129 error = ifclassq_tbr_set(ifq, &tb, TRUE);
1131 IFCQ_UNLOCK(ifq);