diff options
Diffstat (limited to 'include/uapi/linux')
| -rw-r--r-- | include/uapi/linux/pkt_sched.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h index 09d62b9228ff..9b829134d422 100644 --- a/include/uapi/linux/pkt_sched.h +++ b/include/uapi/linux/pkt_sched.h | |||
| @@ -744,4 +744,45 @@ struct tc_fq_codel_xstats { | |||
| 744 | }; | 744 | }; |
| 745 | }; | 745 | }; |
| 746 | 746 | ||
| 747 | /* FQ */ | ||
| 748 | |||
| 749 | enum { | ||
| 750 | TCA_FQ_UNSPEC, | ||
| 751 | |||
| 752 | TCA_FQ_PLIMIT, /* limit of total number of packets in queue */ | ||
| 753 | |||
| 754 | TCA_FQ_FLOW_PLIMIT, /* limit of packets per flow */ | ||
| 755 | |||
| 756 | TCA_FQ_QUANTUM, /* RR quantum */ | ||
| 757 | |||
| 758 | TCA_FQ_INITIAL_QUANTUM, /* RR quantum for new flow */ | ||
| 759 | |||
| 760 | TCA_FQ_RATE_ENABLE, /* enable/disable rate limiting */ | ||
| 761 | |||
| 762 | TCA_FQ_FLOW_DEFAULT_RATE,/* for sockets with unspecified sk_rate, | ||
| 763 | * use the following rate | ||
| 764 | */ | ||
| 765 | |||
| 766 | TCA_FQ_FLOW_MAX_RATE, /* per flow max rate */ | ||
| 767 | |||
| 768 | TCA_FQ_BUCKETS_LOG, /* log2(number of buckets) */ | ||
| 769 | __TCA_FQ_MAX | ||
| 770 | }; | ||
| 771 | |||
| 772 | #define TCA_FQ_MAX (__TCA_FQ_MAX - 1) | ||
| 773 | |||
| 774 | struct tc_fq_qd_stats { | ||
| 775 | __u64 gc_flows; | ||
| 776 | __u64 highprio_packets; | ||
| 777 | __u64 tcp_retrans; | ||
| 778 | __u64 throttled; | ||
| 779 | __u64 flows_plimit; | ||
| 780 | __u64 pkts_too_long; | ||
| 781 | __u64 allocation_errors; | ||
| 782 | __s64 time_next_delayed_flow; | ||
| 783 | __u32 flows; | ||
| 784 | __u32 inactive_flows; | ||
| 785 | __u32 throttled_flows; | ||
| 786 | __u32 pad; | ||
| 787 | }; | ||
| 747 | #endif | 788 | #endif |
