Home
last modified time | relevance | path

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

123456

/external/libnl/lib/route/
Dqdisc.c35 struct rtnl_qdisc *qdisc; in qdisc_msg_parser() local
38 if (!(qdisc = rtnl_qdisc_alloc())) in qdisc_msg_parser()
41 if ((err = rtnl_tc_msg_parse(n, TC_CAST(qdisc))) < 0) in qdisc_msg_parser()
44 err = pp->pp_cb(OBJ_CAST(qdisc), pp); in qdisc_msg_parser()
46 rtnl_qdisc_put(qdisc); in qdisc_msg_parser()
78 void rtnl_qdisc_put(struct rtnl_qdisc *qdisc) in rtnl_qdisc_put() argument
80 nl_object_put((struct nl_object *) qdisc); in rtnl_qdisc_put()
90 static int build_qdisc_msg(struct rtnl_qdisc *qdisc, int type, int flags, in build_qdisc_msg() argument
93 if (!(qdisc->ce_mask & TCA_ATTR_IFINDEX)) { in build_qdisc_msg()
98 return rtnl_tc_msg_build(TC_CAST(qdisc), type, flags, result); in build_qdisc_msg()
[all …]
/external/libnl/include/netlink/route/qdisc/
Dmqprio.h22 extern int rtnl_qdisc_mqprio_set_num_tc(struct rtnl_qdisc *qdisc, int num_tc);
23 extern int rtnl_qdisc_mqprio_get_num_tc(struct rtnl_qdisc *qdisc);
24 extern int rtnl_qdisc_mqprio_set_priomap(struct rtnl_qdisc *qdisc, uint8_t priomap[],
26 extern uint8_t *rtnl_qdisc_mqprio_get_priomap(struct rtnl_qdisc *qdisc);
27 extern int rtnl_qdisc_mqprio_hw_offload(struct rtnl_qdisc *qdisc, int offload);
28 extern int rtnl_qdisc_mqprio_get_hw_offload(struct rtnl_qdisc *qdisc);
29 extern int rtnl_qdisc_mqprio_set_queue(struct rtnl_qdisc *qdisc, uint16_t count[],
31 extern int rtnl_qdisc_mqprio_get_queue(struct rtnl_qdisc *qdisc, uint16_t *count,
33 extern int rtnl_qdisc_mqprio_set_mode(struct rtnl_qdisc *qdisc, uint16_t mode);
34 extern int rtnl_qdisc_mqprio_get_mode(struct rtnl_qdisc *qdisc);
[all …]
/external/libnl/lib/route/qdisc/
Dnetem.c352 void rtnl_netem_set_limit(struct rtnl_qdisc *qdisc, int limit) in rtnl_netem_set_limit() argument
356 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_limit()
368 int rtnl_netem_get_limit(struct rtnl_qdisc *qdisc) in rtnl_netem_get_limit() argument
372 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_limit()
394 void rtnl_netem_set_gap(struct rtnl_qdisc *qdisc, int gap) in rtnl_netem_set_gap() argument
398 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_set_gap()
410 int rtnl_netem_get_gap(struct rtnl_qdisc *qdisc) in rtnl_netem_get_gap() argument
414 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_netem_get_gap()
429 void rtnl_netem_set_reorder_probability(struct rtnl_qdisc *qdisc, int prob) in rtnl_netem_set_reorder_probability() argument
433 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 …]
Dmqprio.c225 int rtnl_qdisc_mqprio_set_num_tc(struct rtnl_qdisc *qdisc, int num_tc) in rtnl_qdisc_mqprio_set_num_tc() argument
229 if (!(mqprio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_mqprio_set_num_tc()
242 int rtnl_qdisc_mqprio_get_num_tc(struct rtnl_qdisc *qdisc) in rtnl_qdisc_mqprio_get_num_tc() argument
246 if (!(mqprio = rtnl_tc_data_peek(TC_CAST(qdisc)))) in rtnl_qdisc_mqprio_get_num_tc()
262 int rtnl_qdisc_mqprio_set_priomap(struct rtnl_qdisc *qdisc, uint8_t priomap[], in rtnl_qdisc_mqprio_set_priomap() argument
268 if (!(mqprio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_mqprio_set_priomap()
294 uint8_t *rtnl_qdisc_mqprio_get_priomap(struct rtnl_qdisc *qdisc) in rtnl_qdisc_mqprio_get_priomap() argument
298 if (!(mqprio = rtnl_tc_data_peek(TC_CAST(qdisc)))) in rtnl_qdisc_mqprio_get_priomap()
313 int rtnl_qdisc_mqprio_hw_offload(struct rtnl_qdisc *qdisc, int offload) in rtnl_qdisc_mqprio_hw_offload() argument
317 if (!(mqprio = rtnl_tc_data(TC_CAST(qdisc)))) in rtnl_qdisc_mqprio_hw_offload()
[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.c84 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) obj; in print_qdisc() local
86 uint32_t parent = rtnl_tc_get_handle((struct rtnl_tc *) qdisc); in print_qdisc()
91 print_tc_childs(TC_CAST(qdisc), (char *) arg + 2); in print_qdisc()
104 struct rtnl_qdisc *qdisc; in print_link() local
113 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_ROOT); in print_link()
114 if (qdisc) { in print_link()
115 print_qdisc((struct nl_object *) qdisc, (void *) 2); in print_link()
116 rtnl_qdisc_put(qdisc); in print_link()
119 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, 0); in print_link()
120 if (qdisc) { in print_link()
[all …]
Dnl-qdisc-delete.c46 struct rtnl_qdisc *qdisc = nl_object_priv(obj); in delete_cb() local
54 if (rtnl_tc_get_handle((struct rtnl_tc *) qdisc) == 0) in delete_cb()
60 if ((err = rtnl_qdisc_delete(sock, qdisc)) < 0) in delete_cb()
73 struct rtnl_qdisc *qdisc; in main() local
82 qdisc = nl_cli_qdisc_alloc(); in main()
83 tc = (struct rtnl_tc *) qdisc; in main()
141 nl_cache_foreach_filter(qdisc_cache, OBJ_CAST(qdisc), delete_cb, NULL); in main()
Dnl-qdisc-list.c99 struct rtnl_qdisc *qdisc = nl_object_priv(obj); in list_qdisc() local
100 struct rtnl_tc *tc = (struct rtnl_tc *) qdisc; in list_qdisc()
133 struct rtnl_qdisc *qdisc; in main() local
142 qdisc = nl_cli_qdisc_alloc(); in main()
143 tc = (struct rtnl_tc *) qdisc; in main()
182 nl_cache_foreach_filter(qdisc_cache, OBJ_CAST(qdisc), list_qdisc, NULL); in main()
184 nl_cache_dump_filter(qdisc_cache, &params, OBJ_CAST(qdisc)); in main()
Dnl-qdisc-add.c54 struct rtnl_qdisc *qdisc; in main() local
71 qdisc = nl_cli_qdisc_alloc(); in main()
72 tc = (struct rtnl_tc *) qdisc; in main()
142 nl_object_dump(OBJ_CAST(qdisc), &dp); in main()
145 if ((err = rtnl_qdisc_add(sock, qdisc, flags)) < 0) in main()
/external/libnl/tests/
Dtest-complex-HTB-with-hash-filters.c285 struct rtnl_qdisc *qdisc; in qdisc_add_HTB() local
289 if (!(qdisc = rtnl_qdisc_alloc())) { in qdisc_add_HTB()
295 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); in qdisc_add_HTB()
296 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT); in qdisc_add_HTB()
300 rtnl_qdisc_delete(sock, qdisc); in qdisc_add_HTB()
305 rtnl_tc_set_handle(TC_CAST(qdisc), TC_HANDLE(1,0)); in qdisc_add_HTB()
307 if ((err = rtnl_tc_set_kind(TC_CAST(qdisc), "htb"))) { in qdisc_add_HTB()
314 rtnl_htb_set_defcls(qdisc, TC_HANDLE(1, defaultClass)); in qdisc_add_HTB()
315 rtnl_htb_set_rate2quantum(qdisc, 1); in qdisc_add_HTB()
318 if ((err = rtnl_qdisc_add(sock, qdisc, NLM_F_CREATE))) { in qdisc_add_HTB()
[all …]
Dtest-u32-filter-with-actions.c201 struct rtnl_qdisc *qdisc; in qdisc_add_ingress() local
205 if (!(qdisc = rtnl_qdisc_alloc())) { in qdisc_add_ingress()
211 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); in qdisc_add_ingress()
212 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT); in qdisc_add_ingress()
215 rtnl_qdisc_delete(sock, qdisc); in qdisc_add_ingress()
218 rtnl_tc_set_handle(TC_CAST(qdisc), TC_HANDLE(0xffff, 0)); in qdisc_add_ingress()
220 if ((err = rtnl_tc_set_kind(TC_CAST(qdisc), "ingress"))) { in qdisc_add_ingress()
226 if ((err = rtnl_qdisc_add(sock, qdisc, NLM_F_CREATE))) { in qdisc_add_ingress()
232 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/doc/
Droute.txt587 For more information on how to modify the qdisc of a link, see section
1317 - *Queueing disciplines (qdisc)* provide a mechanism to enqueue packets
1331 - *Classifiers (cls)* are used to decide which qdisc/class the packet
1342 The default qdisc used on all network devices is `pfifo_fast`.
1344 loopback device do not have a default qdisc attached. The `pfifo_fast`
1345 qdisc provides three bands to prioritize interactive traffic over bulk
1353 qdisc is used by default. It will automatically create a separate
1359 .Example of a customized classful qdisc setup
1369 Each type traffic control module (qdisc, class, classifier) is
1388 #include <netlink/route/qdisc.h>
[all …]
/external/ltp/testcases/network/tcp_cc/
Dtcp_cc_lib.sh61 local qdisc="$1"
65 tst_res TINFO "set qdisc on $(tst_iface rhost) to $qdisc len $qlen"
76 [ "$qdisc" = "$prev_queue" ] && return 0
78 tst_rhost_run -c "tc qdisc replace dev $rmt_dev root $qdisc" >/dev/null
80 tst_res TCONF "$qdisc qdisc not supported"
/external/libnl/src/lib/
Dqdisc.c25 struct rtnl_qdisc *qdisc; in nl_cli_qdisc_alloc() local
27 if (!(qdisc = rtnl_qdisc_alloc())) in nl_cli_qdisc_alloc()
30 return qdisc; in nl_cli_qdisc_alloc()
/external/grpc-grpc-java/benchmarks/src/jmh/java/io/grpc/benchmarks/netty/
DREADME.md23 sudo tc qdisc del dev lo root
25 sudo tc qdisc add dev lo root handle 1: prio
26 # Add a qdisc under the new class with the appropriate shaping
27 sudo tc qdisc add dev lo parent 1:1 handle 2: netem delay 0.1ms rate 10gbit
28 # Add a filter which selects the new qdisc class for traffic to 127.127.127.127
37 sudo tc qdisc del dev lo root

123456