forked from Ivasoft/openwrt
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>
This commit is contained in:
@@ -1481,7 +1481,7 @@ const struct ar8xxx_chip ar8327_chip = {
|
||||
|
||||
.name = "Atheros AR8327",
|
||||
.ports = AR8327_NUM_PORTS,
|
||||
.vlans = AR8X16_MAX_VLANS,
|
||||
.vlans = AR83X7_MAX_VLANS,
|
||||
.swops = &ar8327_sw_ops,
|
||||
|
||||
.reg_port_stats_start = 0x1000,
|
||||
@@ -1518,7 +1518,7 @@ const struct ar8xxx_chip ar8337_chip = {
|
||||
|
||||
.name = "Atheros AR8337",
|
||||
.ports = AR8327_NUM_PORTS,
|
||||
.vlans = AR8X16_MAX_VLANS,
|
||||
.vlans = AR83X7_MAX_VLANS,
|
||||
.swops = &ar8327_sw_ops,
|
||||
|
||||
.reg_port_stats_start = 0x1000,
|
||||
|
||||
Reference in New Issue
Block a user