Author: hauke
Date: 2016-04-17 14:53:11 +0200 (Sun, 17 Apr 2016)
New Revision: 49188

Modified:
   trunk/package/libs/libnl-tiny/src/include/linux/gen_stats.h
Log:
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 <[email protected]>
Signed-off-by: Hauke Mehrtens <[email protected]>


Modified: trunk/package/libs/libnl-tiny/src/include/linux/gen_stats.h
===================================================================
--- trunk/package/libs/libnl-tiny/src/include/linux/gen_stats.h 2016-04-17 
12:52:54 UTC (rev 49187)
+++ trunk/package/libs/libnl-tiny/src/include/linux/gen_stats.h 2016-04-17 
12:53:11 UTC (rev 49188)
@@ -9,6 +9,7 @@
        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_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
_______________________________________________
openwrt-commits mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits

Reply via email to