diff options
author | Hauke Mehrtens <hauke@openwrt.org> | 2016-04-17 12:53:11 +0000 |
---|---|---|
committer | Hauke Mehrtens <hauke@openwrt.org> | 2016-04-17 12:53:11 +0000 |
commit | 1a9fe326a47076e3bddb7d3c3b0d4480eef9b5ca (patch) | |
tree | 156913aaa6d37987f276bdb0afcc77cff926690b /package/libs | |
parent | 93da434bd8052cf16622a33bcdd27c9edc5ae79f (diff) | |
download | master-187ad058-1a9fe326a47076e3bddb7d3c3b0d4480eef9b5ca.tar.gz master-187ad058-1a9fe326a47076e3bddb7d3c3b0d4480eef9b5ca.tar.bz2 master-187ad058-1a9fe326a47076e3bddb7d3c3b0d4480eef9b5ca.zip |
libnl-tiny: backport 'gnet_stats_rate_est64' support
This has been added to the kernel uapi for a while, and makes
sense to have it here too.
At the moment we're using it for query-ing qdisc via netlink
using libnl-tiny.
Signed-off-by: Alexandru Ardelean <ardeleanalex@gmail.com>
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@49188 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libs')
-rw-r--r-- | package/libs/libnl-tiny/src/include/linux/gen_stats.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/package/libs/libnl-tiny/src/include/linux/gen_stats.h b/package/libs/libnl-tiny/src/include/linux/gen_stats.h index 13f4e74609..8b6f3fc9a0 100644 --- a/package/libs/libnl-tiny/src/include/linux/gen_stats.h +++ b/package/libs/libnl-tiny/src/include/linux/gen_stats.h @@ -9,6 +9,7 @@ enum { TCA_STATS_RATE_EST, TCA_STATS_QUEUE, TCA_STATS_APP, + TCA_STATS_RATE_EST64, __TCA_STATS_MAX, }; #define TCA_STATS_MAX (__TCA_STATS_MAX - 1) @@ -36,6 +37,17 @@ struct gnet_stats_rate_est }; /** + * struct gnet_stats_rate_est64 - rate estimator + * @bps: current byte rate + * @pps: current packet rate + */ +struct gnet_stats_rate_est64 +{ + __u64 bps; + __u64 pps; +}; + +/** * struct gnet_stats_queue - queuing statistics * @qlen: queue length * @backlog: backlog size of queue |