Home
last modified time | relevance | path

Searched refs:linklayer (Results 1 – 10 of 10) sorted by relevance

/external/iproute2/tc/
Dtc_core.c90 static unsigned tc_adjust_size(unsigned sz, unsigned mpu, enum link_layer linklayer) in tc_adjust_size() argument
95 switch (linklayer) { in tc_adjust_size()
126 enum link_layer linklayer) in tc_calc_rtable() argument
143 sz = tc_adjust_size((i + 1) << cell_log, mpu, linklayer); in tc_calc_rtable()
149 r->linklayer = (linklayer & TC_LINKLAYER_MASK); in tc_calc_rtable()
160 enum link_layer linklayer = s->linklayer; in tc_calc_size_table() local
163 if (linklayer <= LINKLAYER_ETHERNET && s->mpu == 0) { in tc_calc_size_table()
188 sz = tc_adjust_size((i + 1) << s->cell_log, s->mpu, linklayer); in tc_calc_size_table()
Dm_police.c137 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in act_parse_police() local
245 if (get_linklayer(&linklayer, *argv)) { in act_parse_police()
278 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in act_parse_police()
288 if (tc_calc_rtable(&p.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in act_parse_police()
327 unsigned int linklayer; in print_police() local
363 linklayer = (p->rate.linklayer & TC_LINKLAYER_MASK); in print_police()
364 if (linklayer > TC_LINKLAYER_ETHERNET || show_details) in print_police()
365 fprintf(f, "linklayer %s ", sprint_linklayer(linklayer, b2)); in print_police()
Dq_tbf.c48 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in tbf_parse_opt() local
156 if (get_linklayer(&linklayer, *argv)) { in tbf_parse_opt()
216 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
225 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
253 unsigned int linklayer; in tbf_print_opt() local
319 linklayer = (qopt->rate.linklayer & TC_LINKLAYER_MASK); in tbf_print_opt()
320 if (linklayer > TC_LINKLAYER_ETHERNET || show_details) in tbf_print_opt()
321 fprintf(f, "linklayer %s ", sprint_linklayer(linklayer, b3)); in tbf_print_opt()
Dtc_stab.c48 return s->linklayer >= LINKLAYER_ETHERNET || s->mpu != 0 || in check_size_table_opts()
92 if (s.linklayer != LINKLAYER_UNSPEC) in parse_size_table()
94 if (get_linklayer(&s.linklayer, *argv)) in parse_size_table()
123 if (s.linklayer) in print_size_table()
125 sprint_linklayer(s.linklayer, b1)); in print_size_table()
Dq_htb.c122 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in htb_parse_class_opt() local
152 if (get_linklayer(&linklayer, *argv)) { in htb_parse_class_opt()
238 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
244 if (tc_calc_rtable(&opt.ceil, ctab, ccell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
272 unsigned int linklayer; in htb_print_opt() local
312 linklayer = (hopt->rate.linklayer & TC_LINKLAYER_MASK); in htb_print_opt()
313 if (linklayer > TC_LINKLAYER_ETHERNET || show_details) in htb_print_opt()
314 fprintf(f, "linklayer %s ", sprint_linklayer(linklayer, b4)); in htb_print_opt()
Dq_cbq.c57 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in cbq_parse_opt() local
125 if (get_linklayer(&linklayer, *argv)) { in cbq_parse_opt()
154 if (tc_calc_rtable(&r, rtab, cell_log, allot, linklayer) < 0) { in cbq_parse_opt()
196 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in cbq_parse_class_opt() local
342 if (get_linklayer(&linklayer, *argv)) { in cbq_parse_class_opt()
365 if (tc_calc_rtable(&r, rtab, cell_log, pktsize, linklayer) < 0) { in cbq_parse_class_opt()
445 unsigned int linklayer; in cbq_print_opt() local
491 linklayer = (r->linklayer & TC_LINKLAYER_MASK); in cbq_print_opt()
492 if (linklayer > TC_LINKLAYER_ETHERNET || show_details) in cbq_print_opt()
493 fprintf(f, "linklayer %s ", sprint_linklayer(linklayer, b2)); in cbq_print_opt()
Dtc_util.h74 extern void print_linklayer(char *buf, int len, unsigned linklayer);
82 extern char * sprint_linklayer(unsigned linklayer, char *buf);
Dtc_util.c480 void print_linklayer(char *buf, int len, unsigned linklayer) in print_linklayer() argument
482 switch (linklayer) { in print_linklayer()
498 char *sprint_linklayer(unsigned linklayer, char *buf) in sprint_linklayer() argument
500 print_linklayer(buf, SPRINT_BSIZE-1, linklayer); in sprint_linklayer()
/external/kernel-headers/original/uapi/linux/
Dpkt_sched.h86 __u8 linklayer; /* lower 4 bits */ member
100 unsigned int linklayer; member
/external/iproute2/include/linux/
Dpkt_sched.h90 __u8 linklayer; /* lower 4 bits */ member
104 unsigned int linklayer; member