AR8216: make ARL age time configurable
authorJohn Crispin <john@openwrt.org>
Fri, 4 Mar 2016 08:33:30 +0000 (08:33 +0000)
committerJohn Crispin <john@openwrt.org>
Fri, 4 Mar 2016 08:33:30 +0000 (08:33 +0000)
commit2efa053d394fbc032f2e2ffc0d4fae9310a7ea5a
tree6fd717cbc9d1647456d7770743f6e9c448395fba
parentce0001cd1799cf53c1595ea3e160ff346d8f00d6
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
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