Lines Matching defs:qdisc

38 #include <trace/events/qdisc.h>
50 Generally, queueing discipline ("qdisc") is a black box,
55 qdisc's are divided to two categories:
69 All real intelligent work is done inside qdisc modules.
102 returns qdisc to initial state: purge all buffers, clear all
107 initializes newly created qdisc.
111 destroys resources allocated by init and during lifetime of qdisc.
115 changes qdisc parameters.
193 WARN(err, "unregister qdisc(%s) failed\n", qops->id);
197 /* Get default qdisc if not otherwise specified */
220 /* Set new default qdisc to use */
258 /* We know handle. Find qdisc among all qdisc's attached to device
259 * (root qdisc, all its children, children of children etc.)
308 q = qdisc_match_from_root(rtnl_dereference(dev->qdisc), handle);
327 q = qdisc_match_from_root(rcu_dereference(dev->qdisc), handle);
346 NL_SET_ERR_MSG(extack, "Parent qdisc is not classful");
450 NL_SET_ERR_MSG(extack, "Failed to allocate new qdisc rate table");
610 __netif_schedule(qdisc_root(wd->qdisc));
616 void qdisc_watchdog_init_clockid(struct qdisc_watchdog *wd, struct Qdisc *qdisc,
620 wd->qdisc = qdisc;
624 void qdisc_watchdog_init(struct qdisc_watchdog *wd, struct Qdisc *qdisc)
626 qdisc_watchdog_init_clockid(wd, qdisc, CLOCK_MONOTONIC);
637 &qdisc_root_sleeping(wd->qdisc)->state);
792 /* Notify parent qdisc only if child qdisc becomes empty. */
1078 /* Graft qdisc "new" to class "classid" of qdisc "parent" or
1084 * On success, destroy old qdisc.
1154 old = rtnl_dereference(dev->qdisc);
1157 rcu_assign_pointer(dev->qdisc, new ? : &noop_qdisc);
1239 Allocate and initialize new qdisc.
1259 NL_SET_ERR_MSG(extack, "Specified qdisc kind is unknown");
1283 NL_SET_ERR_MSG(extack, "Maximum number of qdisc handles was exceeded");
1297 * to qdisc init), and then forgot to reinit tx_queue_len
1298 * before again attaching a qdisc.
1327 NL_SET_ERR_MSG(extack, "Cannot attach rate estimator to a multi-queue root qdisc");
1374 NL_SET_ERR_MSG(extack, "Change operation not supported by specified qdisc");
1464 * Delete/get qdisc.
1485 NL_SET_ERR_MSG(extack, "Failed to find qdisc with specified classid");
1493 q = rtnl_dereference(dev->qdisc);
1496 NL_SET_ERR_MSG(extack, "Cannot find specified qdisc on specified device");
1509 NL_SET_ERR_MSG(extack, "Failed to find qdisc with specified handle");
1515 NL_SET_ERR_MSG(extack, "Invalid qdisc name: must match existing qdisc");
1525 NL_SET_ERR_MSG(extack, "Cannot delete qdisc with handle of zero");
1599 NL_SET_ERR_MSG(extack, "Failed to find specified qdisc");
1609 q = rtnl_dereference(dev->qdisc);
1612 /* It may be default qdisc, ignore it */
1630 NL_SET_ERR_MSG(extack, "Cannot move an existing qdisc to a different parent");
1639 NL_SET_ERR_MSG(extack, "Invalid qdisc name: must match existing qdisc");
1667 * If the requested qdisc kind is different
1677 * then the qdisc tcm_handle is not expected
1705 /* Change qdisc parameters */
1707 NL_SET_ERR_MSG(extack, "Specified qdisc not found");
1715 NL_SET_ERR_MSG(extack, "Invalid qdisc name: must match existing qdisc");
1788 * Create/change qdisc.
1845 * If we've already dumped the top-level (ingress) qdisc above and the global
1846 * qdisc hashtable, we don't want to hit it again
1903 if (tc_dump_qdisc_root(rtnl_dereference(dev->qdisc),
2176 parent == 0:Y - parent is X:Y, where X:0 is qdisc.
2179 handle == 0:Y - class is X:Y, where X:0 is qdisc.
2184 /* Step 1. Determine qdisc handle X:0 */
2200 qid = rtnl_dereference(dev->qdisc)->handle;
2202 /* Now qid is genuine qdisc handle consistent
2211 qid = rtnl_dereference(dev->qdisc)->handle;
2214 /* OK. Locate qdisc */
2395 if (tc_dump_tclass_root(rtnl_dereference(dev->qdisc),