Home Home > GIT Browse > SLE12-SP4-AZURE
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2019-02-20 12:44:44 +0100
committerTakashi Iwai <tiwai@suse.de>2019-02-20 12:44:44 +0100
commitcf30faefa379cedae48b2b54f6ed24a5a0f5e628 (patch)
treeafaaafeea693897b7ac766fb8a56c4668fcda5da
parentaadd38f8a02da04e883d130da596ba35531922f9 (diff)
mv88e6060: disable hardware level MAC learning (bsc#1051510).
-rw-r--r--patches.drivers/mv88e6060-disable-hardware-level-MAC-learning.patch54
-rw-r--r--series.conf1
2 files changed, 55 insertions, 0 deletions
diff --git a/patches.drivers/mv88e6060-disable-hardware-level-MAC-learning.patch b/patches.drivers/mv88e6060-disable-hardware-level-MAC-learning.patch
new file mode 100644
index 0000000000..5253d11f75
--- /dev/null
+++ b/patches.drivers/mv88e6060-disable-hardware-level-MAC-learning.patch
@@ -0,0 +1,54 @@
+From a74515604a7b171f2702bdcbd1e231225fb456d0 Mon Sep 17 00:00:00 2001
+From: Anderson Luiz Alves <alacn1@gmail.com>
+Date: Fri, 30 Nov 2018 21:58:36 -0200
+Subject: [PATCH] mv88e6060: disable hardware level MAC learning
+Git-commit: a74515604a7b171f2702bdcbd1e231225fb456d0
+Patch-mainline: v4.20-rc6
+References: bsc#1051510
+
+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>
+Acked-by: Takashi Iwai <tiwai@suse.de>
+
+---
+ drivers/net/dsa/mv88e6060.c | 10 +++-------
+ 1 file changed, 3 insertions(+), 7 deletions(-)
+
+diff --git a/drivers/net/dsa/mv88e6060.c b/drivers/net/dsa/mv88e6060.c
+index 65f10fec25b3..0b3e51f248c2 100644
+--- a/drivers/net/dsa/mv88e6060.c
++++ b/drivers/net/dsa/mv88e6060.c
+@@ -116,8 +116,7 @@ static int mv88e6060_switch_reset(struct dsa_switch *ds)
+ /* Reset the switch. */
+ REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL,
+ GLOBAL_ATU_CONTROL_SWRESET |
+- GLOBAL_ATU_CONTROL_ATUSIZE_1024 |
+- GLOBAL_ATU_CONTROL_ATE_AGE_5MIN);
++ GLOBAL_ATU_CONTROL_LEARNDIS);
+
+ /* Wait up to one second for reset to complete. */
+ timeout = jiffies + 1 * HZ;
+@@ -142,13 +141,10 @@ static int mv88e6060_setup_global(struct dsa_switch *ds)
+ */
+ REG_WRITE(REG_GLOBAL, GLOBAL_CONTROL, GLOBAL_CONTROL_MAX_FRAME_1536);
+
+- /* Enable automatic address learning, set the address
+- * database size to 1024 entries, and set the default aging
+- * time to 5 minutes.
++ /* Disable automatic address learning.
+ */
+ REG_WRITE(REG_GLOBAL, GLOBAL_ATU_CONTROL,
+- GLOBAL_ATU_CONTROL_ATUSIZE_1024 |
+- GLOBAL_ATU_CONTROL_ATE_AGE_5MIN);
++ GLOBAL_ATU_CONTROL_LEARNDIS);
+
+ return 0;
+ }
+--
+2.16.4
+
diff --git a/series.conf b/series.conf
index 396d99fba8..28c9bf949e 100644
--- a/series.conf
+++ b/series.conf
@@ -19827,6 +19827,7 @@
patches.suse/net-8139cp-fix-a-BUG-triggered-by-changing-mtu-with-.patch
patches.drivers/net-ibmvnic-Fix-RTNL-deadlock-during-device-reset.patch
patches.suse/sctp-kfree_rcu-asoc.patch
+ patches.drivers/mv88e6060-disable-hardware-level-MAC-learning.patch
patches.suse/net-mlx4_en-Change-min-MTU-size-to-ETH_MIN_MTU.patch
patches.suse/rtnetlink-ndo_dflt_fdb_dump-only-work-for-ARPHRD_ETH.patch
patches.drivers/ethernet-fman-fix-wrong-of_node_put-in-probe-function.patch