Add the tc-fq-pie-cl-stats header for fq_pie per flow (class) stats in Documentation/netlink/specs/tc.yaml with its five fields: - prob - delay - deficit - avg-dq-rate - dq-rate-estimating Extend the tc-fq-pie-xstats fixed header with the type discriminator and the per-flow class_stats fields that follow the nine legacy __u32 qdisc counters in struct tc_fq_pie_xstats. Update the tc-pie-xstats delay, avg_dq_rate member comments to show units as microseconds, bytes/second respectively. Signed-off-by: Hemendra M. Naik Signed-off-by: Vishal Kamath Signed-off-by: Mohit P. Tahiliani --- Documentation/netlink/specs/tc.yaml | 56 +++++++++++++++++++++++------ 1 file changed, 45 insertions(+), 11 deletions(-) diff --git a/Documentation/netlink/specs/tc.yaml b/Documentation/netlink/specs/tc.yaml index b6ccc645b0e3..ff71042e31c1 100644 --- a/Documentation/netlink/specs/tc.yaml +++ b/Documentation/netlink/specs/tc.yaml @@ -894,6 +894,31 @@ definitions: name: memory-limit type: u32 doc: Memory limit in bytes + - + name: tc-fq-pie-cl-stats + type: struct + members: + - + name: prob + type: u64 + doc: Current drop probability of the flow, scaled as an unsigned + 64-bit fixed-point fraction over [0, U64_MAX] (class dumps only) + - + name: delay + type: u32 + doc: Current queue delay of the flow in microseconds (class dumps only) + - + name: deficit + type: s32 + doc: Number of remaining byte credits (class dumps only) + - + name: avg-dq-rate + type: u32 + doc: Current average dq_rate in bytes/second (class dumps only) + - + name: dq-rate-estimating + type: u32 + doc: Is avg-dq-rate being calculated? (class dumps only) - name: tc-fq-pie-xstats type: struct @@ -901,39 +926,48 @@ definitions: - name: packets-in type: u32 - doc: Total number of packets enqueued + doc: Total number of packets enqueued (qdisc dumps only) - name: dropped type: u32 - doc: Packets dropped due to fq_pie_action + doc: Packets dropped due to fq_pie_action (qdisc dumps only) - name: overlimit type: u32 - doc: Dropped due to lack of space in queue + doc: Dropped due to lack of space in queue (qdisc dumps only) - name: overmemory type: u32 - doc: Dropped due to lack of memory in queue + doc: Dropped due to lack of memory in queue (qdisc dumps only) - name: ecn-mark type: u32 - doc: Packets marked with ECN + doc: Packets marked with ECN (qdisc dumps only) - name: new-flow-count type: u32 - doc: Count of new flows created by packets + doc: Count of new flows created by packets (qdisc dumps only) - name: new-flows-len type: u32 - doc: Count of flows in new list + doc: Count of flows in new list (qdisc dumps only) - name: old-flows-len type: u32 - doc: Count of flows in old list + doc: Count of flows in old list (qdisc dumps only) - name: memory-usage type: u32 - doc: Total memory across all queues + doc: Total memory across all queues (qdisc dumps only) + - + name: type + type: u32 + doc: TCA_FQ_PIE_XSTATS_QDISC (0) or TCA_FQ_PIE_XSTATS_CLASS (1) + - + name: class-stats + type: binary + struct: tc-fq-pie-cl-stats + doc: Class statistics of a particular flow (invoked via tc class show) - name: tc-fq-qd-stats type: struct @@ -1032,11 +1066,11 @@ definitions: - name: delay type: u32 - doc: Current delay in ms + doc: Current delay in microseconds - name: avg-dq-rate type: u32 - doc: Current average dq rate in bits/pie-time + doc: Current average dq rate in bytes/second - name: dq-rate-estimating type: u32 -- 2.34.1