Netdev List
 help / color / mirror / Atom feed
From: "Hemendra M. Naik" <hemendranaik@gmail.com>
To: netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, horms@kernel.org, jiri@resnulli.us,
	jhs@mojatatu.com, shuah@kernel.org, donald.hunter@gmail.com,
	ast@fiberby.net, toke@redhat.com, liuhangbin@kylinos.cn,
	j.koeppeler@tu-berlin.de, linux-kernel@vger.kernel.org,
	linux-kselftest@vger.kernel.org, vishy0777@gmail.com,
	tahiliani@nitk.edu.in,
	"Hemendra M. Naik" <hemendranaik@gmail.com>
Subject: [PATCH net-next v11 4/4] Documentation/netlink/specs: tc: describe fq_pie per-flow class stats
Date: Sat,  5 Dec 2026 00:31:43 +0530	[thread overview]
Message-ID: <20261204190143.633361-5-hemendranaik@gmail.com> (raw)
In-Reply-To: <20261204190143.633361-1-hemendranaik@gmail.com>

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 <hemendranaik@gmail.com>
Signed-off-by: Vishal Kamath <vishy0777@gmail.com>
Signed-off-by: Mohit P. Tahiliani <tahiliani@nitk.edu.in>
---
 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


      parent reply	other threads:[~2026-12-04 19:02 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 19:01 [PATCH net-next v11 0/4] net/sched: sch_fq_pie: add per-flow class statistics Hemendra M. Naik
2026-12-04 19:01 ` [PATCH net-next v11 1/4] net/sched: sch_fq_pie: add per-flow statistics via class ops Hemendra M. Naik
2026-12-04 19:01 ` [PATCH net-next v11 2/4] selftests: tc-testing: add fq_pie per-flow class stats test Hemendra M. Naik
2026-12-04 19:01 ` [PATCH net-next v11 3/4] net/sched: pie: correct tc_pie_xstats field documentation Hemendra M. Naik
2026-12-04 19:01 ` Hemendra M. Naik [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20261204190143.633361-5-hemendranaik@gmail.com \
    --to=hemendranaik@gmail.com \
    --cc=ast@fiberby.net \
    --cc=davem@davemloft.net \
    --cc=donald.hunter@gmail.com \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=j.koeppeler@tu-berlin.de \
    --cc=jhs@mojatatu.com \
    --cc=jiri@resnulli.us \
    --cc=kuba@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-kselftest@vger.kernel.org \
    --cc=liuhangbin@kylinos.cn \
    --cc=netdev@vger.kernel.org \
    --cc=pabeni@redhat.com \
    --cc=shuah@kernel.org \
    --cc=tahiliani@nitk.edu.in \
    --cc=toke@redhat.com \
    --cc=vishy0777@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox