🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: linux.kernel.netdev
Article #25817

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

#25817
From: Oleksij Rempel
Date: Wed, 02 Dec 2026 13:50
38 lines
11562 bytes
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
Technical Details
Message-ID: <axAiQXEQBgdKJsEw@pengutronix.de>
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375825-linux-kernel-netdev=dewy.ru
References: <20261130-rtl8365mb-ets-strict-v2-2-9639f6f40499@pengutronix.de> <179613157942.3146.15452909686182465491@kernel.org>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-wdc.pugleaf.net!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!usenet.network!.POSTED!vger.kernel.org!netdev+bounces-375825-linux-kernel-netdev=dewy.ru
From: o.rempel@pengutronix.de (Oleksij Rempel)
Newsgroups: linux.kernel.netdev
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
Organization: Usenet Network
Message-ID: <axAiQXEQBgdKJsEw@pengutronix.de>
References: <20261130-rtl8365mb-ets-strict-v2-2-9639f6f40499@pengutronix.de>
 <179613157942.3146.15452909686182465491@kernel.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=utf-8
Injection-Info: usenet.network;
	logging-data="1983608"; mail-complaints-to="abuse@usenet.network"
Cancel-Lock: sha1:8g+Rl6/doF8z0L/0QZyx07mAKtM= sha256:gLIb2NG6cJgJx2E1EdluSrjF8XOQh4FXjkGGBLhOkx4=
	sha1:y8wl9SITV2oJezYBkHaTRs0vm2Y= sha256:03VOi+qk8iNHJuf1SNLZZRmJ1p8NsLlsNgQ28dsKjPQ=
Content-Disposition: inline
List-ID: <netdev.vger.kernel.org>
X-Mailpost-Empty-Hdrs: X-Spam-Level
X-Received: from localhost (localhost [127.0.0.1])
	by mail.dewy.ru (Postfix) with ESMTP id 2AD5C11765B; Wed,  2 Dec 2026 16:51:24 +0300 (MSK)
X-Virus-Scanned: Debian amavisd-new at usenet.network
X-Spam-Flag: NO
X-Spam-Score: -3.15
X-Spam-Status: No, score=-3.15 tagged_above=-9999 required=6.31
	tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1,
	HEADER_FROM_DIFFERENT_DOMAINS=0.249, MAILING_LIST_MULTI=-1,
	RCVD_IN_DNSWL_MED=-2.3, SPF_HELO_NONE=0.001, SPF_PASS=-0.001,
	URIBL_BLOCKED=0.001] autolearn=ham autolearn_force=no
X-Authentication-Results: mail.dewy.ru (amavisd-new); dkim=pass (2048-bit key)
	header.d=pengutronix.de
X-Received: from mail.dewy.ru ([127.0.0.1])
	by localhost (mail.dewy.ru [127.0.0.1]) (amavisd-new, port 10024)
	with ESMTP id W4jEJusb1SWY;
	Wed,  2 Dec 2026 16:51:20 +0300 (MSK)
X-Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=172.232.135.74; helo=sto.lore.kernel.org; envelope-from=netdev+bounces-375825-linux-kernel-netdev=dewy.ru@vger.kernel.org; receiver=<UNKNOWN> 
X-Authentication-Results: OpenDMARC; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Received: from sto.lore.kernel.org (sto.lore.kernel.org [172.232.135.74])
	by mail.dewy.ru (Postfix) with ESMTPS id 7CC13117656; Wed,  2 Dec 2026 16:51:12 +0300 (MSK)
X-Received: from smtp.subspace.kernel.org (conduit.subspace.kernel.org [100.77.114.92])
	by sto.lore.kernel.org (Postfix) with ESMTP id 15A4960277B; Wed,  2 Dec 2026 13:51:12 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-ARC-Seal: i=3; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796219471;
	b=mS6WpxgvhiAEPaug7CMIi7lCs19OhvAJBUfeXhDf2Q6IkFzRGo3ibs7oPZkYXi9l6cf5
	 k8EgOtk+kAzDuAzkL7u9hqGnpTUzRIXPDmwBCRNpvc/A65r5/yW4YH2CXHwMEUjI7bGXj
	 yUJv+to2aDTxYjNXkgdLIvOnaMRyO0wI7gJMhli92v6J+DtRaZHNIuA+L6Ma5wzjNalFj
	 HOkTUuzJyR2SiyzbEOTWGI5YD9D8Walr2VLu7YxqUbHAzHxyQY3tETx/XZmEbPBIWqRrf
	 xnBrVYExXcpWUPTbf6SjcEhK1gRX/URlZvRZkPjWIeJAMdcouAhfeuEP/V+Aem/TqUA==
