AR8216: make ARL age time configurable
authorblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Mar 2016 08:33:30 +0000 (08:33 +0000)
committerblogic <blogic@3c298f89-4303-0410-b956-a3cf2f4a3e73>
Fri, 4 Mar 2016 08:33:30 +0000 (08:33 +0000)
commitbdf8124cd22c1d9a027f6ca7f56230e353cf83ff
tree6fd717cbc9d1647456d7770743f6e9c448395fba
parent63cc1a4a8598bb5b417475184197134e6ffa8c85
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>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@48913 3c298f89-4303-0410-b956-a3cf2f4a3e73
target/linux/generic/files/drivers/net/phy/ar8216.c
target/linux/generic/files/drivers/net/phy/ar8216.h
target/linux/generic/files/drivers/net/phy/ar8327.c
target/linux/generic/files/drivers/net/phy/ar8327.h