projects
/
openwrt-10.03
/
.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[adm5120] disable VLANs for RB1xx boards (#2132)
[openwrt-10.03/.git]
/
target
/
linux
/
adm5120-2.6
/
files
/
arch
/
mips
/
adm5120
/
boards
/
mikrotik.c
diff --git
a/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/mikrotik.c
b/target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/mikrotik.c
index ee08be72c666aeae6b8c5fa31cd189fc79517fca..4d037587c16b6d2b48ae4d6c0eb5c8af089eb8ed 100644
(file)
--- a/
target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/mikrotik.c
+++ b/
target/linux/adm5120-2.6/files/arch/mips/adm5120/boards/mikrotik.c
@@
-64,6
+64,11
@@
static void __init rb1xx_setup(void)
/* TODO: setup mac address */
}
/* TODO: setup mac address */
}
+#if 0
+/*
+ * RB1xx boards have bad network performance with the default VLAN matrixes.
+ * Disable it while the ethernet driver gets fixed.
+ */
static unsigned char rb11x_vlans[6] __initdata = {
/* FIXME: untested */
0x41, 0x00, 0x00, 0x00, 0x00, 0x00
static unsigned char rb11x_vlans[6] __initdata = {
/* FIXME: untested */
0x41, 0x00, 0x00, 0x00, 0x00, 0x00
@@
-83,6
+88,15
@@
static unsigned char rb15x_vlans[6] __initdata = {
/* FIXME: untested */
0x41, 0x42, 0x44, 0x48, 0x50, 0x00
};
/* FIXME: untested */
0x41, 0x42, 0x44, 0x48, 0x50, 0x00
};
+#else
+static unsigned char rb_vlans[6] __initdata = {
+ 0x7F, 0x00, 0x00, 0x00, 0x00, 0x00
+};
+#define rb11x_vlans rb_vlans
+#define rb133_vlans rb_vlans
+#define rb133c_vlans rb_vlans
+#define rb15x_vlans rb_vlans
+#endif
static struct adm5120_board rb111_board __initdata = {
.mach_type = MACH_ADM5120_RB_111,
static struct adm5120_board rb111_board __initdata = {
.mach_type = MACH_ADM5120_RB_111,