Lines Matching refs:qops
131 int register_qdisc(struct Qdisc_ops *qops)
138 if (!strcmp(qops->id, q->id))
141 if (qops->enqueue == NULL)
142 qops->enqueue = noop_qdisc_ops.enqueue;
143 if (qops->peek == NULL) {
144 if (qops->dequeue == NULL)
145 qops->peek = noop_qdisc_ops.peek;
149 if (qops->dequeue == NULL)
150 qops->dequeue = noop_qdisc_ops.dequeue;
152 if (qops->cl_ops) {
153 const struct Qdisc_class_ops *cops = qops->cl_ops;
162 qops->next = NULL;
163 *qp = qops;
175 void unregister_qdisc(struct Qdisc_ops *qops)
182 if (q == qops)
191 WARN(err, "unregister qdisc(%s) failed\n", qops->id);