diff options
author | David Bauer <mail@david-bauer.net> | 2019-11-24 20:53:39 +0100 |
---|---|---|
committer | David Bauer <mail@david-bauer.net> | 2019-11-30 16:49:05 +0100 |
commit | 3f79aaa2979793c054eae2c8b4058c8c7fccdbe7 (patch) | |
tree | 5f8f2e8617b95171d0d0066d233d4ca1daf779ab /target/linux/generic/files/drivers/net/phy/ar8327.c | |
parent | 82a741c774dc1aa1e2c2e4b2e445bf79158de1a1 (diff) | |
download | upstream-3f79aaa2979793c054eae2c8b4058c8c7fccdbe7.tar.gz upstream-3f79aaa2979793c054eae2c8b4058c8c7fccdbe7.tar.bz2 upstream-3f79aaa2979793c054eae2c8b4058c8c7fccdbe7.zip |
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>
Diffstat (limited to 'target/linux/generic/files/drivers/net/phy/ar8327.c')
-rw-r--r-- | target/linux/generic/files/drivers/net/phy/ar8327.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/target/linux/generic/files/drivers/net/phy/ar8327.c b/target/linux/generic/files/drivers/net/phy/ar8327.c index 1878585b0c..4cbfa4d234 100644 --- a/target/linux/generic/files/drivers/net/phy/ar8327.c +++ b/target/linux/generic/files/drivers/net/phy/ar8327.c @@ -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, |