/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/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/lib/cli/qdisc/ |
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...] |
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);
|
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));
|
/external/libnl/include/netlink/cli/ |
qdisc.h | 2 * netlink/cli/qdisc.h CLI QDisc Helpers 15 #include <netlink/route/qdisc.h>
|
/external/libnl/lib/route/qdisc/ |
plug.c | 2 * lib/route/qdisc/plug.c PLUG Qdisc 13 * @ingroup qdisc 19 * There are two ways to use this qdisc: 41 * Thus, this Qdisc would receive the following sequence of commands: 68 #include <netlink/route/qdisc/plug.h> 90 * Insert a plug into the qdisc and buffer any incoming 92 * @arg qdisc PLUG qdisc to be modified. 94 int rtnl_qdisc_plug_buffer(struct rtnl_qdisc *qdisc) [all...] |
fq_codel.c | 2 * lib/route/qdisc/fq_codel.c fq_codel 13 * @ingroup qdisc 24 #include <netlink/route/qdisc.h> 25 #include <netlink/route/qdisc/fq_codel.h> 143 * Set limit of fq_codel qdisc. 144 * @arg qdisc fq_codel qdisc to be modified. 148 int rtnl_qdisc_fq_codel_set_limit(struct rtnl_qdisc *qdisc, int limit) 152 if (!(fq_codel = rtnl_tc_data(TC_CAST(qdisc)))) 162 * Get limit of a fq_codel qdisc [all...] |
sfq.c | 2 * lib/route/qdisc/sfq.c SFQ Qdisc 13 * @ingroup qdisc 31 #include <netlink/route/qdisc.h> 32 #include <netlink/route/qdisc/sfq.h> 109 * Set quantum of SFQ qdisc. 110 * @arg qdisc SFQ qdisc to be modified. 114 void rtnl_sfq_set_quantum(struct rtnl_qdisc *qdisc, int quantum) 118 if (!(sfq = rtnl_tc_data(TC_CAST(qdisc)))) [all...] |
netem.c | 2 * lib/route/qdisc/netem.c Network Emulator Qdisc 13 * @ingroup qdisc 26 #include <netlink/route/qdisc.h> 27 #include <netlink/route/qdisc/netem.h> 291 * Set limit of netem qdisc. 292 * @arg qdisc Netem qdisc to be modified. 296 void rtnl_netem_set_limit(struct rtnl_qdisc *qdisc, int limit) 300 if (!(netem = rtnl_tc_data(TC_CAST(qdisc)))) [all...] |
tbf.c | 2 * lib/route/qdisc/tbf.c TBF Qdisc 13 * @ingroup qdisc 24 #include <netlink/route/qdisc.h> 27 #include <netlink/route/qdisc/tbf.h> 173 * Set limit of TBF qdisc. 174 * @arg qdisc TBF qdisc to be modified. 178 void rtnl_qdisc_tbf_set_limit(struct rtnl_qdisc *qdisc, int limit) 182 if (!(tbf = rtnl_tc_data(TC_CAST(qdisc)))) [all...] |
/external/iproute2/testsuite/tests/tc/ |
cbq.t | 2 $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
|
dsmark.t | 12 ts_tc "dsmark" "dsmark root qdisc creation" \ 13 qdisc add dev $DEV root handle 10:0 \ 24 ts_tc "dsmark" "dsmark dump qdisc" \ 25 qdisc list dev $DEV 30 ts_tc "dsmark" "generic qdisc tree deletion" \ 31 qdisc del dev $DEV root
|
policer.t | 2 $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
|
cls-testbed.t | 14 ts_log "Preparing classifier testbed with qdisc $q" 20 ts_tc "cls-testbed" "cbq root qdisc creation" \ 21 qdisc add dev $DEV root handle 10:0 \ 34 ts_tc "cls-testbed" "htb root qdisc creation" \ 35 qdisc add dev $DEV root handle 10:0 htb 46 ts_tc "cls-testbed" "dsmark root qdisc creation" \ 47 qdisc add dev $DEV root handle 20:0 \ 52 ts_tc "cls-testbed" "prio inner qdisc creation" \ 53 qdisc add dev $DEV parent 20:0 handle 10:0 prio 56 ts_err "cls-testbed: no testbed configuration found for qdisc $q [all...] |
/external/libnl/src/ |
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...] |
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...] |
/external/libnl/include/netlink/route/qdisc/ |
cbq.h | 17 #include <netlink/route/qdisc.h>
|
fifo.h | 2 * netlink/route/sch/fifo.c FIFO Qdisc 16 #include <netlink/route/qdisc.h>
|
plug.h | 2 * netlink/route/qdisc/plug.c PLUG Qdisc 16 #include <netlink/route/qdisc.h>
|
prio.h | 2 * netlink/route/sch/prio.c PRIO Qdisc 16 #include <netlink/route/qdisc.h>
|
sfq.h | 2 * netlink/route/sch/sfq.c SFQ Qdisc 16 #include <netlink/route/qdisc.h>
|
/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...] |