diff options
Diffstat (limited to 'include/uapi/linux/pkt_sched.h')
-rw-r--r-- | include/uapi/linux/pkt_sched.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h index a806687ad98f..d62316baae94 100644 --- a/include/uapi/linux/pkt_sched.h +++ b/include/uapi/linux/pkt_sched.h | |||
@@ -173,6 +173,8 @@ enum { | |||
173 | TCA_TBF_PTAB, | 173 | TCA_TBF_PTAB, |
174 | TCA_TBF_RATE64, | 174 | TCA_TBF_RATE64, |
175 | TCA_TBF_PRATE64, | 175 | TCA_TBF_PRATE64, |
176 | TCA_TBF_BURST, | ||
177 | TCA_TBF_PBURST, | ||
176 | __TCA_TBF_MAX, | 178 | __TCA_TBF_MAX, |
177 | }; | 179 | }; |
178 | 180 | ||
@@ -523,6 +525,7 @@ enum { | |||
523 | TCA_NETEM_LOSS, | 525 | TCA_NETEM_LOSS, |
524 | TCA_NETEM_RATE, | 526 | TCA_NETEM_RATE, |
525 | TCA_NETEM_ECN, | 527 | TCA_NETEM_ECN, |
528 | TCA_NETEM_RATE64, | ||
526 | __TCA_NETEM_MAX, | 529 | __TCA_NETEM_MAX, |
527 | }; | 530 | }; |
528 | 531 | ||
@@ -790,4 +793,54 @@ struct tc_fq_qd_stats { | |||
790 | __u32 throttled_flows; | 793 | __u32 throttled_flows; |
791 | __u32 pad; | 794 | __u32 pad; |
792 | }; | 795 | }; |
796 | |||
797 | /* Heavy-Hitter Filter */ | ||
798 | |||
799 | enum { | ||
800 | TCA_HHF_UNSPEC, | ||
801 | TCA_HHF_BACKLOG_LIMIT, | ||
802 | TCA_HHF_QUANTUM, | ||
803 | TCA_HHF_HH_FLOWS_LIMIT, | ||
804 | TCA_HHF_RESET_TIMEOUT, | ||
805 | TCA_HHF_ADMIT_BYTES, | ||
806 | TCA_HHF_EVICT_TIMEOUT, | ||
807 | TCA_HHF_NON_HH_WEIGHT, | ||
808 | __TCA_HHF_MAX | ||
809 | }; | ||
810 | |||
811 | #define TCA_HHF_MAX (__TCA_HHF_MAX - 1) | ||
812 | |||
813 | struct tc_hhf_xstats { | ||
814 | __u32 drop_overlimit; /* number of times max qdisc packet limit | ||
815 | * was hit | ||
816 | */ | ||
817 | __u32 hh_overlimit; /* number of times max heavy-hitters was hit */ | ||
818 | __u32 hh_tot_count; /* number of captured heavy-hitters so far */ | ||
819 | __u32 hh_cur_count; /* number of current heavy-hitters */ | ||
820 | }; | ||
821 | |||
822 | /* PIE */ | ||
823 | enum { | ||
824 | TCA_PIE_UNSPEC, | ||
825 | TCA_PIE_TARGET, | ||
826 | TCA_PIE_LIMIT, | ||
827 | TCA_PIE_TUPDATE, | ||
828 | TCA_PIE_ALPHA, | ||
829 | TCA_PIE_BETA, | ||
830 | TCA_PIE_ECN, | ||
831 | TCA_PIE_BYTEMODE, | ||
832 | __TCA_PIE_MAX | ||
833 | }; | ||
834 | #define TCA_PIE_MAX (__TCA_PIE_MAX - 1) | ||
835 | |||
836 | struct tc_pie_xstats { | ||
837 | __u32 prob; /* current probability */ | ||
838 | __u32 delay; /* current delay in ms */ | ||
839 | __u32 avg_dq_rate; /* current average dq_rate in bits/pie_time */ | ||
840 | __u32 packets_in; /* total number of packets enqueued */ | ||
841 | __u32 dropped; /* packets dropped due to pie_action */ | ||
842 | __u32 overlimit; /* dropped due to lack of space in queue */ | ||
843 | __u32 maxq; /* maximum queue size */ | ||
844 | __u32 ecn_mark; /* packets marked with ecn*/ | ||
845 | }; | ||
793 | #endif | 846 | #endif |