ar8216: flush ARL table during reset after init_globals
authorGünther Kelleter <guenther.kelleter@devolo.de>
Wed, 15 Feb 2017 09:36:49 +0000 (10:36 +0100)
committerFelix Fietkau <nbd@nbd.name>
Thu, 16 Feb 2017 16:17:05 +0000 (17:17 +0100)
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>
target/linux/generic/files/drivers/net/phy/ar8216.c

index f3c953b808ee924493a4de9204bba2fb7906b0bf..37877d513af7c161f3b47ec1d2a1cf623b24eb13 100644 (file)
@@ -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);