Home
last modified time | relevance | path

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

/external/iproute2/tc/
Dtc_core.c90 unsigned tc_adjust_size(unsigned sz, unsigned mpu, enum link_layer linklayer) in tc_adjust_size() argument
95 switch (linklayer) { in tc_adjust_size()
111 enum link_layer linklayer) in tc_calc_rtable() argument
128 sz = tc_adjust_size((i + 1) << cell_log, mpu, linklayer); in tc_calc_rtable()
144 enum link_layer linklayer = s->linklayer; in tc_calc_size_table() local
147 if (linklayer <= LINKLAYER_ETHERNET && s->mpu == 0) { in tc_calc_size_table()
172 sz = tc_adjust_size((i + 1) << s->cell_log, s->mpu, linklayer); in tc_calc_size_table()
Dtc_stab.c47 return s->linklayer >= LINKLAYER_ETHERNET || s->mpu != 0 || in check_size_table_opts()
99 if (s.linklayer != LINKLAYER_UNSPEC) in parse_size_table()
101 if (get_linklayer(&s.linklayer, *argv)) { in parse_size_table()
132 if (s.linklayer) in print_size_table()
134 sprint_linklayer(s.linklayer, b1)); in print_size_table()
Dq_tbf.c48 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in tbf_parse_opt() local
145 if (get_linklayer(&linklayer, *argv)) { in tbf_parse_opt()
192 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in tbf_parse_opt()
201 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in tbf_parse_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()
Dm_police.c138 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in act_parse_police() local
247 if (get_linklayer(&linklayer, *argv)) { in act_parse_police()
280 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklayer) < 0) { in act_parse_police()
290 if (tc_calc_rtable(&p.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) { in act_parse_police()
Dq_htb.c111 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ in htb_parse_class_opt() local
140 if (get_linklayer(&linklayer, *argv)) { in htb_parse_class_opt()
220 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
226 if (tc_calc_rtable(&opt.ceil, ctab, ccell_log, mtu, linklayer) < 0) { in htb_parse_class_opt()
Dtc_util.c432 void print_linklayer(char *buf, int len, unsigned linklayer) in print_linklayer() argument
434 switch (linklayer) { in print_linklayer()
450 char *sprint_linklayer(unsigned linklayer, char *buf) in sprint_linklayer() argument
452 print_linklayer(buf, SPRINT_BSIZE-1, linklayer); in sprint_linklayer()
Dtc_util.h74 extern void print_linklayer(char *buf, int len, unsigned linklayer);
81 extern char * sprint_linklayer(unsigned linklayer, char *buf);
/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.h92 unsigned int linklayer; member