b06bc7071e2f415517145aff5de9c89cfc987b5a
[openwrt/staging/mkresin.git] / package / network / utils / iproute2 / patches / 000-sync_pkt_sched_h.patch
1 --- a/include/linux/pkt_sched.h
2 +++ b/include/linux/pkt_sched.h
3 @@ -214,6 +214,33 @@ struct tc_sfq_xstats {
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 + /* conntrack */
17 + TCA_SFQ_HASH_CTORIGDST,
18 + TCA_SFQ_HASH_CTORIGSRC,
19 + TCA_SFQ_HASH_CTREPLDST,
20 + TCA_SFQ_HASH_CTREPLSRC,
21 + TCA_SFQ_HASH_CTNATCHG,
22 +};
23 +
24 +struct tc_esfq_qopt
25 +{
26 + unsigned quantum; /* Bytes per round allocated to flow */
27 + int perturb_period; /* Period of hash perturbation */
28 + __u32 limit; /* Maximal packets in queue */
29 + unsigned divisor; /* Hash divisor */
30 + unsigned flows; /* Maximal number of flows */
31 + unsigned hash_kind; /* Hash function to use for flow identification */
32 +};
33 +
34 /* RED section */
35
36 enum {