]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: mt7530: Fix traffic flooding for MMIO devices
authorLorenzo Bianconi <lorenzo@kernel.org>
Tue, 4 Mar 2025 08:50:23 +0000 (09:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 13 Mar 2025 12:02:09 +0000 (13:02 +0100)
commitbb73c406b4c6078c02ab60a48f9a73288b15ff9d
treeb898e9e151c8c7c84036d2be692c154e7bc80380
parent822c6a92d64c9c1044acf95df442a67fbc4212f7
net: dsa: mt7530: Fix traffic flooding for MMIO devices

[ Upstream commit ccc2f5a436fbb0ae1fb598932a9b8e48423c1959 ]

On MMIO devices (e.g. MT7988 or EN7581) unicast traffic received on lanX
port is flooded on all other user ports if the DSA switch is configured
without VLAN support since PORT_MATRIX in PCR regs contains all user
ports. Similar to MDIO devices (e.g. MT7530 and MT7531) fix the issue
defining default VLAN-ID 0 for MT7530 MMIO devices.

Fixes: 110c18bfed414 ("net: dsa: mt7530: introduce driver for MT7988 built-in switch")
Signed-off-by: Lorenzo Bianconi <lorenzo@kernel.org>
Reviewed-by: Chester A. Unal <chester.a.unal@arinc9.com>
Link: https://patch.msgid.link/20250304-mt7988-flooding-fix-v1-1-905523ae83e9@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/dsa/mt7530.c