Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=74.125.82.169 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1796410956; b=1vsAX3SlITMnmTCp8q/QfJijG+JmCeQumIx71YwGbGlPpi8d7nHcgBL5lbm0t6AYfKvT JdHGthX65/f1XzPumRm05VcoNK+YxjHriYEMq0w8wYyR1DnDU3Su6NjTrA9HZSXdzfwK9 HjdFMan/+BNqb1HN0jx/MepKZeMPFjDBOOrk3VmwyQ5PZCIraOyI/fdXsY8MQ1VMCStWM YzLmwGEuvE9turXFLTHH7MkvyvA+BnkRq3uUqP2xgl7qBApknVUXu0/d6EvASgbWy1iW0 3d7ORaCeEei2FG+tYraJGVRWitsF+o0a4KvAkTsoJXQuTW6lyoBHmSYWYffj1U4dL/Q== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1796410956; 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=LrXsda7Q/wV7+l2k+sGQxx8wXojvBKGw7M+uJmFtdYU=; b=Hluml9C/x4WCmqMz07ihM3SXsTo9pRarfpyvFgXItR8ReU086h4UEdUG41T+lfwHCVP0 Me55OJtTMejVeti4BzL1J0fQpucRf+coIYZBOegAJuHY8VmFUsDMGMM7oBzbvpuD+hmdK RycMUdaY5g6vCdYbzWrC0kDCIw/iKZUR6O0AIi0xxGD2cNRI+pgigVmXSmM+R93kaso0n Atkdggf6c3T4+bILGDWinY4CqC/A//Sv4IbiJyA6C+fOy9Z2Mh9T+HruZXEpYpWD1Gi8D husr/uie2cgdeZqj50K8jHoGcO2VzyAkq2bun7s8F2x4B8fFakoqtnGK1Ru+XlPYjBw== 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=yYTcSBl7; arc=none smtp.remote-ip=74.125.82.169 Received: from mail-dy1-f169.google.com (mail-dy1-f169.google.com [74.125.82.169]) (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 2388B606A686 for ; Fri, 4 Dec 2026 19:02:35 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 2388B606A686 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=yYTcSBl7 Received: by mail-dy1-f169.google.com with SMTP id 5a478bee46e88-38190551625so1466253eec.1 for ; Fri, 04 Dec 2026 11:02:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20260707; t=1796410955; x=1797015755; 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=LrXsda7Q/wV7+l2k+sGQxx8wXojvBKGw7M+uJmFtdYU=; b=yYTcSBl7xJB4gUPL4XRlD53APksXz3ZfMYEfOL2vRwum6zxkrPn4U/ja6pxfU9aNzG FF3Rw2mzhCen9A1/hRg1a37jPhEzP/inv2oEVrTMY05AykDZI/mCS4pVaGJhHffN1Jhb WSydlTgy9p5iqMcOAQfmBz+/RhJHgHScU3JnKhv8yjKGK6DVupoXGe+JAbI+hemlEyiH hO8dm+coYjnsK0NOXJS6UtX3tn+/Tz+B/wPerz2YqdL7PWJmCKwz2s8zA8PwWSSiXgiW +Iqc0W39TNgdzABO/4SjgGQNomqDuoG9oU9hyLaUqmFFzwK23uP1gz74fV+WxzANLB9W KAPg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20260707; t=1796410955; x=1797015755; 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=LrXsda7Q/wV7+l2k+sGQxx8wXojvBKGw7M+uJmFtdYU=; b=dVwkO4xokoufEsaQw6Q0Oza34065MziFvh2b6N/yNY+RSX8GaHTFkR/d5tWR9D+EdH LcrY0CQyt+WhIKzJ0+tvMZMo1YToyoYWpWRz+TFgZDglZc1BWXFCu30n1N+hxeTDtPW/ AP0+z9JuXMXtXT3QJhEfRY5djAJQg7AuN3sumliS2DNjp1Lob0etyBP7LcmwPwqQ3CQg ZJGcwftmYvhJvYMSVrfT1t3betGWEGfoO5psuEUmzquevzRXOp39xPHoaw9ZyGN/K0lK GGcGtrHdPjw8QN2wu8sgWz2qsUM94iT3vUZffUH2uUE52NRglRpZ1zeQ1duupSlIwRPB yQMA== X-Forwarded-Encrypted: i=1; AL+hErHZ6NYwuH3tYLj4t0bJd8Ilh3rJgsitQ1aXOa6RaDBHBMTa0tw8MJKh5hUfRAhmiQojXxD2GhvNbyU5L10mLwE=@vger.kernel.org X-Gm-Message-State: AB4q+uHY6Dpnv2lY+CcYCwG47chX/6UwTucVHdw7hw+tpHNopdsZMa3v RprNWX//SoXr/X584M2Bzqg2kkUlyOHii87GIpWhiHq+umW6rzXZLPJb X-Gm-Gg: AZFdTZc3MUT55goYyoby0IxytCHhFyLa/0wvM5aSzs1je6dJY9zn8rk+5J0XhToahbP 45eGTehUpBmV1lmmwqMa/AJkzkUw+p1DnwLaayTSwTyqM2GYnSl8ioZfeVYPmFUl19uSYVHJKJi f/20InoXDpraSSzv9hZUTNnz6/Dpj/U55zcTr6kHN1Bgwhl7s950NJDgDH21p6Xr8K/gpqhNPtE v2QtFx7z94+vbNS54lqjHI4ZLNyijJoJFcpGmeoaWeAM0w/dl1ob8KFPKZB5vx651Lwo9WJ+Mvx 11j/RvS2b9Ncl2jfr9UzW77dAENaEbh6Sq1XywzC2jmlhIGyqnnbMQIVd7CkI3/gf4qCMSEPdJ2 sJsn5AzpGGIR0Dv5kvyBO4vzwHVtPCoW6sO0sAku5cS5uOAMl7CX5n7wVsq2pOgZbSAzbs6LwNM UPqTeySHbpw19BkyrWoSMFbq8ypxfzhT7gn18HQfWn1++8EOyVf3dEZXc6MFM9cdm7uDBQa/p19 yHAeY9Gcm5afvOlIICrjBWjOsehvxc+1xu3viy56xJkK6oqgNhKg532p5xI4XtrwIph5YnDMuu0 kQIF99UNu0rh8l+Kg3795ueOL4+sDimP4irOI9e4YBtYt39t5rAILgbACmezVwWFIsDG5FYirGI fyjJVtJHD6lZNU9MmS1oZf3L50QLG X-Received: by 2002:a05:7300:6d2c:b0:386:aff0:6109 with SMTP id 5a478bee46e88-38751fe24b0mr3693292eec.2.1796410955188; Fri, 04 Dec 2026 11:02:35 -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.28 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 04 Dec 2026 11:02:34 -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 3/4] net/sched: pie: correct tc_pie_xstats field documentation Date: Sat, 5 Dec 2026 00:31:42 +0530 Message-Id: <20261204190143.633361-4-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 The comments describing struct tc_pie_xstats do not match the values exported by the kernel. Update the delay field comment to microseconds (PSCHED_TICKS2NS() / NSEC_PER_USEC). Update avg_dq_rate to bytes/second (avg_dq_rate * PSCHED_TICKS_PER_SEC >> PIE_SCALE). Documentation-only; no UAPI layout or runtime change. Touch include/uapi/linux/pkt_sched.h only 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 fef848eaaab2..445a041cd103 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