Article View: linux.kernel.netdev
Article #15888[PATCH net-next] netlink: specs: netdev: clarify Tx queue stats
From: Jakub Kicinski
Date: Fri, 13 Nov 2026 17:38
Date: Fri, 13 Nov 2026 17:38
54 lines
9713 bytes
9713 bytes
AI has been complaining during mpnic review that we don't count
the offload stats on completion. This is expected. We don't want
to force drivers to fully re-interpret the skb on completion just
to get slightly more accurate values of informational offload
counters. It's fine to update those as we produce the send queue
descriptors.
This was always the intent: the tx-packets / tx-bytes docs
explicitly call out that the packets must have been successfully
sent, while the offload counters say nothing to this effect.
The checksum counter doc does use past tense which is probably
what threw reviewers off. Rephrase it.
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
---
CC: donald.hunter@gmail.com
CC: sdf@fomichev.me
CC: razor@blackwall.org
CC: daniel@iogearbox.net
---
Documentation/netlink/specs/netdev.yaml | 10 +++++++---
1 file changed, 7 insertions(+), 3 deletions(-)
diff --git a/Documentation/netlink/specs/netdev.yaml b/Documentation/netlink/specs/netdev.yaml
index 4303593e5003..0de7f93f0c4c 100644
--- a/Documentation/netlink/specs/netdev.yaml
+++ b/Documentation/netlink/specs/netdev.yaml
@@ -378,6 +378,11 @@ doc: >-
up to the total number of events, will only be reported for currently
active objects, and will likely report the number of events since last
reconfiguration.
+ Basic Tx counters (`tx-packets` and `tx-bytes`) count only packets which
+ successfully reached the device, while offload-related counters
+ (e.g. `tx-needs-csum`, `tx-hw-gso-packets`) may be incremented at
+ submission time, and so may include packets which never reached
+ the device (e.g. dropped due to a queue flush or reconfiguration).
attributes:
-
name: ifindex
@@ -510,9 +515,8 @@ doc: >-
-
name: tx-needs-csum
doc: |
- Number of packets that required the device to calculate the checksum.
- This counter includes the number of GSO wire packets for which device
- calculated the L4 checksum.
+ Number of packets which requested the device to fill in the checksum.
+ For GSO packets, this counter counts wire packets.
type: uint
-
name: tx-hw-gso-packets
--
2.56.0
Technical Details
Message-ID:
<20261113173802.272995-1-kuba@kernel.org>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362820-linux-kernel-netdev=dewy.ruShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-362820-linux-kernel-netdev=dewy.ru From: kuba@kernel.org (Jakub Kicinski) Newsgroups: linux.kernel.netdev Subject: [PATCH net-next] netlink: specs: netdev: clarify Tx queue stats Date: Fri, 13 Nov 2026 09:38:02 -0800 Organization: Usenet Network Message-ID: <20261113173802.272995-1-kuba@kernel.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Injection-Info: usenet.network; logging-data="1406538"; mail-complaints-to="abuse@usenet.network" Cancel-Lock: sha1:CiizjqFa/LXCK8cFVX4fQA5HLjY= sha256:NTBgOXDOG1hJxWQWqMTTKIe9vfGJ5f0Y4//qG7pcRk4= sha1:PriwROVdZELGiNCnmqUdpEjSLH8= sha256:SDe7RIV2y1JiaHqt7PFYo4Z2riv6wNSHT0aKug4rkhY= List-ID: <netdev.vger.kernel.org> X-Mailpost-Empty-Hdrs: X-Spam-Level X-Received: from localhost (localhost [127.0.0.1]) by mail.dewy.ru (Postfix) with ESMTP id 6CD1B1145F6; Fri, 13 Nov 2026 21:31:23 +0300 (MSK) X-Virus-Scanned: Debian amavisd-new at usenet.network X-Spam-Flag: NO X-Spam-Score: -3.501 X-Spam-Status: No, score=-3.501 tagged_above=-9999 required=6.31 tests=[DKIMWL_WL_HIGH=-0.001, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, MAILING_LIST_MULTI=-1, RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001] autolearn=ham autolearn_force=no X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key) header.d=kernel.org X-Received: from mail.dewy.ru ([127.0.0.1]) by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id L4pri5Svp0-8; Fri, 13 Nov 2026 21:31:21 +0300 (MSK) X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.105.105.114; helo=tor.lore.kernel.org; envelope-from=netdev+bounces-362820-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> X-Authentication-Results: OpenDMARC; dmarc=pass (p=quarantine dis=none) header.from=kernel.org X-Received: from tor.lore.kernel.org (tor.lore.kernel.org [172.105.105.114]) by mail.dewy.ru (Postfix) with ESMTPS id CBA821145F5; Fri, 13 Nov 2026 21:31:12 +0300 (MSK) X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92]) by tor.lore.kernel.org (Postfix) with ESMTP id 4AC8328709A; Fri, 13 Nov 2026 17:50:38 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass; t=1794591485; b=NDvrCP5k/BXlrbgCPMB6+c4Kb0x0zBlZ4v5L4ZBBLcO3EJYyMXTGcABeKE5Kmy7LKiZh ZZAjbfBR0qDRI11qCU4kH5Crvr6B0jgpsRvcLRDj7COrNB0Jhn2JvvdwCO1KPHeWWneJH XvRtteAPBOWKu+86yyTDBmfmIEgpjdd83e2lfj8eXk4TsUT/L3lcZz6NaCQZdNsXbPVsU dvBSPL045N348QvWVZUVyGMJWXfz6OZ7AjnsJJQFuhh2hPzKTSLO0h9LxQixf+073jt/d SzgOq/7nmM6Hh+qUDPrDhxGPzC5Pv2oIeDy6t/LmDGZQSyB726OEsPvcoynPKdDeF4w== X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794591485; h=X-Original-To:Received:Received:DKIM-Signature:From:To:Cc:Subject: Date:Message-ID:X-Mailer:X-Mailing-List:List-Id:List-Post:List-Help: List-Subscribe:List-Unsubscribe:List-Owner:Precedence:MIME-Version: Content-Transfer-Encoding; bh=f9eDxMtZQOEH/tkhoV3/TAWcEH7YSnWvrip0hcgMasM=; b=I5xtqUU5JQoSOFDwTZPdj9Eqqh1DZVVm0OPXJsAg6uSe5D4EW5muNbk9pPZjbMbI/FAE +hwKMRCILVvYqCDCUyK/vUGQnZTh851s4CtnG7QUy5+bER5t1wmwU+/w9EQlBEF6Z4Z/3 jbgvfomfQC2WdipBsL91da7ArCh0zAT01Hws+mY2RdvIgABkTmAhvsNLCMOzg3+5Ap+H7 LYVTdZKZ1xsM7wYGRguZyzc/g5iRefSBR1rYr8tzHoYZ+X6i4TX8wDb9PkM7MhVuEWtpg tEhI+SUnKBS0nYcuaxwzv8d1kqDiaHKPvzTSWwwtp01WmjtSyrA2HHmqA98frgg3BrA== X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jcC0LKYB; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1 X-Received: from localhost.localdomain (localhost [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B347A607E058; Fri, 13 Nov 2026 17:38:05 +0000 (UTC) X-Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jcC0LKYB X-Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 X-ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1794591484; b=Q7ElRwkzuCVa4MkNpniqOIDNhf4+zJ46IyI2Fl/yQYkAx8H9DAhKz3xJdZpVgtbOguOH E4iybFyrMF0GYOqddpRUX56Ais61ekLu6CjFXM2TFZPiZ8A+4rHZoioK3kxeIe3O2UjOs uWDTSogVQaMXu3KG3W7L2EwQ1KMeU4tOpd2VuSYXAcjr+GIDGnUvLhlQxntS8FdVGrYaX Lfe+SZGE5SfVWG5F9icLZBpkt7XYuDkWMyVpCQxBHWV00NU7YfRCo15JKH9wpLvE1aSm1 JcgiBp9n46NqwxSCyG4bOvL0nLZ7iVqMnv32cv3rDX4P4BD6RbhtfnW5Z+UvxMN4neQ== X-ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1794591484; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: MIME-Version:Content-Transfer-Encoding; bh=f9eDxMtZQOEH/tkhoV3/TAWcEH7YSnWvrip0hcgMasM=; b=de8wo0qM8b8PyKQjTBpJkMFSzyKFXrhH5/A32U+uX+vdsJ8o1l/2d5r7n746TPU11g4Z LTB6rwpFvWTnUoZB16PT2QYlB3zOepzWIC29XHmZg/PRoQ8mAT0nLGbS6Tg/UVoXrVYPF IXLQ3I0imLlt/tSWmajvR6TCRfnFUjrMdG6hkREnocG7TuRdJWochtFeWrlTA6pWMC1R5 j33WRL0R/+ScMnc/Yh0eN/o14kjkNahu09D+Idm8bFci8tRS7bZVdSojm2Gtp4KbOXXZA 9D1qIpCSPnKJKK2qL/JBCtXOE3oyJpX7c3X2sLAd6+Z0bJuwJm6FGDDytccFT0VZn+A== X-ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=kernel.org header.i=@kernel.org header.a=rsa-sha256 header.s=k20260515 header.b=jcC0LKYB; arc=none smtp.remote-ip=100.103.45.18 X-Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id D2742607E042 for <netdev@vger.kernel.org>; Fri, 13 Nov 2026 17:38:04 +0000 (UTC) X-Received: by smtp.kernel.org (Postfix) with ESMTPSA id 57C5A1F000C8; Fri, 13 Nov 2026 17:38:04 +0000 (UTC) X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel.org; s=k20260515; t=1794591484; bh=f9eDxMtZQOEH/tkhoV3/TAWcEH7YSnWvrip0hcgMasM=; h=From:To:Cc:Subject:Date; b=jcC0LKYBx+k5RKkNbmrsc4h7uGWw9HoS9l1X+RDYecDm4llrEy+dgalRL5tYhlhjv +eGpAAE1y/7TdACL7QTOQdm6gl2NUiB8n4Kga0LvwT+2CzWRpiH8UlblQHyTa4NpBk +ZSwZJSeppg+0my+eRwmzWztUD89mWwgrID7qGvk7lVi2djAmnJORhVqshL/SOtKJA oXK/tQ/8B/cQp03EZF+s8a6vm0SL36NjQFIf03Lb8tPRepZqemdiKdY8mkt5zbMwM0 SDRbKZ8SEf+AKNYkaBGJvomroI+0f1k98PD3MTTjSl1bXdUaejJFwX/WoWJYna5IEY ZsDmGjLZMve7Q== X-Cc: netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com, andrew+netdev@lunn.ch, horms@kernel.org, Jakub Kicinski <kuba@kernel.org>, donald.hunter@gmail.com, sdf@fomichev.me, razor@blackwall.org, daniel@iogearbox.net X-Mailer: git-send-email 2.56.0 X-Mailing-List: netdev@vger.kernel.org X-List-Post: <mailto:netdev@vger.kernel.org> X-List-Help: <mailto:netdev+help@vger.kernel.org> X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org> X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org> X-List-Owner: <mailto:netdev+owner@vger.kernel.org> X-Precedence: list