generic ar8xxx: increase VLAN table for AR83x7
authorDavid Bauer <mail@david-bauer.net>
Sun, 24 Nov 2019 19:53:39 +0000 (20:53 +0100)
committerDavid Bauer <mail@david-bauer.net>
Sat, 30 Nov 2019 15:49:05 +0000 (16:49 +0100)
commit3f79aaa2979793c054eae2c8b4058c8c7fccdbe7
tree5f8f2e8617b95171d0d0066d233d4ca1daf779ab
parent82a741c774dc1aa1e2c2e4b2e445bf79158de1a1
generic ar8xxx: increase VLAN table for AR83x7

The Atheros AR8327 and AR8337 have (according to their datasheet) a
VLAN table with a maximum of 4096 entries.

Currently, there's a hard limit of 128 VLANs, which is the same as
for most other Atheros switches. Increase this limit only for the
AR83x7 series and modify some shared functions to allow them to work
with a variable max VLAN count.

Signed-off-by: David Bauer <mail@david-bauer.net>
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