mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2025-02-09 16:18:38 +00:00
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> SVN-Revision: 49188
This commit is contained in:
parent
3fabbb814d
commit
be252b5795
@ -9,6 +9,7 @@ enum {
|
|||||||
TCA_STATS_RATE_EST,
|
TCA_STATS_RATE_EST,
|
||||||
TCA_STATS_QUEUE,
|
TCA_STATS_QUEUE,
|
||||||
TCA_STATS_APP,
|
TCA_STATS_APP,
|
||||||
|
TCA_STATS_RATE_EST64,
|
||||||
__TCA_STATS_MAX,
|
__TCA_STATS_MAX,
|
||||||
};
|
};
|
||||||
#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
|
#define TCA_STATS_MAX (__TCA_STATS_MAX - 1)
|
||||||
@ -35,6 +36,17 @@ struct gnet_stats_rate_est
|
|||||||
__u32 pps;
|
__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
|
* struct gnet_stats_queue - queuing statistics
|
||||||
* @qlen: queue length
|
* @qlen: queue length
|
||||||
|
Loading…
Reference in New Issue
Block a user