Lines Matching refs:qdisc
23 static int parse_blackhole_opts(struct rtnl_qdisc *qdisc, char *argv[], in parse_blackhole_opts() argument
29 static int parse_pfifo_opts(struct rtnl_qdisc *qdisc, char *argv[], int argc) in parse_pfifo_opts() argument
40 err = rtnl_qdisc_fifo_set_limit(qdisc, limit); in parse_pfifo_opts()
50 static int parse_bfifo_opts(struct rtnl_qdisc *qdisc, char *argv[], int argc) in parse_bfifo_opts() argument
66 err = rtnl_qdisc_fifo_set_limit(qdisc, limit); in parse_bfifo_opts()
76 static int parse_prio_opts(struct rtnl_qdisc *qdisc, char *argv[], int argc) in parse_prio_opts() argument
86 err = rtnl_qdisc_prio_set_bands(qdisc, bands); in parse_prio_opts()
113 err = rtnl_qdisc_prio_set_priomap(qdisc, map, sizeof(map)); in parse_prio_opts()
129 struct rtnl_qdisc *qdisc; in main() local
143 qdisc = rtnl_qdisc_alloc(); in main()
144 if (!qdisc) in main()
147 rtnl_qdisc_set_ifindex(qdisc, strtoul(argv[1], NULL, 0)); in main()
159 rtnl_qdisc_set_handle(qdisc, handle); in main()
160 rtnl_qdisc_set_parent(qdisc, parent); in main()
161 rtnl_qdisc_set_kind(qdisc, argv[4]); in main()
164 err = parse_blackhole_opts(qdisc, &argv[5], argc-5); in main()
166 err = parse_pfifo_opts(qdisc, &argv[5], argc-5); in main()
168 err = parse_bfifo_opts(qdisc, &argv[5], argc-5); in main()
170 err = parse_prio_opts(qdisc, &argv[5], argc-5); in main()
182 if (rtnl_qdisc_add(nlh, qdisc, NLM_F_REPLACE) < 0) { in main()
191 rtnl_qdisc_put(qdisc); in main()