From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=pass header.oldest-pass=0 smtp.remote-ip=185.203.200.13 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== 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== 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 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) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org 11DDB606A322 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=pengutronix.de Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key, unprotected) header.d=pengutronix.de header.i=@pengutronix.de header.a=rsa-sha256 header.s=20260414 header.b=EgpP3GXB 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) 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== 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== 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== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=relay-from-ptx.office.stw.pengutronix.de smtp.mailfrom=ore@pengutronix.de Received: by ptx.office.stw.pengutronix.de (Postfix, from userid 1058) id 5EC4B1BF5D1; Wed, 02 Dec 2026 14:50:57 +0100 (CET) Date: Wed, 2 Dec 2026 14:50:57 +0100 From: Oleksij Rempel 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 Message-ID: References: <20261130-rtl8365mb-ets-strict-v2-2-9639f6f40499@pengutronix.de> <179613157942.3146.15452909686182465491@kernel.org> X-Mailing-List: netdev@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline 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