realtek: Fix failsafe mode
authorHauke Mehrtens <hauke@hauke-m.de>
Mon, 21 Jun 2021 22:45:21 +0000 (00:45 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Tue, 22 Jun 2021 21:52:09 +0000 (23:52 +0200)
commit72d93c1ba44eb8f1b0a0978f71b06720365fd0e5
tree0be62b79a0ef792305aa55c924bf36d63a4428c5
parent7a5a247c1fdea5e24e68958edade7747f065b066
realtek: Fix failsafe mode

The RTL8380-RTL9300 switches only forward packets when VLAN ID 1 is
configured. Do not use the standard failsafe configuration for DSA
accessing the default port directly, but configure a switch on the lan1
interface instead.

This will add the VLAN ID 1 configuration to the switch:
$ bridge vlan show
port              vlan-id
lan1              1 PVID Egress Untagged
switch            1 PVID Egress Untagged

Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
(cherry picked from commit b7ee0786b56d1088c195fe7c1cdb1ad7d20c9245)
target/linux/realtek/base-files/lib/preinit/05_set_preinit_iface_realtek [new file with mode: 0644]
target/linux/realtek/base-files/lib/preinit/98_remove_preinit_realtek [new file with mode: 0644]