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

/external/iproute2/tc/
H A Dtc_core.c90 unsigned tc_adjust_size(unsigned sz, unsigned mpu, enum link_layer linklayer) argument
95 switch (linklayer) {
111 enum link_layer linklayer)
128 sz = tc_adjust_size((i + 1) << cell_log, mpu, linklayer);
144 enum link_layer linklayer = s->linklayer; local
147 if (linklayer <= LINKLAYER_ETHERNET && s->mpu == 0) {
172 sz = tc_adjust_size((i + 1) << s->cell_log, s->mpu, linklayer);
109 tc_calc_rtable(struct tc_ratespec *r, __u32 *rtab, int cell_log, unsigned mtu, enum link_layer linklayer) argument
H A Dtc_stab.c34 " [ overhead BYTES ] [ linklayer TYPE ] ...\n"
39 " linklayer : adapting to a linklayer e.g. atm\n"
40 "Example: ... stab overhead 20 linklayer atm\n");
47 return s->linklayer >= LINKLAYER_ETHERNET || s->mpu != 0 ||
97 } else if (matches(*argv, "linklayer") == 0) {
99 if (s.linklayer != LINKLAYER_UNSPEC)
100 duparg("linklayer", *argv);
101 if (get_linklayer(&s.linklayer, *argv)) {
102 invarg("linklayer", "invali
[all...]
H A Dq_tbf.c30 fprintf(stderr, "[ overhead BYTES ] [ linklayer TYPE ]\n");
50 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
145 } else if (matches(*argv, "linklayer") == 0) {
147 if (get_linklayer(&linklayer, *argv)) {
148 explain1("linklayer"); return -1;
192 if (tc_calc_rtable(&opt.rate, rtab, Rcell_log, mtu, linklayer) < 0) {
201 if (tc_calc_rtable(&opt.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) {
H A Dtc_util.h76 extern void print_linklayer(char *buf, int len, unsigned linklayer);
84 extern char * sprint_linklayer(unsigned linklayer, char *buf);
H A Dm_police.c39 fprintf(stderr, " [ linklayer TYPE ] [ ACTIONTERM ]\n");
138 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
245 } else if (matches(*argv, "linklayer") == 0) {
247 if (get_linklayer(&linklayer, *argv)) {
248 explain1("linklayer"); return -1;
280 if (tc_calc_rtable(&p.rate, rtab, Rcell_log, mtu, linklayer) < 0) {
290 if (tc_calc_rtable(&p.peakrate, ptab, Pcell_log, mtu, linklayer) < 0) {
H A Dq_htb.c44 " linklay adapting to a linklayer e.g. atm\n"
113 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
140 } else if (matches(*argv, "linklayer") == 0) {
142 if (get_linklayer(&linklayer, *argv)) {
143 explain1("linklayer"); return -1;
222 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) {
228 if (tc_calc_rtable(&opt.ceil, ctab, ccell_log, mtu, linklayer) < 0) {
H A Dq_cbq.c35 fprintf(stderr, " [ overhead BYTES ] [ linklayer TYPE ]\n");
58 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
124 } else if (matches(*argv, "linklayer") == 0) {
126 if (get_linklayer(&linklayer, *argv)) {
127 explain1("linklayer"); return -1;
155 if (tc_calc_rtable(&r, rtab, cell_log, allot, linklayer) < 0) {
197 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
341 } else if (matches(*argv, "linklayer") == 0) {
343 if (get_linklayer(&linklayer, *argv)) {
344 explain1("linklayer"); retur
[all...]
H A Dtc_util.c459 void print_linklayer(char *buf, int len, unsigned linklayer) argument
461 switch (linklayer) {
477 char *sprint_linklayer(unsigned linklayer, char *buf) argument
479 print_linklayer(buf, SPRINT_BSIZE-1, linklayer);
/external/iproute2/include/linux/
H A Dpkt_sched.h95 unsigned int linklayer; member in struct:tc_sizespec
/external/kernel-headers/original/linux/
H A Dpkt_sched.h95 unsigned int linklayer; member in struct:tc_sizespec

Completed in 55 milliseconds