From d3776bdfc98cee205b74b5775bb0e96ced7193f7 Mon Sep 17 00:00:00 2001 From: John Crispin Date: Fri, 4 Mar 2016 08:33:30 +0000 Subject: 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 SVN-Revision: 48913 --- target/linux/generic/files/drivers/net/phy/ar8327.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.h') diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.h b/target/linux/generic/files/drivers/net/phy/ar8327.h index 4aca754..e8dad35 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) -- cgit v1.1