From: Cong Wang <xiyou.wangcong@gmail.com>
To: Octavian Purdila <tavip@google.com>
Cc: jhs@mojatatu.com, jiri@resnulli.us, davem@davemloft.net,
edumazet@google.com, kuba@kernel.org, pabeni@redhat.com,
horms@kernel.org, shuah@kernel.org, netdev@vger.kernel.org
Subject: Re: [PATCH net v2 0/3] net_sched: sch_sfq: reject a derived limit of 1
Date: Thu, 3 Apr 2025 14:43:58 -0700 [thread overview]
Message-ID: <Z+8BHkw5Q0KtASdm@pop-os.localdomain> (raw)
In-Reply-To: <20250402162750.1671155-1-tavip@google.com>
On Wed, Apr 02, 2025 at 09:27:47AM -0700, Octavian Purdila wrote:
> Because sfq parameters can influence each other there can be
> situations where although the user sets a limit of 2 it can be lowered
> to 1:
>
> $ tc qdisc add dev dummy0 handle 1: root sfq limit 2 flows 1 depth 1
> $ tc qdisc show dev dummy0
> qdisc sfq 1: dev dummy0 root refcnt 2 limit 1p quantum 1514b depth 1 divisor 1024
>
> $ tc qdisc add dev dummy0 handle 1: root sfq limit 2 flows 10 depth 1 divisor 1
> $ tc qdisc show dev dummy0
> qdisc sfq 2: root refcnt 2 limit 1p quantum 1514b depth 1 divisor 1
>
> As a limit of 1 is invalid, this patch series moves the limit
> validation to after all configuration changes have been done. To do
> so, the configuration is done in a temporary work area then applied to
> the internal state.
>
> The patch series also adds new test cases.
Acked-by: Cong Wang <xiyou.wangcong@gmail.com>
Please carry this Ack when you send v3.
Thanks.
prev parent reply other threads:[~2025-04-03 21:44 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-04-02 16:27 [PATCH net v2 0/3] net_sched: sch_sfq: reject a derived limit of 1 Octavian Purdila
2025-04-02 16:27 ` [PATCH net v2 1/3] net_sched: sch_sfq: use a temporary work area for validating configuration Octavian Purdila
2025-04-02 20:46 ` Stephen Hemminger
2025-04-03 8:50 ` Octavian Purdila
2025-04-02 16:27 ` [PATCH net v2 2/3] net_sched: sch_sfq: move the limit validation Octavian Purdila
2025-04-02 16:27 ` [PATCH net v2 3/3] selftests/tc-testing: sfq: check that a derived limit of 1 is rejected Octavian Purdila
2025-04-03 21:43 ` Cong Wang [this message]
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=Z+8BHkw5Q0KtASdm@pop-os.localdomain \
--to=xiyou.wangcong@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=netdev@vger.kernel.org \
--cc=pabeni@redhat.com \
--cc=shuah@kernel.org \
--cc=tavip@google.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