Home | History | Annotate | Download | only in qdisc

Lines Matching defs:plug

2  * lib/route/qdisc/plug.c		PLUG Qdisc
14 * @defgroup qdisc_plug Plug/Unplug Traffic (PLUG)
20 * 1. A simple "instantaneous" plug/unplug operation, by issuing an alternating
51 * plug(i+1) plug(i) head
68 #include <netlink/route/qdisc/plug.h>
72 struct rtnl_plug *plug = data;
75 if (!plug)
78 opts.action = plug->action;
79 opts.limit = plug->limit;
90 * Insert a plug into the qdisc and buffer any incoming
92 * @arg qdisc PLUG qdisc to be modified.
96 struct rtnl_plug *plug;
98 if (!(plug = rtnl_tc_data(TC_CAST(qdisc))))
101 plug->action = TCQ_PLUG_BUFFER;
109 * @arg qdisc PLUG qdisc to be modified.
113 struct rtnl_plug *plug;
115 if (!(plug = rtnl_tc_data(TC_CAST(qdisc))))
118 plug->action = TCQ_PLUG_RELEASE_ONE;
126 * @arg qdisc PLUG qdisc to be modified.
130 struct rtnl_plug *plug;
132 if (!(plug = rtnl_tc_data(TC_CAST(qdisc))))
135 plug->action = TCQ_PLUG_RELEASE_INDEFINITE;
140 * Set limit of PLUG qdisc.
141 * @arg qdisc PLUG qdisc to be modified.
147 struct rtnl_plug *plug;
149 if (!(plug = rtnl_tc_data(TC_CAST(qdisc))))
152 plug->action = TCQ_PLUG_LIMIT;
153 plug->limit = limit;
161 .to_kind = "plug",