Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=100.103.45.18 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795021889; b=c62G7hHxyMTsZwH+8BY4hUEq0RZ3FKaX1XcHRuJnmSo0ePQO8zBTVQx1ulremd3rZ4I8 vGVjUgThto4zf2xfgHPvLztU3lTKJGwUN2jyAo1H//ZYklmFkwiWuolDoGW70TVnR229H 006jncYmqSuACnnDvGqDIBaT87fazyBTI5gtOIq2AFMqbQj2uRZD6Y74vkQF0ZEY3nBCO kwT438M4i0wHpCC2fuMwZJGIXCouhFU61Q7ldOIa6KJg9foz7wZRXoYcTp0d0angCTq+Z Te5pG+e2FNWrhhLBWu7whbaQlS4rhVUGHUbK0buN7W5UtA6DpXTnnNXUh8QJhc/DAxQ== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795021889; h=Received:DKIM-Signature:From:To:Cc:Subject:Date:Message-ID:X-Mailer: In-Reply-To:References:User-Agent:X-stable:X-Patchwork-Hint: MIME-Version:Content-Transfer-Encoding; bh=8+pA4czmPjy0aoRXqDpWLLhRe4Q1afoxxVHeR8A4G4E=; b=o4JBjmqtFgKLYvlGRDLqgP1n0pkKM/7+sFCt385X2I/OZclzo7QZ/Qmas+s+gfgyVbNf 9Tl6l/pYCdgSthU4QAs7aM5nBr4nPOGmC+R7Z2YoYn5pdnZNtdw/TlIUOkh/N4BnMJWDf AhP8RwvTdBQ9Sgce1zj9M4V0/r8oGx2cOD16nEBmAqRl75sAjQVVs36y1vM1x0Q+hstLx /PepZWIVFJLwhzrTOwYIG7Ccdeiuje+FE9expR8S8OkgltNkqAwc2rWsRLO8a92Zac7iV bBpJP7W6DBgPoT8aAfBUQRoNguZRc4TnmMZpUvdkye6+YRap0J0Z5Yf7F6uunDL9RyA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dkim=pass header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=yR0jjaE6; arc=none smtp.remote-ip=100.103.45.18 Received: from smtp.kernel.org (quasi.space.kernel.org [100.103.45.18]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (prime256v1)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 17859606A31C; Wed, 18 Nov 2026 17:11:29 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.a=rsa-sha256 header.s=korg header.b=yR0jjaE6 Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70F961F000C4; Wed, 18 Nov 2026 17:11:28 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1795021888; bh=8+pA4czmPjy0aoRXqDpWLLhRe4Q1afoxxVHeR8A4G4E=; h=From:To:Cc:Subject:Date:In-Reply-To:References; b=yR0jjaE6S9irmSMRHxIJZyoMpjqkGW/6JZSCPg5NNB42mmL7bfPsWYs1WPl426YzB SF3SoZw8EqQduh7lwoLRFseJTKmZg7mMUpQkvqfhV5kNA4ULv6oKb2Ta2q4mPdnav+ m6kRMNHwbXBBEA8RJ5+QdT5LNuGet7phlQARD3fw= From: Greg Kroah-Hartman To: stable@vger.kernel.org Cc: Greg Kroah-Hartman , patches@lists.linux.dev, Lorenzo Bianconi , Tao Gong , Paolo Abeni , Sasha Levin Subject: [PATCH 7.3 2467/2651] net: dsa: mt7530: trap frames to conduit in MFC on EN7581 and AN7583 Date: Wed, 18 Nov 2026 16:01:47 +0100 Message-ID: <20261118150413.825713570@linuxfoundation.org> X-Mailer: git-send-email 2.56.0 In-Reply-To: <20261118150247.972732815@linuxfoundation.org> References: <20261118150247.972732815@linuxfoundation.org> User-Agent: quilt/0.69 X-stable: review X-Patchwork-Hint: ignore X-Mailing-List: patches@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 7.3-stable review patch. If anyone has any objections, please let me know. ------------------ From: Tao Gong [ Upstream commit a58b221496dd576191095d12996f39cee58cf6a8 ] On EN7581, STP BPDUs received on switch user ports never reach the CPU. Like MT7531 and MT7988, EN7581 and AN7583 only set the CPU port bitmap in MT7531_CFC and are skipped by mt753x_conduit_state_change(). On EN7581 this is not enough: trapped BPDUs reach the CPU only when MT7530_CPU_EN and MT7530_CPU_PORT are also set in MT753X_MFC. Add EN7581 and AN7583 to mt753x_conduit_state_change(). Tested on an AN7581 board (Gemtek W1700K, airoha,en7581-switch), where only lan3 and lan4 are switch user ports. With RSTP BPDUs arriving on lan4: - without this patch, none reached the CPU; - setting CPU_EN and CPU_PORT by hand delivered them, and clearing them stopped them; - with this patch, they are received from boot. Only BPDUs were tested. AN7583 is untested and is included because the driver sets it up like EN7581. Fixes: 2b0229f67932 ("net: dsa: mt7530: Add EN7581 support") Fixes: d76556db10bf ("net: dsa: mt7530: Add AN7583 support") Acked-by: Lorenzo Bianconi Signed-off-by: Tao Gong Link: https://patch.msgid.link/20261022205649.2351696-1-gongtao0607@gmail.com Signed-off-by: Paolo Abeni Signed-off-by: Sasha Levin --- drivers/net/dsa/mt7530.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c index 96832852c65a5..5dbcea38209f7 100644 --- a/drivers/net/dsa/mt7530.c +++ b/drivers/net/dsa/mt7530.c @@ -3335,10 +3335,13 @@ mt753x_conduit_state_change(struct dsa_switch *ds, /* Set the CPU port to trap frames to for MT7530. Trapped frames will be * forwarded to the numerically smallest CPU port whose conduit - * interface is up. + * interface is up. On EN7581, trapped BPDUs do not reach the CPU port + * without this, even with the CPU port bitmap set. AN7583 is set up + * the same way as EN7581. */ if (priv->id != ID_MT7530 && priv->id != ID_MT7621 && - priv->id != ID_EN7528) + priv->id != ID_EN7528 && + priv->id != ID_EN7581 && priv->id != ID_AN7583) return; mask = BIT(cpu_dp->index); -- 2.53.0