Home
last modified time | relevance | path

Searched refs:qdisc (Results 1 – 25 of 65) sorted by relevance

123

/external/libnl/lib/route/
Dqdisc.c34 struct rtnl_qdisc *qdisc; in qdisc_msg_parser() local
37 if (!(qdisc = rtnl_qdisc_alloc())) in qdisc_msg_parser()
40 if ((err = rtnl_tc_msg_parse(n, TC_CAST(qdisc))) < 0) in qdisc_msg_parser()
43 err = pp->pp_cb(OBJ_CAST(qdisc), pp); in qdisc_msg_parser()
45 rtnl_qdisc_put(qdisc); in qdisc_msg_parser()
77 void rtnl_qdisc_put(struct rtnl_qdisc *qdisc) in rtnl_qdisc_put() argument
79 nl_object_put((struct nl_object *) qdisc); in rtnl_qdisc_put()
89 static int build_qdisc_msg(struct rtnl_qdisc *qdisc, int type, int flags, in build_qdisc_msg() argument
92 if (!(qdisc->ce_mask & TCA_ATTR_IFINDEX)) { in build_qdisc_msg()
97 return rtnl_tc_msg_build(TC_CAST(qdisc), type, flags, result); in build_qdisc_msg()
[all …]
/external/libnl/lib/route/qdisc/
Dnetem.c296 void rtnl_netem_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_netem_set_limit() argument
300 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_limit()
312 int rtnl_netem_get_limit(struct rtnl_qdisc *qdisc) in rtnl_netem_get_limit() argument
316 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_limit()
338 void rtnl_netem_set_gap(struct rtnl_qdisc *qdisc, int gap) in rtnl_netem_set_gap() argument
342 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_gap()
354 int rtnl_netem_get_gap(struct rtnl_qdisc *qdisc) in rtnl_netem_get_gap() argument
358 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_gap()
373 void rtnl_netem_set_reorder_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_probability() argument
377 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_reorder_probability()
[all …]
Dfq_codel.c148 int rtnl_qdisc_fq_codel_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_qdisc_fq_codel_set_limit() argument
152 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_limit()
166 int rtnl_qdisc_fq_codel_get_limit(struct rtnl_qdisc *qdisc) in rtnl_qdisc_fq_codel_get_limit() argument
170 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_get_limit()
185 int rtnl_qdisc_fq_codel_set_target(struct rtnl_qdisc *qdisc, uint32_t target) in rtnl_qdisc_fq_codel_set_target() argument
189 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_target()
203 uint32_t rtnl_qdisc_fq_codel_get_target(struct rtnl_qdisc *qdisc) in rtnl_qdisc_fq_codel_get_target() argument
207 if ((fq_codel = rtnl_tc_data(TC_CAST(qdisc))) && in rtnl_qdisc_fq_codel_get_target()
220 int rtnl_qdisc_fq_codel_set_interval(struct rtnl_qdisc *qdisc, uint32_t interval) in rtnl_qdisc_fq_codel_set_interval() argument
224 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_fq_codel_set_interval()
[all …]
Dtbf.c178 void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_qdisc_tbf_set_limit() argument
182 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_limit()
218 int rtnl_qdisc_tbf_set_limit_by_latency(struct rtnl_qdisc *qdisc, int latency) in rtnl_qdisc_tbf_set_limit_by_latency() argument
223 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_limit_by_latency()
239 rtnl_qdisc_tbf_set_limit(qdisc, (int) limit); in rtnl_qdisc_tbf_set_limit_by_latency()
249 int rtnl_qdisc_tbf_get_limit(struct rtnl_qdisc *qdisc) in rtnl_qdisc_tbf_get_limit() argument
253 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_get_limit()
276 void rtnl_qdisc_tbf_set_rate(struct rtnl_qdisc *qdisc, int rate, int bucket, in rtnl_qdisc_tbf_set_rate() argument
282 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_tbf_set_rate()
302 int rtnl_qdisc_tbf_get_rate(struct rtnl_qdisc *qdisc) in rtnl_qdisc_tbf_get_rate() argument
[all …]
Dsfq.c114 void rtnl_sfq_set_quantum(struct rtnl_qdisc *qdisc, int quantum) in rtnl_sfq_set_quantum() argument
118 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_quantum()
130 int rtnl_sfq_get_quantum(struct rtnl_qdisc *qdisc) in rtnl_sfq_get_quantum() argument
134 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_quantum()
149 void rtnl_sfq_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_sfq_set_limit() argument
153 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_limit()
165 int rtnl_sfq_get_limit(struct rtnl_qdisc *qdisc) in rtnl_sfq_get_limit() argument
169 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_get_limit()
185 void rtnl_sfq_set_perturb(struct rtnl_qdisc *qdisc, int perturb) in rtnl_sfq_set_perturb() argument
189 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_sfq_set_perturb()
[all …]
Dplug.c94 int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *qdisc) in rtnl_qdisc_plug_buffer() argument
98 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_buffer()
111 int rtnl_qdisc_plug_release_one(struct rtnl_qdisc *qdisc) in rtnl_qdisc_plug_release_one() argument
115 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_release_one()
128 int rtnl_qdisc_plug_release_indefinite(struct rtnl_qdisc *qdisc) in rtnl_qdisc_plug_release_indefinite() argument
132 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_release_indefinite()
145 int rtnl_qdisc_plug_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_qdisc_plug_set_limit() argument
149 if (!(plug = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_plug_set_limit()
Ddsmark.c271 int rtnl_qdisc_dsmark_set_indices(struct rtnl_qdisc *qdisc, uint16_t indices) in rtnl_qdisc_dsmark_set_indices() argument
275 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_set_indices()
289 int rtnl_qdisc_dsmark_get_indices(struct rtnl_qdisc *qdisc) in rtnl_qdisc_dsmark_get_indices() argument
293 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_get_indices()
308 int rtnl_qdisc_dsmark_set_default_index(struct rtnl_qdisc *qdisc, in rtnl_qdisc_dsmark_set_default_index() argument
313 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_set_default_index()
327 int rtnl_qdisc_dsmark_get_default_index(struct rtnl_qdisc *qdisc) in rtnl_qdisc_dsmark_get_default_index() argument
331 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_get_default_index()
346 int rtnl_qdisc_dsmark_set_set_tc_index(struct rtnl_qdisc *qdisc, int flag) in rtnl_qdisc_dsmark_set_set_tc_index() argument
350 if (!(dsmark = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_dsmark_set_set_tc_index()
[all …]
Dprio.c129 void rtnl_qdisc_prio_set_bands(struct rtnl_qdisc *qdisc, int bands) in rtnl_qdisc_prio_set_bands() argument
133 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_set_bands()
145 int rtnl_qdisc_prio_get_bands(struct rtnl_qdisc *qdisc) in rtnl_qdisc_prio_get_bands() argument
149 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_get_bands()
165 int rtnl_qdisc_prio_set_priomap(struct rtnl_qdisc *qdisc, uint8_t priomap[], in rtnl_qdisc_prio_set_priomap() argument
171 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_set_priomap()
197 uint8_t *rtnl_qdisc_prio_get_priomap(struct rtnl_qdisc *qdisc) in rtnl_qdisc_prio_get_priomap() argument
201 if (!(prio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_prio_get_priomap()
/external/libnl/src/
Dnl-tctree-list.c81 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) obj; in print_qdisc() local
83 uint32_t parent = rtnl_tc_get_handle((struct rtnl_tc *) qdisc); in print_qdisc()
88 print_tc_childs(TC_CAST(qdisc), arg + 2); in print_qdisc()
101 struct rtnl_qdisc *qdisc; in print_link() local
110 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_ROOT); in print_link()
111 if (qdisc) { in print_link()
112 print_qdisc((struct nl_object *) qdisc, (void *) 2); in print_link()
113 rtnl_qdisc_put(qdisc); in print_link()
116 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, 0); in print_link()
117 if (qdisc) { in print_link()
[all …]
Dnl-qdisc-delete.c43 struct rtnl_qdisc *qdisc = nl_object_priv(obj); in delete_cb() local
51 if (rtnl_tc_get_handle((struct rtnl_tc *) qdisc) == 0) in delete_cb()
57 if ((err = rtnl_qdisc_delete(sock, qdisc)) < 0) in delete_cb()
70 struct rtnl_qdisc *qdisc; in main() local
79 qdisc = nl_cli_qdisc_alloc(); in main()
80 tc = (struct rtnl_tc *) qdisc; in main()
138 nl_cache_foreach_filter(qdisc_cache, OBJ_CAST(qdisc), delete_cb, NULL); in main()
Dnl-qdisc-list.c95 struct rtnl_qdisc *qdisc = nl_object_priv(obj); in list_qdisc() local
96 struct rtnl_tc *tc = (struct rtnl_tc *) qdisc; in list_qdisc()
129 struct rtnl_qdisc *qdisc; in main() local
138 qdisc = nl_cli_qdisc_alloc(); in main()
139 tc = (struct rtnl_tc *) qdisc; in main()
178 nl_cache_foreach_filter(qdisc_cache, OBJ_CAST(qdisc), list_qdisc, NULL); in main()
180 nl_cache_dump_filter(qdisc_cache, &params, OBJ_CAST(qdisc)); in main()
Dnl-qdisc-add.c51 struct rtnl_qdisc *qdisc; in main() local
68 qdisc = nl_cli_qdisc_alloc(); in main()
69 tc = (struct rtnl_tc *) qdisc; in main()
139 nl_object_dump(OBJ_CAST(qdisc), &dp); in main()
142 if ((err = rtnl_qdisc_add(sock, qdisc, flags)) < 0) in main()
/external/libnl/tests/
Dtest-complex-HTB-with-hash-filters.c282 struct rtnl_qdisc *qdisc; in qdisc_add_HTB() local
286 if (!(qdisc = rtnl_qdisc_alloc())) { in qdisc_add_HTB()
292 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); in qdisc_add_HTB()
293 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT); in qdisc_add_HTB()
297 rtnl_qdisc_delete(sock, qdisc); in qdisc_add_HTB()
302 rtnl_tc_set_handle(TC_CAST(qdisc), TC_HANDLE(1,0)); in qdisc_add_HTB()
304 if ((err = rtnl_tc_set_kind(TC_CAST(qdisc), "htb"))) { in qdisc_add_HTB()
311 rtnl_htb_set_defcls(qdisc, TC_HANDLE(1, defaultClass)); in qdisc_add_HTB()
312 rtnl_htb_set_rate2quantum(qdisc, 1); in qdisc_add_HTB()
315 if ((err = rtnl_qdisc_add(sock, qdisc, NLM_F_CREATE))) { in qdisc_add_HTB()
[all …]
Dtest-u32-filter-with-actions.c195 struct rtnl_qdisc *qdisc; in qdisc_add_ingress() local
199 if (!(qdisc = rtnl_qdisc_alloc())) { in qdisc_add_ingress()
205 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); in qdisc_add_ingress()
206 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT); in qdisc_add_ingress()
209 rtnl_qdisc_delete(sock, qdisc); in qdisc_add_ingress()
212 rtnl_tc_set_handle(TC_CAST(qdisc), TC_HANDLE(0xffff, 0)); in qdisc_add_ingress()
214 if ((err = rtnl_tc_set_kind(TC_CAST(qdisc), "ingress"))) { in qdisc_add_ingress()
220 if ((err = rtnl_qdisc_add(sock, qdisc, NLM_F_CREATE))) { in qdisc_add_ingress()
226 rtnl_qdisc_put(qdisc); in qdisc_add_ingress()
/external/iproute2/testsuite/tests/tc/
Dcbq.t2 $TC qdisc del dev $DEV root >/dev/null 2>&1
3 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
5 $TC qdisc list dev $DEV
6 $TC qdisc del dev $DEV root
7 $TC qdisc list dev $DEV
8 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
10 $TC qdisc del dev $DEV root
Dpolicer.t2 $TC qdisc del dev $DEV root >/dev/null 2>&1
3 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
6 $TC qdisc list dev $DEV
8 $TC qdisc del dev $DEV root
9 $TC qdisc list dev $DEV
10 $TC qdisc add dev $DEV root handle 10:0 cbq bandwidth 100Mbit avpkt 1400 mpu 64
13 $TC qdisc del dev $DEV root
Dcls-testbed.t21 qdisc add dev $DEV root handle 10:0 \
35 qdisc add dev $DEV root handle 10:0 htb
47 qdisc add dev $DEV root handle 20:0 \
53 qdisc add dev $DEV parent 20:0 handle 10:0 prio
61 ts_tc "cls-testbed" "tree listing" qdisc list dev eth0
69 qdisc del dev $DEV root
/external/libnl/lib/cli/qdisc/
Dfq_codel.c36 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; in fq_codel_parse_argv() local
70 rtnl_qdisc_fq_codel_set_limit(qdisc, limit); in fq_codel_parse_argv()
75 rtnl_qdisc_fq_codel_set_quantum(qdisc, quantum); in fq_codel_parse_argv()
80 rtnl_qdisc_fq_codel_set_flows(qdisc, flows); in fq_codel_parse_argv()
85 rtnl_qdisc_fq_codel_set_interval(qdisc, interval); in fq_codel_parse_argv()
90 rtnl_qdisc_fq_codel_set_target(qdisc, target); in fq_codel_parse_argv()
Dplug.c51 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; in plug_parse_argv() local
80 rtnl_qdisc_plug_set_limit(qdisc, nl_cli_parse_u32(optarg)); in plug_parse_argv()
84 rtnl_qdisc_plug_buffer(qdisc); in plug_parse_argv()
88 rtnl_qdisc_plug_release_one(qdisc); in plug_parse_argv()
92 rtnl_qdisc_plug_release_indefinite(qdisc); in plug_parse_argv()
/external/libnl/include/
DMakefile.am61 netlink/route/qdisc/cbq.h \
62 netlink/route/qdisc/dsmark.h \
63 netlink/route/qdisc/fifo.h \
64 netlink/route/qdisc/htb.h \
65 netlink/route/qdisc/netem.h \
66 netlink/route/qdisc/prio.h \
67 netlink/route/qdisc/red.h \
68 netlink/route/qdisc/sfq.h \
69 netlink/route/qdisc/tbf.h \
70 netlink/route/qdisc/plug.h \
[all …]
/external/libnl/doc/
Droute.txt587 For more information on how to modify the qdisc of a link, see section
1217 - *Queueing disciplines (qdisc)* provide a mechanism to enqueue packets
1231 - *Classifiers (cls)* are used to decide which qdisc/class the packet
1242 The default qdisc used on all network devices is `pfifo_fast`.
1244 loopback device do not have a default qdisc attached. The `pfifo_fast`
1245 qdisc provides three bands to prioritize interactive traffic over bulk
1253 qdisc is used by default. It will automatically create a separate
1259 .Example of a customized classful qdisc setup
1269 Each type traffic control module (qdisc, class, classifier) is
1288 #include <netlink/route/qdisc.h>
[all …]
/external/libnl/src/lib/
Dqdisc.c24 struct rtnl_qdisc *qdisc; in nl_cli_qdisc_alloc() local
26 if (!(qdisc = rtnl_qdisc_alloc())) in nl_cli_qdisc_alloc()
29 return qdisc; in nl_cli_qdisc_alloc()
/external/libnl/man/
DMakefile.am6 nl-qdisc-add.8 nl-qdisc-delete.8 nl-qdisc-list.8 \
/external/iproute2/doc/actions/
Difb-README46 $TC qdisc add dev ifb0 root handle 1: prio
47 $TC qdisc add dev ifb0 parent 1:1 handle 10: sfq
48 $TC qdisc add dev ifb0 parent 1:2 handle 20: tbf rate 20kbit buffer 1600 limit 3000
49 $TC qdisc add dev ifb0 parent 1:3 handle 30: sfq
55 $TC qdisc add dev eth0 ingress
99 [root@jmandrake]:~# $TC -s qdisc
100 qdisc sfq 30: dev ifb0 limit 128p quantum 1514b
102 qdisc tbf 20: dev ifb0 rate 20Kbit burst 1575b lat 2147.5s
104 qdisc sfq 10: dev ifb0 limit 128p quantum 1514b
106 qdisc prio 1: dev ifb0 bands 3 priomap 1 2 2 2 1 2 0 0 1 1 1 1 1 1 1 1
[all …]
/external/libnl/python/netlink/route/qdisc/
Dhtb.py17 def __init__(self, qdisc): argument
18 self._qdisc = qdisc
137 def init_qdisc(qdisc): argument
138 qdisc.htb = HTBQdisc(qdisc)
139 return qdisc.htb

123