[Cake] tc not showing detailed stats
Georgios Amanakis
gamanakis at gmail.com
Sun May 20 21:09:22 EDT 2018
I am well aware of that :)
On my system though with tc-adv at aa554002 and sch_cake/cobalt at 842d7f0
it doesn't produce any detailed stats:
% tc -s qdisc show
qdisc cake 8009: dev ens4 root refcnt 2 bandwidth 18Mbit diffserv3
dual-dsthost ingress split-gso rtt 100.0ms noatm overhead 18 mpu 64
Sent 5098 bytes 35 pkt (dropped 0, overlimits 0 requeues 0)
backlog 0b 0p requeues 0
memory used: 4Mb of 2250000b
min/max network layer size: 2 / 88
min/max overhead-adjusted size: 248 / 106
average network hdr offset: 2304
!!!Deficit 4, rta_len=266
I bisected it and it's definitely commit sch_cake/cobalt at 842d7f0.
Now if I introduce TCA_CAKE_STATS_PAD at the end of the enum, this
resolves the bug. i.e.:
--- a/pkt_sched.h
+++ b/pkt_sched.h
@@ -883,7 +883,6 @@ enum {
enum {
__TCA_CAKE_STATS_INVALID,
- TCA_CAKE_STATS_PAD,
TCA_CAKE_STATS_CAPACITY_ESTIMATE64,
TCA_CAKE_STATS_MEMORY_LIMIT,
TCA_CAKE_STATS_MEMORY_USED,
@@ -893,6 +892,7 @@ enum {
TCA_CAKE_STATS_MIN_ADJLEN,
TCA_CAKE_STATS_MAX_ADJLEN,
TCA_CAKE_STATS_TIN_STATS,
+ TCA_CAKE_STATS_PAD,
__TCA_CAKE_STATS_MAX
};
George
More information about the Cake
mailing list