mirror of
https://github.com/optim-enterprises-bv/openwrt-ipq.git
synced 2025-10-30 01:43:02 +00:00
ramips: restore full switch performance for USW-Flex
Since commitf1c9afd801("ramips: mt7621-dts: mux phy0/4 to gmac1") the USW-Flex lan1 port has been attached directly to the CPU. This improves routing performance but hinders switching. This is a generally accepted trade-off in that commit but for USW-Flex it is a questionable choice. This switch is designed to deliver PoE to remote places and using it as a router is unlikely. Meanwhile, the lan1 port is also PoE-in and will often be the uplink, carrying most of the traffic. Revertingf1c9afd801for USW-Flex restores full 1 Gbps switching performance on all ports. Signed-off-by: Anders Melchiorsen <amelchio@nogoto.net> Link: https://github.com/openwrt/openwrt/pull/17703 Signed-off-by: Robert Marko <robimarko@gmail.com> (cherry picked from commit 62872f8bfd5c8bc80bb014417c6ed8057bbeb773)
This commit is contained in:
committed by
Robert Marko
parent
2bff6e490a
commit
a5eb5ee1a6
@@ -64,19 +64,6 @@
|
||||
label = "dsa";
|
||||
};
|
||||
|
||||
&gmac1 {
|
||||
status = "okay";
|
||||
label = "lan1";
|
||||
phy-handle = <ðphy4>;
|
||||
|
||||
nvmem-cells = <&macaddr_eeprom>;
|
||||
nvmem-cell-names = "mac-address";
|
||||
};
|
||||
|
||||
ðphy4 {
|
||||
/delete-property/ interrupts;
|
||||
};
|
||||
|
||||
&switch0 {
|
||||
ports {
|
||||
port@0 {
|
||||
@@ -98,6 +85,11 @@
|
||||
status = "okay";
|
||||
label = "lan2";
|
||||
};
|
||||
|
||||
port@4 {
|
||||
status = "okay";
|
||||
label = "lan1";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user