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");
48 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
143 } else if (matches(*argv, "linklayer") == 0) {
145 if (get_linklayer(&linklayer, *argv)) {
146 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.h74 extern void print_linklayer(char *buf, int len, unsigned linklayer);
81 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"
111 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
138 } else if (matches(*argv, "linklayer") == 0) {
140 if (get_linklayer(&linklayer, *argv)) {
141 explain1("linklayer"); return -1;
220 if (tc_calc_rtable(&opt.rate, rtab, cell_log, mtu, linklayer) < 0) {
226 if (tc_calc_rtable(&opt.ceil, ctab, ccell_log, mtu, linklayer) < 0) {
H A Dq_cbq.c35 fprintf(stderr, " [ overhead BYTES ] [ linklayer TYPE ]\n");
57 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
123 } else if (matches(*argv, "linklayer") == 0) {
125 if (get_linklayer(&linklayer, *argv)) {
126 explain1("linklayer"); return -1;
154 if (tc_calc_rtable(&r, rtab, cell_log, allot, linklayer) < 0) {
196 unsigned int linklayer = LINKLAYER_ETHERNET; /* Assume ethernet */ local
340 } else if (matches(*argv, "linklayer") == 0) {
342 if (get_linklayer(&linklayer, *argv)) {
343 explain1("linklayer"); retur
[all...]
H A Dtc_util.c432 void print_linklayer(char *buf, int len, unsigned linklayer) argument
434 switch (linklayer) {
450 char *sprint_linklayer(unsigned linklayer, char *buf) argument
452 print_linklayer(buf, SPRINT_BSIZE-1, linklayer);
/external/kernel-headers/original/uapi/linux/
H A Dpkt_sched.h86 __u8 linklayer; /* lower 4 bits */ member in struct:tc_ratespec
100 unsigned int linklayer; member in struct:tc_sizespec
/external/iproute2/include/linux/
H A Dpkt_sched.h92 unsigned int linklayer; member in struct:tc_sizespec

Completed in 452 milliseconds