History

sched: Dump configuration and statistics of dualpi2 qdisc

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.

Chia-Yu Chang committed 1 year ago

Commit d4de8bf1 parent 320d0312 files · +152 −17Browse files

Showing the changes to include/uapi (1 of 2 files). Show all

Unified · Split

include/uapi/linux/pkt_sched.h+15−0
@@ -1264,4 +1264,19 @@ enum { · 1263 unmodified lines
12641264
12651265 #define TCA_DUALPI2_MAX (__TCA_DUALPI2_MAX - 1)
12661266
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+
12671282 #endif

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t