]>
Commit | Line | Data |
---|---|---|
1 | --- linux-3.3/include/linux/pkt_sched.h.orig 2012-03-19 00:15:34.000000000 +0100 | |
2 | +++ linux-3.3/include/linux/pkt_sched.h 2012-03-19 17:54:02.813513839 +0100 | |
3 | @@ -193,6 +193,31 @@ | |
4 | __s32 allot; | |
5 | }; | |
6 | ||
7 | +/* ESFQ section */ | |
8 | + | |
9 | +enum | |
10 | +{ | |
11 | + /* traditional */ | |
12 | + TCA_SFQ_HASH_CLASSIC, | |
13 | + TCA_SFQ_HASH_DST, | |
14 | + TCA_SFQ_HASH_SRC, | |
15 | + TCA_SFQ_HASH_FWMARK, | |
16 | + /* direct */ | |
17 | + TCA_SFQ_HASH_DSTDIR, | |
18 | + TCA_SFQ_HASH_SRCDIR, | |
19 | + TCA_SFQ_HASH_FWMARKDIR, | |
20 | +}; | |
21 | + | |
22 | +struct tc_esfq_qopt | |
23 | +{ | |
24 | + unsigned quantum; /* Bytes per round allocated to flow */ | |
25 | + int perturb_period; /* Period of hash perturbation */ | |
26 | + __u32 limit; /* Maximal packets in queue */ | |
27 | + unsigned divisor; /* Hash divisor */ | |
28 | + unsigned flows; /* Maximal number of flows */ | |
29 | + unsigned hash_kind; /* Hash function to use for flow identification */ | |
30 | +}; | |
31 | + | |
32 | /* RED section */ | |
33 | ||
34 | enum { |