aboutsummaryrefslogtreecommitdiffstats
path: root/target
diff options
context:
space:
mode:
authorAntonis Kanouras <antonis@metadosis.eu>2017-01-09 09:05:52 +0200
committerJohn Crispin <john@phrozen.org>2017-01-10 08:18:15 +0100
commitf2b6412c727f38563e8d0ac976de8dcf8109634b (patch)
tree724c1c2ef0f8a35f42da0791780bcea92d32c889 /target
parent1016a32919334318a929b8a5a30aea062449dc07 (diff)
downloadupstream-f2b6412c727f38563e8d0ac976de8dcf8109634b.tar.gz
upstream-f2b6412c727f38563e8d0ac976de8dcf8109634b.tar.bz2
upstream-f2b6412c727f38563e8d0ac976de8dcf8109634b.zip
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>
Diffstat (limited to 'target')
-rw-r--r--target/linux/ramips/patches-4.4/0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch6
1 files changed, 5 insertions, 1 deletions
diff --git a/target/linux/ramips/patches-4.4/0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch b/target/linux/ramips/patches-4.4/0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch
index 4dee81d2e4..10db0765c2 100644
--- a/target/linux/ramips/patches-4.4/0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch
+++ b/target/linux/ramips/patches-4.4/0513-net-mediatek-add-swconfig-driver-for-gsw_mt762x.patch
@@ -61,7 +61,7 @@ Signed-off-by: John Crispin <blogic@openwrt.org>
GSW_ATTR_ENABLE_VLAN,
--- /dev/null
+++ 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
+ * 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_NUM_PORTS 8
++#ifdef CONFIG_SOC_MT7621
++#define MT7530_NUM_VLANS 4095
++#else
+#define MT7530_NUM_VLANS 16
++#endif
+#define MT7530_MAX_VID 4095
+#define MT7530_MIN_VID 0
+