summaryrefslogtreecommitdiffstats
path: root/target/linux/generic/files/drivers/net/phy/ar8327.h
diff options
context:
space:
mode:
authorJohn Crispin <john@openwrt.org>2016-03-04 08:33:30 +0000
committerJohn Crispin <john@openwrt.org>2016-03-04 08:33:30 +0000
commitd3776bdfc98cee205b74b5775bb0e96ced7193f7 (patch)
tree1f4aa00329c7eab1c53d197082f7fc10e4d8dbe8 /target/linux/generic/files/drivers/net/phy/ar8327.h
parent4eaa7500892fdb3469fd096229b1a8839d175552 (diff)
downloadmaster-31e0f0ae-d3776bdfc98cee205b74b5775bb0e96ced7193f7.tar.gz
master-31e0f0ae-d3776bdfc98cee205b74b5775bb0e96ced7193f7.tar.bz2
master-31e0f0ae-d3776bdfc98cee205b74b5775bb0e96ced7193f7.zip
AR8216: make ARL age time configurable
The default TTL for address resolution table entries is 5 minutes for all members of the AR8216 family. This can cause issues if e.g. Wifi clients roam to another AP and their MAC appears on another switch port suddenly. Then the client may not be reachable until the old ARL entry expires. I would have expected the switch to invalidate old entries if it detects the same MAC on another port. But that's not the case. Therefore make the TTL for ARL entries configurable. The effective TTL will always be a multiple of 7 seconds. Signed-off-by: Heiner Kallweit <hkallweit1@gmail.com> SVN-Revision: 48913
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.h')
-rw-r--r--target/linux/generic/files/drivers/net/phy/ar8327.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h
index 4aca754bc8..e8dad35d11 100644
--- a/target/linux/generic/files/drivers/net/phy/ar8327.h
+++ b/target/linux/generic/files/drivers/net/phy/ar8327.h
@@ -244,6 +244,8 @@
#define AR8327_VTU_FUNC1_VID_S 16
#define AR8327_VTU_FUNC1_BUSY BIT(31)
+#define AR8327_REG_ARL_CTRL 0x0618
+
#define AR8327_REG_FWD_CTRL0 0x620
#define AR8327_FWD_CTRL0_CPU_PORT_EN BIT(10)
#define AR8327_FWD_CTRL0_MIRROR_PORT BITS(4, 4)