Patch "net: dsa: mt7530: Fix traffic flooding for MMIO devices" has been added to the 6.6-stable tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



This is a note to let you know that I've just added the patch titled

    net: dsa: mt7530: Fix traffic flooding for MMIO devices

to the 6.6-stable tree which can be found at:
    http://www.kernel.org/git/?p=linux/kernel/git/stable/stable-queue.git;a=summary

The filename of the patch is:
     net-dsa-mt7530-fix-traffic-flooding-for-mmio-devices.patch
and it can be found in the queue-6.6 subdirectory.

If you, or anyone else, feels it should not be added to the stable tree,
please let <stable@xxxxxxxxxxxxxxx> know about it.



commit 5d64f00e8490a496e5cfe213f303a0338f318397
Author: Lorenzo Bianconi <lorenzo@xxxxxxxxxx>
Date:   Tue Mar 4 09:50:23 2025 +0100

    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@xxxxxxxxxx>
    Reviewed-by: Chester A. Unal <chester.a.unal@xxxxxxxxxx>
    Link: https://patch.msgid.link/20250304-mt7988-flooding-fix-v1-1-905523ae83e9@xxxxxxxxxx
    Signed-off-by: Jakub Kicinski <kuba@xxxxxxxxxx>
    Signed-off-by: Sasha Levin <sashal@xxxxxxxxxx>

diff --git a/drivers/net/dsa/mt7530.c b/drivers/net/dsa/mt7530.c
index 53ead0989777f..90ab2f1058ce0 100644
--- a/drivers/net/dsa/mt7530.c
+++ b/drivers/net/dsa/mt7530.c
@@ -2640,7 +2640,8 @@ mt7531_setup_common(struct dsa_switch *ds)
 	if (ret < 0)
 		return ret;
 
-	return 0;
+	/* Setup VLAN ID 0 for VLAN-unaware bridges */
+	return mt7530_setup_vlan0(priv);
 }
 
 static int
@@ -2734,11 +2735,6 @@ mt7531_setup(struct dsa_switch *ds)
 
 	mt7531_setup_common(ds);
 
-	/* Setup VLAN ID 0 for VLAN-unaware bridges */
-	ret = mt7530_setup_vlan0(priv);
-	if (ret)
-		return ret;
-
 	ds->assisted_learning_on_cpu_port = true;
 	ds->mtu_enforcement_ingress = true;
 




[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux