ramips: Fix VLAN limits for MT7621 GSW

Without this patch swconfig will only allow setting up a total of 16
VLANs, with VLAN ID range of 0-15.

Tested on ubnt-erx.

Signed-off-by: Antonis Kanouras <antonis@metadosis.eu>
This commit is contained in:
Antonis Kanouras 2017-01-09 09:05:52 +02:00 committed by John Crispin
parent 1016a32919
commit f2b6412c72

View File

@ -61,7 +61,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
GSW_ATTR_ENABLE_VLAN, GSW_ATTR_ENABLE_VLAN,
--- /dev/null --- /dev/null
+++ b/drivers/net/ethernet/mediatek/mt7530.c +++ b/drivers/net/ethernet/mediatek/mt7530.c
@@ -0,0 +1,886 @@ @@ -0,0 +1,890 @@
+/* +/*
+ * This program is free software; you can redistribute it and/or + * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License + * modify it under the terms of the GNU General Public License
@ -100,7 +100,11 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
+ +
+#define MT7530_CPU_PORT 6 +#define MT7530_CPU_PORT 6
+#define MT7530_NUM_PORTS 8 +#define MT7530_NUM_PORTS 8
+#ifdef CONFIG_SOC_MT7621
+#define MT7530_NUM_VLANS 4095
+#else
+#define MT7530_NUM_VLANS 16 +#define MT7530_NUM_VLANS 16
+#endif
+#define MT7530_MAX_VID 4095 +#define MT7530_MAX_VID 4095
+#define MT7530_MIN_VID 0 +#define MT7530_MIN_VID 0
+ +