Home | History | Annotate | Download | only in tc

Lines Matching full:argv

50 static int cbq_parse_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
66 if (matches(*argv, "bandwidth") == 0 ||
67 matches(*argv, "rate") == 0) {
69 if (get_rate(&r.rate, *argv)) {
73 } else if (matches(*argv, "ewma") == 0) {
75 if (get_integer(&ewma_log, *argv, 0)) {
83 } else if (matches(*argv, "cell") == 0) {
87 if (get_size(&cell, *argv)) {
99 } else if (matches(*argv, "avpkt") == 0) {
101 if (get_size(&avpkt, *argv)) {
105 } else if (matches(*argv, "mpu") == 0) {
107 if (get_size(&mpu, *argv)) {
111 } else if (matches(*argv, "allot") == 0) {
114 if (get_size(&allot, *argv)) {
118 } else if (matches(*argv, "overhead") == 0) {
120 if (get_u16(&overhead, *argv, 10)) {
123 } else if (matches(*argv, "linklayer") == 0) {
125 if (get_linklayer(&linklayer, *argv)) {
128 } else if (matches(*argv, "help") == 0) {
132 fprintf(stderr, "What is \"%s\"?\n", *argv);
136 argc--; argv++;
181 static int cbq_parse_class_opt(struct qdisc_util *qu, int argc, char **argv, struct nlmsghdr *n)
206 if (matches(*argv, "rate") == 0) {
208 if (get_rate(&r.rate, *argv)) {
212 } else if (matches(*argv, "bandwidth") == 0) {
214 if (get_rate(&bndw, *argv)) {
218 } else if (matches(*argv, "minidle") == 0) {
220 if (get_u32(&lss.minidle, *argv, 0)) {
225 } else if (matches(*argv, "minburst") == 0) {
227 if (get_u32(&minburst, *argv, 0)) {
232 } else if (matches(*argv, "maxburst") == 0) {
234 if (get_u32(&maxburst, *argv, 0)) {
239 } else if (matches(*argv, "bounded") == 0) {
242 } else if (matches(*argv, "borrow") == 0) {
245 } else if (matches(*argv, "isolated") == 0) {
248 } else if (matches(*argv, "sharing") == 0) {
251 } else if (matches(*argv, "ewma") == 0) {
253 if (get_integer(&ewma_log, *argv, 0)) {
262 } else if (matches(*argv, "cell") == 0) {
266 if (get_size(&cell, *argv)) {
278 } else if (matches(*argv, "prio") == 0) {
281 if (get_u32(&prio, *argv, 0)) {
291 } else if (matches(*argv, "allot") == 0) {
293 if (get_size(&wrr.allot, *argv)) {
297 } else if (matches(*argv, "avpkt") == 0) {
299 if (get_size(&lss.avpkt, *argv)) {
304 } else if (matches(*argv, "mpu") == 0) {
306 if (get_size(&mpu, *argv)) {
310 } else if (matches(*argv, "weight") == 0) {
312 if (get_size(&wrr.weight, *argv)) {
317 } else if (matches(*argv, "split") == 0) {
319 if (get_tc_classid(&fopt.split, *argv)) {
324 } else if (matches(*argv, "defmap") == 0) {
327 err = sscanf(*argv, "%08x/%08x", &fopt.defmap, &fopt.defchange);
335 } else if (matches(*argv, "overhead") == 0) {
337 if (get_u16(&overhead, *argv, 10)) {
340 } else if (matches(*argv, "linklayer") == 0) {
342 if (get_linklayer(&linklayer, *argv)) {
345 } else if (matches(*argv, "help") == 0) {
349 fprintf(stderr, "What is \"%s\"?\n", *argv);
353 argc--; argv++;