Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.173 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796410973; b=Hgfa987Tk3zI2Ew1RqpSxUst5kuPU/rQEponxYmNGigj9phZmeavyX5vjSo/48S5NWbq sa+SxRSsiQLOxxvCmcdeuXvoS9ZlPNW/A5GrzP5Mtnx+dgc6JW4HK2i3GZMBtlZ6mXE4m ecVepAIp2k4LYy1GD7iOSF9ZTg81LTtidPOeH6DAVGXG2xerNwDaGFJUgkztu2u1KInU7 usJ4eUYmrlWjx+cvkBqNwgihzn6u97IyE/Q94WWNZ04qOUZGn8MRPwZxfG44R60joHRXb T652hqnRF8VyOM+CW4Kl/Pg83Pa5VIBh0f++1XU6gGE0NqxZStqZcI/wAZ3UqxeRejw== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796410973; h=DMARC-Filter:Received:DKIM-Signature:X-Google-DKIM-Signature: X-Forwarded-Encrypted:X-Gm-Message-State:X-Gm-Gg:X-Received:Received: From:To:Cc:Subject:Date:Message-Id:X-Mailer:In-Reply-To:References: MIME-Version:Content-Transfer-Encoding; bh=vFdS+0tBmPS1LZm4IT8offRmVelSVElRMTejdsnn55E=; b=P/H5hEFc2PtrBkszP/jSiQyZJyxEYNkdGgpkvnluLC9kkeMFZR+6gsltQMEU6IzG79b+ FKKQQAAoVbEjOjX2VD5oJbgVaHVx/+VxOq3Q/cb0pla3Gk2+PVpR4b1AFBWpeQS5sqRTN W9dyTN7Bd+UJci1q/0HOTKM7njQflamvMGlBLpJudvVoafCr6/Dy8kX23adeCtHyVtYAY 0nrsStmFTJSKOEKvtWzGmLDeLI/h5+6MBQhF3M3cpVPk8j428T5HfYSFMHqMpuDiwNwj8 fN3MuHrxdShZ5GLcB4mhXEPqscdHBmd733Eb75sqZOOy6C2SmLETwdKJ/gpuJf3poHA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cH5B9dpw; arc=none smtp.remote-ip=74.125.82.173 Received: from mail-dy1-f173.google.com (mail-dy1-f173.google.com [74.125.82.173]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 376ED606A681 for ; Fri, 4 Dec 2026 19:02:50 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 376ED606A681 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20260707 header.b=cH5B9dpw Received: by mail-dy1-f173.google.com with SMTP id 5a478bee46e88-38699cf08dfso1663323eec.1 for ; Fri, 04 Dec 2026 11:02:50 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796410969; x=1797015769; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to:content-type; bh=vFdS+0tBmPS1LZm4IT8offRmVelSVElRMTejdsnn55E=; b=cH5B9dpwvj8ICR7B47D5kEyrI/NX3MIbf2birX4Nx0EagTu2/rQBmJXtAsRyfYqO6N F/nzuUtAGL9Tyzu6srw3LM7pomBSk6ZcU+QK5Xx+7Gd3BP4E33swxQx2PHicWNSAZIyO QutS7CXGdSW1NpBrDnmNqa9HYewznju3rI0/aMVVCcrT8KBqNmPksJALIE+/59K+6JDS pqE7+H8LMgNoD1s1uwfzv9YjsTghB2tv/IzRZRJ4ARYEa4SRtzacbhuQNW/RSt4UdgEl 8lCIBigygsG9HLLLRtj3/J01K/V8irRJEQzjIa+b1AtBkbiDWjyUpA4+HJ1Y+MPqOvYy Yg6g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796410969; x=1797015769; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to:content-type; bh=vFdS+0tBmPS1LZm4IT8offRmVelSVElRMTejdsnn55E=; b=kmKYifZNwjmHHOMzC4lVOOTg6bfjSxhbUNQKJTO650nHVqvUHuCTFuWjnMZyE96IKi HuWcc/nWB3ayIJD0j8pgrkfk4eR9UAICCICRlI1f0hKnd9t/NMVPV3IAs7suDfMcyS0P ueU9LOOLxE9+h6Fk0Bw2H5JH3TsgRituHDtGVB4QMby5XrPaMyBhPst0UlDLTwnVzNCH CsJRw9dxMFXKOQcMkvkdNUfIWbAYAWzXRxAxv9qFQ5vkcJNwWJeMM4hhMPxBu8Dliv+s r+1N8b7O3R67f6P/9/hNto5BwK7Yd4rChsrZbNsHwpWXaOJMZ0xYpOio+ikg18GmkY+W XdJQ== X-Forwarded-Encrypted: i=1; AL+hErEUmbnjFW3utIjyHhTih8U/1UBJW+uqe5oHiA6gpyI+Ea9ErCGIOdU4ufJx4yspxWOx+Bc+OJMiSpm2dGDRXD8=@vger.kernel.org X-Gm-Message-State: AB4q+uFco2lntfxhnupnBP9iARKBg/rwVRJqlPvhB/k1tAuuU00L8FlY T5oTmR0kDxjHdFs4BSJX6Ro3MsiqD5FnsDF2T1oesllJ1YsXWAEXzPkD X-Gm-Gg: AZFdTZdnkeb/1zFmPUyqmuyUaQJJSX8KJMKmnZ6/JL2OG7h+vO1vxC+Sz8p7LuV6jNR JBDYLTwlKKSGJlE1mYw5NHIaBsArI75b9SDcld4HQsJAeoaT6cY3S8d5+Jai5GyFf0d8H054n3o Mkt+FnrZyBa7QvCLYbgJ+fJxeqNC3ftr/NsjhkC5+E0ZHvwCFwmhk6mmRTgBYWfyOBI8Zwnk8fQ P40tHK7vI18Id5MzKTUTv8/JmqLPZEPeE5r8dPadcMRrhIDmbrKTh9hiKiDZ2BYgcPDtdezts5P ned3dqwOGsxJ1OCESgP+pz/a5ddTaM5mgRs/4/OF0zdXDBSxt02OPMKNMcRBwQ0ecCYpHFfrRzq 9f8BMausHwKLWv7YFBDLXir517NLxL0/t+YYSLdhiY5bPhr9NKpB0ayx+MrJvW3hyzVdLcAWu5u i1g13GA6dLc8em/HqlQcjBqsQqZVW7tk231g3T+avuVD1iyHTceA51e1rZV9fATEW6MnMFTVhMw /W0+bGUc5oP5qOg48Vnupwu0NGwMc4DYmFLQDY3EjDiH2DXEMad6TgH0xh+gEsbyhDqtFKGitdw xYJ40S66VokN8dauAbUQg3A1w0YTMYFEXrKZfcaLfPPhlozPrltCQbhQ6K8gxolkMVawnnu0B9C 0B18LBrdRUCug6hi3rc6tlR+QIStb X-Received: by 2002:a05:7300:828c:b0:369:5583:bf4c with SMTP id 5a478bee46e88-3875216e324mr2442031eec.28.1796410969307; Fri, 04 Dec 2026 11:02:49 -0800 (PST) Received: from Inspiron-14-5420.. ([2402:e280:21c6:671:ac2:3b38:fcf4:51a7]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-3875222ff7fsm10616966eec.25.2026.12.04.11.02.43 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 11:02:49 -0800 (PST) From: "Hemendra M. Naik" 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" 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 Message-Id: <20261204190143.633361-5-hemendranaik@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20261204190143.633361-1-hemendranaik@gmail.com> References: <20261204190143.633361-1-hemendranaik@gmail.com> X-Mailing-List: linux-kselftest@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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