/external/libnl/src/lib/ |
qdisc.c | 2 * src/lib/qdisc.c CLI QDisc Helpers 19 #include <netlink/cli/qdisc.h> 24 struct rtnl_qdisc *qdisc; local 26 if (!(qdisc = rtnl_qdisc_alloc())) 27 nl_cli_fatal(ENOMEM, "Unable to allocate qdisc object"); 29 return qdisc;
|
/external/libnl/lib/cli/qdisc/ |
pfifo.c | 15 #include <netlink/route/qdisc/fifo.h> 20 "Usage: nl-qdisc-add [...] pfifo [OPTIONS]...\n" 28 " nl-qdisc-add --dev=eth1 --parent=root pfifo --limit=32\n"); 33 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; local 56 rtnl_qdisc_fifo_set_limit(qdisc, nl_cli_parse_u32(optarg));
|
bfifo.c | 14 #include <netlink/route/qdisc/fifo.h> 19 "Usage: nl-qdisc-add [...] bfifo [OPTIONS]...\n" 27 " nl-qdisc-add --dev=eth1 --parent=root bfifo --limit=4096\n"); 32 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; local 62 rtnl_qdisc_fifo_set_limit(qdisc, limit);
|
plug.c | 3 * src/lib/cli/qdisc/plug.c plug module for CLI lib 15 #include <netlink/route/qdisc/plug.h> 20 "Usage: nl-qdisc-add [...] plug [OPTIONS]...\n" 30 " # Attach plug qdisc with 32KB queue size to ifb0\n" 31 " nl-qdisc-add --dev=ifb0 --parent=root plug --limit=32768\n" 33 " nl-qdisc-add --dev=ifb0 --parent=root --update plug --buffer\n" 35 " nl-qdisc-add --dev=ifb0 --parent=root --update plug --release-indefinite\n\n" 38 " nl-qdisc-add --dev=ifb0 --parent=root --update plug --buffer\n\n" 40 " nl-qdisc-add --dev=ifb0 --parent=root --update plug --buffer\n" 42 " nl-qdisc-add --dev=ifb0 --parent=root --update plug --release-one\n\n 51 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; local [all...] |
fq_codel.c | 2 * lib/cli/qdisc/fq_codel.c fq_codel module for CLI lib 14 #include <netlink/route/qdisc/fq_codel.h> 19 "Usage: nl-qdisc-add [...] fq_codel [OPTIONS]...\n" 31 " nl-qdisc-add --dev=eth1 --parent=root fq_codel --limit=4096\n"); 36 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; local 70 rtnl_qdisc_fq_codel_set_limit(qdisc, limit); 75 rtnl_qdisc_fq_codel_set_quantum(qdisc, quantum); 80 rtnl_qdisc_fq_codel_set_flows(qdisc, flows); 85 rtnl_qdisc_fq_codel_set_interval(qdisc, interval); 90 rtnl_qdisc_fq_codel_set_target(qdisc, target) [all...] |
htb.c | 14 #include <netlink/route/qdisc/htb.h> 19 "Usage: nl-qdisc-add [...] htb [OPTIONS]...\n" 27 " # Create htb root qdisc 1: and direct unclassified traffic to class 1:10\n" 28 " nl-qdisc-add --dev=eth1 --parent=root --handle=1: htb --default=10\n"); 33 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; local 58 rtnl_htb_set_rate2quantum(qdisc, nl_cli_parse_u32(optarg)); 62 rtnl_htb_set_defcls(qdisc, nl_cli_parse_u32(optarg)); 83 " # Attach class 1:1 to htb qdisc 1: and rate limit it to 20mbit\n"
|
/external/libnl/src/ |
nl-qdisc-delete.c | 2 * src/nl-qdisc-delete.c Delete Queuing Disciplines 14 #include <netlink/cli/qdisc.h> 23 "Usage: nl-qdisc-delete [OPTION]... [QDISC]\n" 32 " -d, --dev=DEV Device the qdisc is attached to.\n" 33 " -p, --parent=ID Identifier of parent qdisc/class.\n" 35 " -k, --kind=NAME Kind of qdisc (e.g. pfifo_fast)\n" 43 struct rtnl_qdisc *qdisc = nl_object_priv(obj); local 51 if (rtnl_tc_get_handle((struct rtnl_tc *) qdisc) == 0) 57 if ((err = rtnl_qdisc_delete(sock, qdisc)) < 0 70 struct rtnl_qdisc *qdisc; local [all...] |
nl-qdisc-add.c | 2 * src/nl-qdisc-add.c Add Queueing Discipline 14 #include <netlink/cli/qdisc.h> 24 "Usage: nl-qdisc-add [OPTIONS]... QDISC [CONFIGURATION]...\n" 30 " --update Update qdisc if it exists.\n" 31 " --replace Replace or update qdisc if it exists.\n" 32 " --update-only Only update qdisc, never create it.\n" 33 " --replace-only Only replace or update qdisc, never create it.\n" 34 " -d, --dev=DEV Network device the qdisc should be attached to.\n" 35 " -i, --id=ID ID of new qdisc (default: auto-generated)r\n 51 struct rtnl_qdisc *qdisc; local [all...] |
nl-qdisc-list.c | 2 * src/nl-qdisc-list.c List Queueing Disciplines 14 #include <netlink/cli/qdisc.h> 30 "Usage: nl-qdisc-list [OPTION]... [QDISC]\n" 39 " -d, --dev=DEV Device the qdisc is attached to. (default: all)\n" 40 " -p, --parent=ID Identifier of parent qdisc.\n" 42 " -k, --kind=NAME Kind of qdisc (e.g. pfifo_fast)\n" 46 " $ nl-qdisc-list --details --dev=eth0\n" 95 struct rtnl_qdisc *qdisc = nl_object_priv(obj); local 96 struct rtnl_tc *tc = (struct rtnl_tc *) qdisc; 129 struct rtnl_qdisc *qdisc; local [all...] |
nl-tctree-list.c | 14 #include <netlink/cli/qdisc.h> 81 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) obj; local 83 uint32_t parent = rtnl_tc_get_handle((struct rtnl_tc *) qdisc); 88 print_tc_childs(TC_CAST(qdisc), arg + 2); 101 struct rtnl_qdisc *qdisc; local 110 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, TC_H_ROOT); 111 if (qdisc) { 112 print_qdisc((struct nl_object *) qdisc, (void *) 2); 113 rtnl_qdisc_put(qdisc); 116 qdisc = rtnl_qdisc_get_by_parent(qdisc_cache, ifindex, 0) [all...] |
/external/libnl/lib/route/ |
qdisc.c | 2 * lib/route/qdisc.c Queueing Disciplines 14 * @defgroup qdisc Queueing Disciplines 24 #include <netlink/route/qdisc.h> 34 struct rtnl_qdisc *qdisc; local 37 if (!(qdisc = rtnl_qdisc_alloc())) 40 if ((err = rtnl_tc_msg_parse(n, TC_CAST(qdisc))) < 0) 43 err = pp->pp_cb(OBJ_CAST(qdisc), pp); 45 rtnl_qdisc_put(qdisc); 77 void rtnl_qdisc_put(struct rtnl_qdisc *qdisc) 79 nl_object_put((struct nl_object *) qdisc); 521 struct rtnl_qdisc *qdisc = (struct rtnl_qdisc *) tc; local [all...] |
/external/libnl/tests/ |
test-complex-HTB-with-hash-filters.c | 2 * test/test-complex-HTB-with-hash-filters.c Add HTB qdisc, HTB classes and creates some hash filters 14 #include <netlink/route/qdisc.h> 15 #include <netlink/route/qdisc/htb.h> 16 #include <netlink/route/qdisc/sfq.h> 277 * function that adds a new HTB qdisc and set the default class for unclassified traffic 282 struct rtnl_qdisc *qdisc; local 285 /* Allocation of a qdisc object */ 286 if (!(qdisc = rtnl_qdisc_alloc())) { 287 printf("Can not allocate Qdisc\n"); 291 //rtnl_tc_set_ifindex(TC_CAST(qdisc), master_index) 452 struct rtnl_qdisc *qdisc; local [all...] |
test-u32-filter-with-actions.c | 2 * test/tests-u32-with-actions.c Add ingress qdisc, create some hash filters, and add redirect action 16 #include <netlink/route/qdisc.h> 189 * function that adds a new ingress qdisc and set the default class for unclassified traffic 195 struct rtnl_qdisc *qdisc; local 198 /* Allocation of a qdisc object */ 199 if (!(qdisc = rtnl_qdisc_alloc())) { 200 printf("Can not allocate Qdisc\n"); 204 //rtnl_tc_set_ifindex(TC_CAST(qdisc), master_index); 205 rtnl_tc_set_link(TC_CAST(qdisc), rtnlLink); 206 rtnl_tc_set_parent(TC_CAST(qdisc), TC_H_ROOT) [all...] |
/external/autotest/client/bin/net/ |
net_tc.py | 98 # setup leaf qdisc 114 # restore leaf qdisc 245 class qdisc(object): class in inherits:object 248 _tc_cmd = 'tc qdisc %(cmd)s dev %(dev)s %(parent)s ' \ 305 class classful_qdisc(qdisc): 370 (qdisc.name, band)) 374 class classless_qdisc(qdisc):
|
/external/libnl/python/netlink/route/ |
link.py | 291 def qdisc(self): member in class:Link 292 """Name of qdisc (cannot be changed)""" 295 @qdisc.setter 296 def qdisc(self, value): member in class:Link 468 '{t|qdisc} {t|operstate}')
|