X-ARC-Message-Signature: i=3; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796219471;
	h=X-Original-To:Received:DMARC-Filter:Received:DKIM-Signature:Received:
	 Date:From:To:Cc:Subject:Message-ID:References:X-Mailing-List:List-Id:
	 List-Post:List-Help:List-Subscribe:List-Unsubscribe:List-Owner:
	 Precedence:MIME-Version:Content-Type:Content-Disposition:In-Reply-To;
	bh=z1Jeg/xifXDqG3X+sOov+CHJXlfLdgfpx0uFSm6AYKw=;
	b=AAkE3BwlvmkJ1JxKMO4fkYJj8CnrLJaz8fSJVqzx6W5tPwL2p0bqmzNDSna22wb3wpHN
	 A8k0ZghDLcNtBsDL43WkzhllD1gLfBVf5g89FF47mJPGbFAXzQQdgMZju7yaeVpv82pHI
	 JVOz4H9UtY7dPLaNLv2Hr+VJeCW756PlNcMSPOT5tq1Xxif/ijVxcRJrsYofoX0mUkudZ
	 9C5N0hMyILdlLHMA32y86NAfM29sVHAiD/x+XQQV2j8PUAtDceNscXgf3pPj0XqApRS33
	 QBTJtc8rWmpmwMfDXUUYEjOG/i3jdllSsyLqV/vJMXZSu3RFYuUpcBdCN8uzttAatqg==
X-ARC-Authentication-Results: i=3; smtp.subspace.kernel.org; 
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=EgpP3GXB;
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	arc=pass header.oldest-pass=0 smtp.remote-ip=127.0.0.1
X-Received: from localhost.localdomain (localhost [127.0.0.1])
	by smtp.subspace.kernel.org (Postfix) with ESMTP id 3FDE7606A323;
	Wed,  2 Dec 2026 13:51:11 +0000 (UTC)
X-Authentication-Results: smtp.subspace.kernel.org;
	dkim=pass (2048-bit key) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=EgpP3GXB
X-Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-ARC-Seal: i=2; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=pass;
	t=1796219465;
	b=eDMVkiHPWZlA1SxxLCjzk2M2K5W58sSuLo0FO0YKdIMRSuDiQVHbVDUrdifDZxmZJ8wf
	 Bna1LKBjPqpXcFdwTRuN++1+EXqjsPiWcdfnURlbNXZMvpTgy6mCX3AidHzopuMlW8Yhc
	 dha0/87hSRBXpuqSEGnl+nqCJ+Vcu8VPYHlAXX4d6qy0wWs2Z1PUyPvx4ZYImuCR0XLpq
	 3oFP5U/xiUkgg2DxnToVwDmiRCW+v0ZCjcE4szlGuY6NWT6lz3iaAS3uVmLy383GGd2ql
	 zFztqHVmqi+lK/1v5sMZw35ijsDOgbgid+A9YIRaPTAMCLARBGnEsf/c1yEpHmTxpIQ==
X-ARC-Message-Signature: i=2; d=subspace.kernel.org; s=arc20261015;
	a=rsa-sha256; c=relaxed/relaxed; t=1796219465;
	h=DMARC-Filter:Received:DKIM-Signature:Received:Date:From:To:Cc:
	 Subject:Message-ID:References:MIME-Version:Content-Type:
	 Content-Disposition:In-Reply-To;
	bh=z1Jeg/xifXDqG3X+sOov+CHJXlfLdgfpx0uFSm6AYKw=;
	b=Nf11i9vWA+cIhrlbdkbbmd5s4Df+kJijzZzozRxCmxwTzQPgDW5JXhjAPwdAu11syZc7
	 1V+0bqasBYNRaNrpVh0O2sb3eYoa5g0OVs5mx2teDpK5eubU5Urw00YhEW/df/2i6NThq
	 WFE+BmMv1uD1afgFSjl/87tMp5amphem6/BEE5heJTCagUdjv+ufZyNWJlTnywCFfkibw
	 yrM8mwRAqXFbyPbQTNsdwyh8m8yoCfbyWoZ+X/1DfLVqda0RvHhZQM89HJsE+JZH/QwhN
	 VID/C+CW+A6aNEFwqB6k2J0DqCKzDHAP56uYLluUd4r6WNCYMXNkzGF7/UV3kZkO7+A==
X-ARC-Authentication-Results: i=2; smtp.subspace.kernel.org; 
	dmarc=none header.from=pengutronix.de;
	spf=pass smtp.mailfrom=pengutronix.de;
	dkim=pass header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=EgpP3GXB;
	arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13
X-Received: from mx1.white.stw.pengutronix.de (mx1.white.stw.pengutronix.de [185.203.200.13])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)
	 key-exchange X25519 server-signature ECDSA (prime256v1) server-digest SHA256)
	(No client certificate requested)
	by smtp.subspace.kernel.org (Postfix) with ESMTPS id 11DDB606A322;
	Wed,  2 Dec 2026 13:51:03 +0000 (UTC)
