Re: [PATCH net-next v2 2/2] net: dsa: realtek: rtl8365mb: offload ETS strict priority scheduling

From: Oleksij Rempel

Date: Wed Dec 02 2026 - 08:51:12 EST


On Tue, Dec 01, 2026 at 01:26:19PM +0000, netdev-bot+sashiko@xxxxxxxxxx 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@xxxxxxxxxxxxxx/
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