aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net
diff options
context:
space:
mode:
authorGünther Kelleter <guenther.kelleter@devolo.de>2017-02-15 10:36:49 +0100
committerFelix Fietkau <nbd@nbd.name>2017-02-16 17:17:05 +0100
commit237454991618e0e8b7ceb8a8a2a43fca12c1a454 (patch)
treef8e46f7c33bada4ed2125629a1a42827c34855da /target/linux/generic/files/drivers/net
parent53f5d59fa17049d94a3992d1067ded1fa90f61f8 (diff)
downloadupstream-237454991618e0e8b7ceb8a8a2a43fca12c1a454.tar.gz
upstream-237454991618e0e8b7ceb8a8a2a43fca12c1a454.tar.bz2
upstream-237454991618e0e8b7ceb8a8a2a43fca12c1a454.zip
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). Signed-off-by: Günther Kelleter <guenther.kelleter@devolo.de>
Diffstat (limited to 'target/linux/generic/files/drivers/net')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8216.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8216.c b/target/linux/generic/files/drivers/net/phy/ar8216.c
index f3c953b808..37877d513a 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);