X-DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11DDB606A322
X-Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de
X-Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de
X-Received: from ptx.office.stw.pengutronix.de (ptx.office.stw.pengutronix.de [IPv6:2a0a:edc0:0:900:1d::109])
	(Authenticated sender: relay-from-ptx.office.stw.pengutronix.de)
	by mx1.white.stw.pengutronix.de (Postfix) with ESMTPSA id 734442024C3;
	Wed, 02 Dec 2026 14:50:57 +0100 (CET)
X-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1796219457;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=z1Jeg/xifXDqG3X+sOov+CHJXlfLdgfpx0uFSm6AYKw=;
	b=EgpP3GXBCGE0HFBnfhvI7YGinUH03A3zuTQtQLf8v8gJLr5tJpi/rX7wRUyqDzqXEPFFjq
	I0e6WiQDMRJd6NuxeZ9jMCoFU5oEJrDbWLtpujbFWYfSBpM8q2rEe/iuNQrBLYo7h0Rfev
	DG6wvwo1XECkz44qYF8kS6qPTIzQU+VT3bPB9ANn8f82IVxbJF9fNs08QoyZ1Itxe9s87T
	7KFIJhgeN42oTdhNWEZTex5Gzp+mquceSpdhlEWjeJNHHq+L3iF/1pq1JjWmuP+nw3W9DI
	jQmMnx4LmUUQVB+wHj31U5qbHXVWMXUztVF03IvCWsQKO23nZFb7Yndv5yYIrA==
X-ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=pengutronix.de;
	s=20260414; t=1796219457;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:cc:mime-version:mime-version:content-type:content-type:
	 in-reply-to:in-reply-to:references:references;
	bh=z1Jeg/xifXDqG3X+sOov+CHJXlfLdgfpx0uFSm6AYKw=;
	b=dynM0RtC/o4sZpB9Nt6BYKjEenlIkNcIIeFc3Fo4Di2vgHqkj4+140A+iqjdb2hYrE3TM4
	glAtkwiRMZjL6bYGf08K8n3S58Jv3rDV/d0X/pC8UwF9M5KhZpjs+Kd/9GQ1U8s36kjeIE
	fUhvVhK/RJCHXoE0LXQimhQxo6B2R8XnKgZkQa9+V3oUHsC4S++HIrRpsRhH28W+SMSJYb
	PMtXin8hZtt3A63kO7q7QYcGnPvMH67/dPu+RmbXoHlQ6g6ZTTet33Kh+cHhZCOWsRJjFB
	Z0iN6IWCyx1mHKImQkNFk2MJXMnQ8MfkkFzbBASXbkMOdBo74YQ09eJ+yJLj7w==
X-ARC-Seal: i=1; s=20260414; d=pengutronix.de; t=1796219457; a=rsa-sha256;
	cv=none;
	b=DkF478wnvGab558glRnmuC20UoqXJvgUN3DHZFkLkkK+QZxk/zc7SMzcDYA9WxySakJnpJ
	47YdliXCFQS6TM/84IQ0QWELhIH24fjmOO2sec4iIZvgCV61j5ZXdBicuSR4rJ87G24nUu
	rejI/Ze3HWl8zvyLLVMRrRknXF0Ui5ZnHC0red4Y2/BFzLo1oeaC+lUIqfJglmioENadwX
	Mg/ihasijenEcd6jWG/hEcUPVw/OfrvoAfuJoozmuiEeO0buUiIMRrPD6aPqtyZ2wc0MD5
	gZRiVaru5d0AOzbI1vgWGrIzwZOunfPn0/VkA5b9loj5CH7+ftortDCgC8hUNA==
X-ARC-Authentication-Results: i=1;
	ORIGINATING;
	auth=pass smtp.auth=relay-from-ptx.office.stw.pengutronix.de smtp.mailfrom=ore@pengutronix.de
X-Received: by ptx.office.stw.pengutronix.de (Postfix, from userid 1058)
	id 5EC4B1BF5D1; Wed, 02 Dec 2026 14:50:57 +0100 (CET)
X-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
X-Mailing-List: netdev@vger.kernel.org
X-List-Post: <mailto:netdev@vger.kernel.org>
X-List-Help: <mailto:netdev+help@vger.kernel.org>
X-List-Subscribe: <mailto:netdev+subscribe@vger.kernel.org>
X-List-Unsubscribe: <mailto:netdev+unsubscribe@vger.kernel.org>
X-List-Owner: <mailto:netdev+owner@vger.kernel.org>
X-Precedence: list
X-In-Reply-To: <179613157942.3146.15452909686182465491@kernel.org>