Skip to content

Commit 4ae4046

Browse files
alacn1gregkh
authored andcommitted
mv88e6060: disable hardware level MAC learning
[ Upstream commit a745156 ] Disable hardware level MAC learning because it breaks station roaming. When enabled it drops all frames that arrive from a MAC address that is on a different port at learning table. Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com> Reviewed-by: Andrew Lunn <andrew@lunn.ch> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
1 parent 2ef6e0f commit 4ae4046

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

‎drivers/net/dsa/mv88e6060.c‎

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,7 @@ static int mv88e6060_switch_reset(struct dsa_switch *ds)
116116
/* Reset the switch. */
117117
REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL,
118118
GLOBAL_ATU_CONTROL_SWRESET |
119-
GLOBAL_ATU_CONTROL_ATUSIZE_1024 |
120-
GLOBAL_ATU_CONTROL_ATE_AGE_5MIN);
119+
GLOBAL_ATU_CONTROL_LEARNDIS);
121120

122121
/* Wait up to one second for reset to complete. */
123122
timeout = jiffies + 1 * HZ;
@@ -142,13 +141,10 @@ static int mv88e6060_setup_global(struct dsa_switch *ds)
142141
*/
143142
REG_WRITE(REG_GLOBAL, GLOBAL_CONTROL, GLOBAL_CONTROL_MAX_FRAME_1536);
144143

145-
/* Enable automatic address learning, set the address
146-
* database size to 1024 entries, and set the default aging
147-
* time to 5 minutes.
144+
/* Disable automatic address learning.
148145
*/
149146
REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL,
150-
GLOBAL_ATU_CONTROL_ATUSIZE_1024 |
151-
GLOBAL_ATU_CONTROL_ATE_AGE_5MIN);
147+
GLOBAL_ATU_CONTROL_LEARNDIS);
152148

153149
return 0;
154150
}

0 commit comments

Comments
 (0)