From: "Hemendra M. Naik" <hemendranaik@gmail.com>
To: horms@kernel.org
Cc: davem@davemloft.net, edumazet@google.com, hemendranaik@gmail.com,
jhs@mojatatu.com, jiri@resnulli.us, kuba@kernel.org,
linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org,
netdev@vger.kernel.org, pabeni@redhat.com, shuah@kernel.org,
tahiliani@nitk.edu.in, vishy0777@gmail.com
Subject: Re: [PATCH net-next v4 1/3] net/sched: sch_fq_pie: add per-flow statistics via class ops
Date: Tue, 1 Sep 2026 22:55:24 +0530 [thread overview]
Message-ID: <20260901172524.39650-1-hemendranaik@gmail.com> (raw)
In-Reply-To: <20260731095635.GG51943@horms.kernel.org>
Hi Simon,
Thanks for the review and for the Sashiko pointer. We have been through
all six findings and are working on v5. For each item below, a short note
on what was raised, then what we plan to do:
(1) [High] Filter attachment and TC_ACT_CONSUMED — Sashiko noted that
adding cl_ops with .tcf_block would let users attach tc filters to fq_pie
for the first time, but fq_pie_classify() has no TC_ACT_CONSUMED case
(risk of double-free if an action like ct consumes the skb).
We will remove .tcf_block, .bind_tcf, and .unbind_tcf from cl_ops.
We only need walk/dump for tc -s class show; filter attach to fq_pie
should stay disabled as before v1.
(2) [Medium] tc_fq_pie_xstats layout — Sashiko asked whether appending
type/class fields after the nine qdisc counters breaks userspace, compared
to fq_codel's type-first union layout.
We plan no struct change. fq_pie already shipped a flat 36-byte struct;
we will keep appending after those counters so old tc binaries keep
working. Class stats still need the matching iproute2 update.
(3) [Low] Empty tc_fq_pie_xqd_stats placeholder — Sashiko flagged the
empty placeholder struct and unused union arm in pkt_sched.h.
We will remove the placeholder and the union; class_stats will be a
direct member.
(4) [Low] Class handle at flows 65536 — Sashiko noted that with
flows_cnt == 65536, fq_pie_dump_class() uses TC_H_MIN(cl) and the last
flow's handle wraps to minor 0 in userspace.
We will cap flows at 65535 in fq_pie_change() and update selftest 83be
to expect flows 65536 to fail.
(5) [Medium] Selftest case 83c0 — Sashiko noted v4 used matchCount 0
with no traffic, so the test passes even without class ops and never
checks per-flow stats output.
We will rewrite 83c0 with real traffic (TBF + fq_pie, ping on $DUMMY)
and matchCount 1 on tc -s class show (prob/delay/deficit).
(6) [Low] tools/ UAPI mirror — Sashiko noted patch 3/3 also touched
tools/include/uapi/linux/pkt_sched.h, but that copy is already stale in
layout; comment-only edits there do not help.
We will drop the tools/include hunk from patch 3/3 and touch only
include/uapi/linux/pkt_sched.h there.
We will post v5 with these changes once ready.
Thanks,
Hemendra
next prev parent reply other threads:[~2026-09-01 17:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-07-27 16:40 [PATCH net-next v4 0/3] net/sched: sch_fq_pie: add per-flow class statistics Hemendra M. Naik
2026-07-27 16:40 ` [PATCH net-next v4 1/3] net/sched: sch_fq_pie: add per-flow statistics via class ops Hemendra M. Naik
2026-07-31 9:56 ` Simon Horman
2026-09-01 17:25 ` Hemendra M. Naik [this message]
2026-07-27 16:40 ` [PATCH net-next v4 2/3] selftests: tc-testing: add fq_pie per-flow class stats test Hemendra M. Naik
2026-07-27 16:40 ` [PATCH net-next v4 3/3] net/sched: pie: correct tc_pie_xstats field documentation Hemendra M. Naik
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=20260901172524.39650-1-hemendranaik@gmail.com \
--to=hemendranaik@gmail.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=horms@kernel.org \
--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=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=tahiliani@nitk.edu.in \
--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
all inboxes | Powered by JetHome®