[source] ar8216: flush ARL table during reset after init_globals

LEDE Commits lede-commits at lists.infradead.org
Wed Feb 22 03:13:39 PST 2017


stintel pushed a commit to source.git, branch lede-17.01:
https://git.lede-project.org/7fd494d4b23697a329dcde89df412edaaf96a83d

commit 7fd494d4b23697a329dcde89df412edaaf96a83d
Author: Günther Kelleter <guenther.kelleter at devolo.de>
AuthorDate: Wed Feb 15 10:36:49 2017 +0100

    ar8216: flush ARL table during reset after init_globals
    
    commit 33b72b8e0faf7a39faabece584fd6da61cd8f8df
    "ar8216: adjust ATU flushing in case of link changes"
    introduced portwise flushing on link down events. Now the ARL table could
    be in a chaotic state after boot where ar8xxx_sw_get_arl_table looped
    forever (depending on the entries collected while booting).
    
    Fixes FS#384.
    
    Signed-off-by: Günther Kelleter <guenther.kelleter at devolo.de>
    (cherry picked from commit 237454991618e0e8b7ceb8a8a2a43fca12c1a454)
    Signed-off-by: Stijn Tintel <stijn at linux-ipv6.be>
---
 target/linux/generic/files/drivers/net/phy/ar8216.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index 27b062b..01dc065 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8216.c
+++ b/target/linux/generic/files/drivers/net/phy/ar8216.c
@@ -1194,6 +1194,7 @@ ar8xxx_sw_reset_switch(struct switch_dev *dev)
 	priv->arl_age_time = AR8XXX_DEFAULT_ARL_AGE_TIME;
 
 	chip->init_globals(priv);
+	chip->atu_flush(priv);
 
 	mutex_unlock(&priv->reg_mutex);
 



More information about the lede-commits mailing list