Commit 8f5034f8 authored by Anderson Luiz Alves's avatar Anderson Luiz Alves Committed by Juerg Haefliger

mv88e6060: disable hardware level MAC learning

BugLink: https://bugs.launchpad.net/bugs/1811252

[ Upstream commit a7451560 ]

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: default avatarAnderson Luiz Alves <alacn1@gmail.com>
Reviewed-by: default avatarAndrew Lunn <andrew@lunn.ch>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarJuerg Haefliger <juergh@canonical.com>
Signed-off-by: default avatarStefan Bader <stefan.bader@canonical.com>
parent 12e99150
...@@ -98,8 +98,7 @@ static int mv88e6060_switch_reset(struct dsa_switch *ds) ...@@ -98,8 +98,7 @@ static int mv88e6060_switch_reset(struct dsa_switch *ds)
/* Reset the switch. */ /* Reset the switch. */
REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL, REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL,
GLOBAL_ATU_CONTROL_SWRESET | GLOBAL_ATU_CONTROL_SWRESET |
GLOBAL_ATU_CONTROL_ATUSIZE_1024 | GLOBAL_ATU_CONTROL_LEARNDIS);
GLOBAL_ATU_CONTROL_ATE_AGE_5MIN);
/* Wait up to one second for reset to complete. */ /* Wait up to one second for reset to complete. */
timeout = jiffies + 1 * HZ; timeout = jiffies + 1 * HZ;
...@@ -124,13 +123,10 @@ static int mv88e6060_setup_global(struct dsa_switch *ds) ...@@ -124,13 +123,10 @@ static int mv88e6060_setup_global(struct dsa_switch *ds)
*/ */
REG_WRITE(REG_GLOBAL, GLOBAL_CONTROL, GLOBAL_CONTROL_MAX_FRAME_1536); REG_WRITE(REG_GLOBAL, GLOBAL_CONTROL, GLOBAL_CONTROL_MAX_FRAME_1536);
/* Enable automatic address learning, set the address /* Disable automatic address learning.
* database size to 1024 entries, and set the default aging
* time to 5 minutes.
*/ */
REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL, REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL,
GLOBAL_ATU_CONTROL_ATUSIZE_1024 | GLOBAL_ATU_CONTROL_LEARNDIS);
GLOBAL_ATU_CONTROL_ATE_AGE_5MIN);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment