summaryrefslogtreecommitdiff
path: root/include/vsc9953.h
diff options
context:
space:
mode:
authorCodrin Ciubotariu <codrin.ciubotariu@freescale.com>2015-12-15 15:21:03 +0200
committerJoe Hershberger <joe.hershberger@ni.com>2016-01-28 12:22:08 -0600
commitba389e65e5bb64506ad35b3d7007ec1b3b9cf4de (patch)
tree9c618d8d686bd123593aea1d5d78430983801242 /include/vsc9953.h
parent96979dc94c1743e63cc8cc62c955075e47b7187b (diff)
downloadu-boot-imx-ba389e65e5bb64506ad35b3d7007ec1b3b9cf4de.zip
u-boot-imx-ba389e65e5bb64506ad35b3d7007ec1b3b9cf4de.tar.gz
u-boot-imx-ba389e65e5bb64506ad35b3d7007ec1b3b9cf4de.tar.bz2
drivers: net: vsc9953: Fix FDB aging time
By default, the aging period is set to 0, so the dynamic FDB entries are never removed. This patch sets the aging time to 300 seconds. Signed-off-by: Codrin Ciubotariu <codrin.ciubotariu@freescale.com> Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Diffstat (limited to 'include/vsc9953.h')
-rw-r--r--include/vsc9953.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/vsc9953.h b/include/vsc9953.h
index 00aa222..35fcbb5 100644
--- a/include/vsc9953.h
+++ b/include/vsc9953.h
@@ -136,6 +136,9 @@
/* Macros for vsc9953_ana_ana.adv_learn register */
#define VSC9953_VLAN_CHK 0x00000400
+/* Macros for vsc9953_ana_ana.auto_age register */
+#define VSC9953_AUTOAGE_PERIOD_MASK 0x001ffffe
+
/* Macros for vsc9953_rew_port.port_tag_cfg register */
#define VSC9953_TAG_CFG_MASK 0x00000180
#define VSC9953_TAG_CFG_NONE 0x00000000
@@ -164,6 +167,7 @@
#define VSC9953_MAX_VLAN 4096
#define VSC9953_VLAN_CHECK(vid) \
(((vid) < 0 || (vid) >= VSC9953_MAX_VLAN) ? 0 : 1)
+#define VSC9953_DEFAULT_AGE_TIME 300
#define DEFAULT_VSC9953_MDIO_NAME "VSC9953_MDIO0"