[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20250630092316.031b29d8@kernel.org>
Date: Mon, 30 Jun 2025 09:23:16 -0700
From: Jakub Kicinski <kuba@...nel.org>
To: "Chia-Yu Chang (Nokia)" <chia-yu.chang@...ia-bell-labs.com>
Cc: "alok.a.tiwari@...cle.com" <alok.a.tiwari@...cle.com>,
"pctammela@...atatu.com" <pctammela@...atatu.com>, "horms@...nel.org"
<horms@...nel.org>, "donald.hunter@...il.com" <donald.hunter@...il.com>,
"xandfury@...il.com" <xandfury@...il.com>, "netdev@...r.kernel.org"
<netdev@...r.kernel.org>, "dave.taht@...il.com" <dave.taht@...il.com>,
"pabeni@...hat.com" <pabeni@...hat.com>, "jhs@...atatu.com"
<jhs@...atatu.com>, "stephen@...workplumber.org"
<stephen@...workplumber.org>, "xiyou.wangcong@...il.com"
<xiyou.wangcong@...il.com>, "jiri@...nulli.us" <jiri@...nulli.us>,
"davem@...emloft.net" <davem@...emloft.net>, "edumazet@...gle.com"
<edumazet@...gle.com>, "andrew+netdev@...n.ch" <andrew+netdev@...n.ch>,
"ast@...erby.net" <ast@...erby.net>, "liuhangbin@...il.com"
<liuhangbin@...il.com>, "shuah@...nel.org" <shuah@...nel.org>,
"linux-kselftest@...r.kernel.org" <linux-kselftest@...r.kernel.org>,
"ij@...nel.org" <ij@...nel.org>, "ncardwell@...gle.com"
<ncardwell@...gle.com>, "Koen De Schepper (Nokia)"
<koen.de_schepper@...ia-bell-labs.com>, "g.white@...lelabs.com"
<g.white@...lelabs.com>, "ingemar.s.johansson@...csson.com"
<ingemar.s.johansson@...csson.com>, "mirja.kuehlewind@...csson.com"
<mirja.kuehlewind@...csson.com>, "cheshire@...le.com" <cheshire@...le.com>,
"rs.ietf@....at" <rs.ietf@....at>, "Jason_Livingood@...cast.com"
<Jason_Livingood@...cast.com>, "vidhi_goel@...le.com"
<vidhi_goel@...le.com>
Subject: Re: [PATCH v20 net-next 1/6] sched: Struct definition and parsing
of dualpi2 qdisc
On Mon, 30 Jun 2025 15:51:11 +0000 Chia-Yu Chang (Nokia) wrote:
> > > Thanks again for other comments again, and I will take actions in the next version.
> > >
> > > As there is only one step marking in L-queue, so we still need two
> > > WRITE_ONCE even two attributes (one for threshold in packets and one
> > > in time) are used.
> > >
> > > When applying the step marking, we need to know either the computation
> > > is based on the sojourn time or queue length.
> >
> > Let me ask again - why do you use WRITE_ONCE() at all if the
> > modification takes the qdisc lock? Which reader are you afraid of
> > racing with?
>
> This still needs 2 WRITE_ONCE even "step_thresh" (NLA_U32) and
> "step_in_packtes" (NLA_FLAG) are replaced with "step_pkt_thresh"
> (NLA_U32) and "step_time_thresh" (NLA_U32) - which was proposed in my
> another email.
If you don't understand the question - ask for clarifications :/
Powered by blists - more mailing lists