AR8327 VLAN ID > 128 not working
Issue Description
swconfig could not set VLANID > 128
- $ swconfig dev switch0 vlan 100 set ports ‘0t 1‘
- ok
-
- failed
switch config
swconfig

Analysis
AR8327 driver locates kernel/drivers/net/phy/ar8216.c
in order to compatible to old AR8X16 device, max vlan id defined to 128.
give the patch here, in order to support VLANID > 128
- diff --git a/drivers/net/phy/ar8216.c b/drivers/net/phy/ar8216.c
- index 864b778..3e8ceed 100755
-
-
- @@ -41,7 +41,12 @@
- #endif
-
- /* size of the vlan table */
- +#if OK_PATCH
- +/* for AR8327 */
- +#define AR8X16_MAX_VLANS 4096
- +#else /* !OK_PATCH */
- #define AR8X16_MAX_VLANS 128
- +#endif /* OK_PATCH */
- #define AR8X16_PROBE_RETRIES 10
- #define AR8X16_MAX_PORTS 8
nicephil@gmail.com 2017-3-23