From: Paolo Abeni <pabeni@redhat.com>
To: "Hemendra M. Naik" <hemendranaik@gmail.com>, netdev@vger.kernel.org
Cc: davem@davemloft.net, edumazet@google.com, kuba@kernel.org,
horms@kernel.org, jiri@resnulli.us, jhs@mojatatu.com,
shuah@kernel.org, linux-kernel@vger.kernel.org,
linux-kselftest@vger.kernel.org, vishy0777@gmail.com,
tahiliani@nitk.edu.in
Subject: Re: [PATCH net-next v3 1/2] net/sched: sch_fq_pie: add per-flow statistics via class ops
Date: Mon, 6 Jul 2026 14:38:16 +0200 [thread overview]
Message-ID: <0926f373-4e0b-494f-8364-51bb14feaf20@redhat.com> (raw)
In-Reply-To: <20260630183702.170798-2-hemendranaik@gmail.com>
On 6/30/26 8:37 PM, Hemendra M. Naik wrote:
> diff --git a/net/sched/sch_fq_pie.c b/net/sched/sch_fq_pie.c
> index 72f48fa4010b..60e85c002ae7 100644
> --- a/net/sched/sch_fq_pie.c
> +++ b/net/sched/sch_fq_pie.c
> @@ -330,7 +330,7 @@ static int fq_pie_change(struct Qdisc *sch, struct nlattr *opt,
> /* tupdate is in jiffies */
> if (tb[TCA_FQ_PIE_TUPDATE])
> WRITE_ONCE(q->p_params.tupdate,
> - usecs_to_jiffies(nla_get_u32(tb[TCA_FQ_PIE_TUPDATE])));
> + usecs_to_jiffies(nla_get_u32(tb[TCA_FQ_PIE_TUPDATE])));
Minor nit, only if a repost is needed for other reasons: unrelated
formatting changes should go in a separate patch.
> @@ -517,10 +519,10 @@ static int fq_pie_dump_stats(struct Qdisc *sch, struct gnet_dump *d)
> st.packets_in = q->stats.packets_in;
> st.overlimit = q->stats.overlimit;
> st.overmemory = q->overmemory;
> - st.dropped = q->stats.dropped;
> - st.ecn_mark = q->stats.ecn_mark;
> - st.new_flow_count = q->new_flow_count;
> - st.memory_usage = q->memory_usage;
> + st.dropped = q->stats.dropped;
> + st.ecn_mark = q->stats.ecn_mark;
> + st.new_flow_count = q->new_flow_count;
> + st.memory_usage = q->memory_usage;
Same here.
@Jamal: the patch LGTM, and I think that the alignment concern raised by
sashiko is not relevant:
https://sashiko.dev/#/patchset/20260630183702.170798-1-hemendranaik%40gmail.com
as user-space already has to deal with 64-bit aligned fields in tc stats.
WDYT?
Thanks,
Paolo
next prev parent reply other threads:[~2026-07-06 12:38 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-06-30 18:37 [PATCH net-next v3 0/2] net/sched: sch_fq_pie: add per-flow class statistics Hemendra M. Naik
2026-06-30 18:37 ` [PATCH net-next v3 1/2] net/sched: sch_fq_pie: add per-flow statistics via class ops Hemendra M. Naik
2026-07-06 12:38 ` Paolo Abeni [this message]
2026-06-30 18:37 ` [PATCH net-next v3 2/2] selftests: tc-testing: add fq_pie per-flow class stats test 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=0926f373-4e0b-494f-8364-51bb14feaf20@redhat.com \
--to=pabeni@redhat.com \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hemendranaik@gmail.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=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