The configuration and statistics dump of the DualPI2 Qdisc provides information related to both queues, such as packet numbers and queuing delays in the L-queue and C-queue, as well as general information such as probability value, WRR credits, memory usage, packet marking counters, max queue size, etc. The following patch includes enqueue/dequeue for DualPI2.
Showing the changes to include/uapi (1 of 2 files). Show all
Unified · Split
| @@ -1264,4 +1264,19 @@ enum { · 1263 unmodified lines | |||
| 1264 | 1264 | ||
| 1265 | #define TCA_DUALPI2_MAX (__TCA_DUALPI2_MAX - 1) | 1265 | #define TCA_DUALPI2_MAX (__TCA_DUALPI2_MAX - 1) |
| 1266 | 1266 | ||
| 1267 | struct tc_dualpi2_xstats { | ||
| 1268 | __u32 prob; /* current probability */ | ||
| 1269 | __u32 delay_c; /* current delay in C queue */ | ||
| 1270 | __u32 delay_l; /* current delay in L queue */ | ||
| 1271 | __u32 packets_in_c; /* number of packets enqueued in C queue */ | ||
| 1272 | __u32 packets_in_l; /* number of packets enqueued in L queue */ | ||
| 1273 | __u32 maxq; /* maximum queue size */ | ||
| 1274 | __u32 ecn_mark; /* packets marked with ecn*/ | ||
| 1275 | __u32 step_marks; /* ECN marks due to the step AQM */ | ||
| 1276 | __s32 credit; /* current c_protection credit */ | ||
| 1277 | __u32 memory_used; /* Memory used by both queues */ | ||
| 1278 | __u32 max_memory_used; /* Maximum used memory */ | ||
| 1279 | __u32 memory_limit; /* Memory limit of both queues */ | ||
| 1280 | }; | ||
| 1281 | |||
| 1267 | #endif | 1282 | #endif |