mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Oleksij Rempel <o.rempel@pengutronix.de>
To: netdev-bot+sashiko@kernel.org
Cc: davem@davemloft.net, edumazet@kernel.org, kuba@kernel.org,
	pabeni@redhat.com, linusw@kernel.org, luizluca@gmail.com,
	andrew@lunn.ch, olteanv@gmail.com, alvin.sipraga@analog.com,
	horms@kernel.org, netdev@vger.kernel.org,
	linux-kernel@vger.kernel.org, kernel@pengutronix.de
Subject: Re: [PATCH net-next v2 2/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority scheduling
Date: Wed, 2 Dec 2026 14:50:57 +0100	[thread overview]
Message-ID: <axAiQXEQBgdKJsEw@pengutronix.de> (raw)
In-Reply-To: <179613157942.3146.15452909686182465491@kernel.org>

On Tue, Dec 01, 2026 at 01:26:19PM +0000, netdev-bot+sashiko@kernel.org wrote:
> Is the last sentence accurate in all cases? With hw-tc-offload off,
> ets_offload_destroy() returns early on !tc_can_offload(dev), so deleting
> the qdisc leaves the port strict.

Right, it holds only if hw-tc-offload is still on when the qdisc is
deleted.

> Could these details go into the commit message itself?

Yes. If a v3 is needed, the hw-tc-offload case, the TC_ETS_STATS point
and the failed replace go into the commit message. I don't plan a v3
only for this.

> Should a non-default priomap be refused here, or programmed into the
> switch?

Same answer as for v1:
https://lore.kernel.org/all/awbW1qIMt-Oeik10@pengutronix.de/
It is not refused because the driver cannot check a priomap against the
switch map. The commit message says so.

> Can this leave the port on WFQ while an accepted all-strict root qdisc
> is still installed?

Yes. sch_ets sends the REPLACE from ets_qdisc_init(). That is before
qdisc_create() has finished. If the rate estimator then fails, the core
sends only the DESTROY for the new qdisc. It does not offload the old
qdisc again. The port goes back to WFQ, the driver's default, and the
next "tc qdisc replace" sets it to strict again.

The old qdisc is not offloaded again because of the order in the qdisc
core. I think the fix belongs there, not in a second handle in each
driver.

Best Regards,
Oleksij

      reply	other threads:[~2026-12-02 13:51 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-11-30 13:23 [PATCH net-next v2 0/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority Oleksij Rempel
2026-11-30 13:23 ` [PATCH net-next v2 1/2] net: dsa: realtek: rtl8365mb: default the egress scheduler to WFQ Oleksij Rempel
2026-11-30 13:23 ` [PATCH net-next v2 2/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority scheduling Oleksij Rempel
2026-12-01 13:26   ` netdev-bot+sashiko
2026-12-02 13:50     ` Oleksij Rempel [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=axAiQXEQBgdKJsEw@pengutronix.de \
    --to=o.rempel@pengutronix.de \
    --cc=alvin.sipraga@analog.com \
    --cc=andrew@lunn.ch \
    --cc=davem@davemloft.net \
    --cc=edumazet@kernel.org \
    --cc=horms@kernel.org \
    --cc=kernel@pengutronix.de \
    --cc=kuba@kernel.org \
    --cc=linusw@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=luizluca@gmail.com \
    --cc=netdev-bot+sashiko@kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=olteanv@gmail.com \
    --cc=pabeni@redhat.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®