libnl-tiny: backport 'gnet_stats_rate_est64' support
[project/libnl-tiny.git] / src / include / linux / gen_stats.h
index 13f4e74609ac10747eceffb84f3f1293a83e71a7..8b6f3fc9a076ace347a7ea5e5892446c83afa57a 100644 (file)
@@ -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)
@@ -35,6 +36,17 @@ struct gnet_stats_rate_est
        __u32   pps;
 };
 
+/**
+ * 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