Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 30D024314A8 for ; Mon, 27 Jul 2026 16:51:22 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785171084; cv=none; b=WDMm6gtrph32Cdvaa2hELBIiMzoo75vsG3vxuvr5yi8/+zZTuJejcDeRQVHB2LHT7aCwwFLG4iTN6kBfVfOWU7T9VwTzr76uZR6/a4cpdY9GOozJhHCAsW+/H7eohekP/mL7EasV9S4oky+dvMsxnmXYFcuv9OL6+KL5Uvi0oEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1785171084; c=relaxed/simple; bh=aIbjj9p0LpeRUO6uWv02kDQ8Vlm/Vfl+BTsZPPvK/oc=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=Rf1blpNP/lOFlAVWmQJhQxtsn+FD75wQR2m1R4BTJvfEkC0a/qvrz+TJ6ISrPkuaRVRnr5J5KFTqpzXd3xnlGUq68yBdXnxUscvz4xhhT4nx/bheyUtJoKhXGQxMn6CNG530bpEDUJawMAle03mECwlAE4zWxTL6HNfc+Ex/+Qg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=I6yc6Wm5; arc=none smtp.client-ip=209.85.215.177 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.b="I6yc6Wm5" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-c981c2c37cbso2178803a12.0 for ; Mon, 27 Jul 2026 09:51:22 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20251104; t=1785171082; x=1785775882; 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=cDnHI30Jpscx24fIhxZkeP/i8DuyUWzJvO8mKX0g8uQ=; b=I6yc6Wm5nj7AyuD1LBbY1gprxAQ30e+Jq8WUJQEMeFz8I/NZTlLaykUks8uVK3ilSV 3VwQIttfm6G4HewVpGIL7Jwe+x1s1mQxY8kpfq0IYCgFxDydXeX9ZcFCF+W6v9ASrH/Q WCHEhYKx4JQQO51+8/rb19rh4UC3SnhLX7W3Jbsi827PpgvWMl9OjKhT9EfH3s+SRiha d06u6W9Jmzoxm7fOcBKtl8ED3/XPOgI45xDzVLwwrpKj7CCjkVB0KfLRIQNbBNoKF40O smy5Not0PajVf1WEExoFODSyT4lsyoa3NQucpGdFR7+N23f19R8YdUEcc8hvJcBvDxLa jHZA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20251104; t=1785171082; x=1785775882; 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=cDnHI30Jpscx24fIhxZkeP/i8DuyUWzJvO8mKX0g8uQ=; b=MM9M+G0MnDGZ1tlDY+ZD64eY19gZy/fyTUAqgmbT/YSTRATsNsaBqaoYUItpGffq2l 4U0zI/86jAjum+ag+ISkplJ9VIFK1mMGVq331oHlYzJbuQZeXkZeosVYofTm1axRli40 8FxH6nqEMWE9n/bbYQ89S0hJfcAA+e5sWrnvbKKwluZDocJZcMNrLjbzH2gGVOWEFU0J RSEukUrtgDB/kkVGholIWRphr0QF1n7ByCvnKf/pZ+ciZ92+Xk7j3SK6nma+cybJ/qfy wrDuidi8GYjhf4qOKuUFW5RZqQ7Ka85I76naUCkgFKDMSexmX6z3lIvfCiczM9xlMgSw peow== X-Forwarded-Encrypted: i=1; AHgh+Rogir9t2GiccnNy4Bq/Y2y39cMLdtu7QdkHubY9mcXby2q1CEY+XEQL0Zy1FFqGQIxQ/xdq8YgGOa8aVa8=@vger.kernel.org X-Gm-Message-State: AOJu0Yw9gMTQSAgJQVVj7eDE6GWCqEMxqH2Aj7urqS70UbOPIAo0Tzeo z0JiZGFW26hYWCSXMUgCEZYY1XALukrFv9UjEqG9UI3OvrZscQNj6jncd6BMg+8u X-Gm-Gg: AR+sD100duVl/YvuXPstP/iWhBR/cYbT+cxs4BZvKV/Q3dtoopaQ9gm/7eB2ycNTLaO lQGCmuRBZOoPb/xW87N6kjkUxvhggFUNwQHF2iT9olGICxodkOtKgYB2uuwW/jLLDtO4LLysY2Y qVhyiow0dy6cntgPrh80MlMsztv441Z0Cs0ig5AKCNXFMJ/wsx2jpLy/yGrKVolvAGIlcNz1THN wx4kgOTFJgLSDR7LQYyhO51cR7qJ+TBXqa99EvM5afndm8zwB96xspmyq2nUucqdGh0TflEm+Y6 KmQjvJtj1BGjJGyfZiVupVdQuHY7Kayqqvy1iz+JmQyV/QhxY5ni1YAJgtbs9m74tRHBBD2Xgyv 1SbU/VJIMSH3COImHsLJLUvF/GpwC8AeTBQBh/OinSEkWCqMm5BT2HRRWAKloW+uWuHmApaw7sV lcEVRq5CoXq70eKrF6Q5WXR2myCar9//ie0QO3d8PHsobWMmpKJrNrExisjM53O83KRg+LzB4MS r9eMA== X-Received: by 2002:a05:6a21:3418:b0:3c4:ddc:e89e with SMTP id adf61e73a8af0-3c6c8043947mr369900637.52.1785171082471; Mon, 27 Jul 2026 09:51:22 -0700 (PDT) Received: from Inspiron-14-5420.. ([2402:e280:21c6:671:8b84:a60e:2cad:e760]) by smtp.gmail.com with ESMTPSA id 5a478bee46e88-314bc419e3asm33654029eec.11.2026.07.27.09.51.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 27 Jul 2026 09:51:22 -0700 (PDT) From: "Hemendra M. Naik" To: netdev@vger.kernel.org Cc: jiri@resnulli.us, jhs@mojatatu.com, linux-kernel@vger.kernel.org, vishy0777@gmail.com, tahiliani@nitk.edu.in, "Hemendra M. Naik" Subject: [PATCH iproute2-next v4 3/3] tc: correct tc_pie_xstats field documentation Date: Mon, 27 Jul 2026 22:20:28 +0530 Message-Id: <20260727165028.106817-4-hemendranaik@gmail.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20260727165028.106817-1-hemendranaik@gmail.com> References: <20260727165028.106817-1-hemendranaik@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Correct the comments describing the delay and avg_dq_rate fields in struct tc_pie_xstats to match the values exported by the kernel. Update the `delay` field comment to indicate that the value is reported in microseconds, matching the `PSCHED_TICKS2NS() / NSEC_PER_USEC` conversion. Similarly, update the `avg_dq_rate` field comment to indicate that the value is reported in bytes/second, matching the conversion performed by `avg_dq_rate * PSCHED_TICKS_PER_SEC >> PIE_SCALE`. These are documentation-only changes and do not affect the UAPI or runtime behavior. Signed-off-by: Hemendra M. Naik Signed-off-by: Vishal Kamath Signed-off-by: Mohit P. Tahiliani --- include/uapi/linux/pkt_sched.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/uapi/linux/pkt_sched.h b/include/uapi/linux/pkt_sched.h index b99312d2..574463fa 100644 --- a/include/uapi/linux/pkt_sched.h +++ b/include/uapi/linux/pkt_sched.h @@ -920,9 +920,9 @@ enum { struct tc_pie_xstats { __u64 prob; /* current probability */ - __u32 delay; /* current delay in ms */ + __u32 delay; /* current delay in microseconds */ __u32 avg_dq_rate; /* current average dq_rate in - * bits/pie_time + * bytes/second */ __u32 dq_rate_estimating; /* is avg_dq_rate being calculated? */ __u32 packets_in; /* total number of packets enqueued */ -- 2.34.1