openwrt/target/linux
Mark Mentovai 565814a5ee ipq806x: ubnt,unifi-ac-hd: reorder eth0 and eth1
The Ubiquiti UniFi AC HD (UAP-AC-HD, UAP301) has two Ethernet ports,
labeled MAIN and SECONDARY, connected to gmac2 and gmac1, respectively.
The standard probe order results in gmac1/SECONDARY being eth0 and
gmac2/MAIN being eth1. This does not match the stock firmware, is
contrary to user expectation, causes the wrong (high) MAC address to be
used in a bridged configuration (the default for this device), and makes
the gmac2/MAIN port unusable in the preinit environment (such as for
failsafe). Until a recent patch, gmac1/SECONDARY (eth0) was not even
usable.

This reorders the ports so that gmac2/MAIN is eth0, and the now-working
gmac1/SECONDARY is eth1. eth0 has the low MAC address and eth1 has the
high; when bridged, the bridge takes on the correct low MAC address.
This matches the stock firmware. The MAIN port is usable for failsafe
during preinit.

This device does not have a switch on board, so there's no possibility
to remap ports via switch configuration. "ip link set $interface name"
is used instead, during preinit before networking is configured.

Signed-off-by: Mark Mentovai <mark@moxienet.com>
Build-tested: ipq806x/ubnt,unifi-ac-hd
Run-tested: ipq806x/ubnt,unifi-ac-hd
2021-05-07 07:05:16 +02:00
..
apm821xx apm821xx: MBL: correct phy-mode delay settings 2021-05-01 12:25:12 +02:00
arc770 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
archs38 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
armvirt treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
at91 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ath25 kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
ath79 ath79: Deactivate ZyXEL NBG6716 by default 2021-05-02 15:00:40 +02:00
bcm27xx kernel: bump 5.4 to 5.4.115 2021-04-30 23:48:37 +02:00
bcm47xx
bcm53xx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
bcm63xx kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
bcm4908 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
bmips treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
gemini treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
generic kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
imx6 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ipq40xx kernel: bump 5.4 to 5.4.114 2021-04-30 23:48:37 +02:00
ipq806x ipq806x: ubnt,unifi-ac-hd: reorder eth0 and eth1 2021-05-07 07:05:16 +02:00
ipq807x
kirkwood kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
lantiq kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
layerscape kernel: bump 5.4 to 5.4.114 2021-04-30 23:48:37 +02:00
malta treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mediatek mediatek: bpi-r64: add eMMC bootloader artifacts 2021-05-01 22:55:14 +01:00
mpc85xx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
mvebu kernel: fix parsing fixed subpartitions 2021-05-06 14:53:25 +02:00
mxs treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
octeon treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
octeontx treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
omap
oxnas
pistachio treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
ramips kernel: Activate FORTIFY_SOURCE for MIPS kernel 5.4 2021-04-30 23:51:19 +02:00
realtek treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
rockchip treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
sunxi
tegra
uml treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
x86 treewide: switch the timer frequency to 100 Hz 2021-04-21 10:31:10 +01:00
zynq
Makefile