diff mbox

[OpenWrt-Devel] Turn off VLAN support on MT7620 to get Failsafe working

Message ID CAADtZXCLJSzQetG-fhbG5fmFAvufEhX2MpZ6dGo0HBSCVXM6yg@mail.gmail.com
State Changes Requested
Headers show

Commit Message

probono Dec. 30, 2015, 12:26 p.m. UTC
Fix broken Failsafe on MT7620 caused by the fact that the switch on
MT7620 has VLANs enabled by default and eth0 won't receive any packet.

This patch turns off VLAN support to get Failsafe working.
Fixes https://dev.openwrt.org/ticket/18768 and has been discussed and
tested there.

Signed-off-by: Simon Peter <probono@puredarwin.org>

  fi

Comments

probono Jan. 7, 2016, 3:09 p.m. UTC | #1
Ping. Is there anything preventing this patch from being applied?

2015-12-30 13:26 GMT+01:00 probono <probono@puredarwin.org>:
> Fix broken Failsafe on MT7620 caused by the fact that the switch on
> MT7620 has VLANs enabled by default and eth0 won't receive any packet.
>
> This patch turns off VLAN support to get Failsafe working.
> Fixes https://dev.openwrt.org/ticket/18768 and has been discussed and
> tested there.
diff mbox

Patch

diff --git a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
index 3dce1b6..a31616f 100644
--- a/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
+++ b/target/linux/ramips/base-files/lib/preinit/07_set_preinit_iface_ramips
@@ -26,6 +26,14 @@  ramips_set_preinit_iface() {
  ip link add link eth0 name eth0.1 type vlan id 1
  ip link set eth0 up
  ifname=eth0.1
+ elif grep MT7620 /proc/cpuinfo; then
+ # Switch on MT7620 has VLANs enabled by default and eth0 won't
receive any packet,
+ # hence turn off VLAN support to get Failsafe working:
+ # https://dev.openwrt.org/ticket/18768
+ swconfig dev mt7620 set reset 1
+ swconfig dev mt7620 set enable_vlan 0
+ swconfig dev mt7620 set apply
+ ifname=eth0
  else
  ifname=eth0