This adds the hack patches for DSA multicpu support.
I still have to clean patch 1, 3, 4 but considering this is still a bit WIP
I decided to clean and provide a correct patches for the final version.

This version won't change the logic by DSA that assing every port to the first
cpu port. A init script is required to change the cpu port at runtime.

This change was done for the only reason that a round-robin way can't be trusted
and is too random. Some cpu port in some switch (brcm) for example doesn't
behave the same way and randomly assigning the cpu port would cause
problems/malfunctions.

v2:
- Rework iproute logic to not pollute link
- Rework the round-robin cpu port assign logic

Ansuel Smith (2):
  linux: introduce multi-cpu dsa patch
  iproute2: add support for cpu set

 ...101-iplink_allow_to_change_cpu_value.patch |  81 ++++++++++
 ...net-dsa-allow_for_multiple_CPU_ports.patch | 151 ++++++++++++++++++
 ...add_ndo_for_setting_the_cpu_property.patch | 113 +++++++++++++
 ..._set_cpu_for_changing_ports_CPU_port.patch |  89 +++++++++++
 ...clude-net-add-dsa_cpu_ports-function.patch |  34 ++++
 5 files changed, 468 insertions(+)
 create mode 100644 
package/network/utils/iproute2/patches/101-iplink_allow_to_change_cpu_value.patch
 create mode 100644 
target/linux/generic/hack-5.10/780-1-net-dsa-allow_for_multiple_CPU_ports.patch
 create mode 100644 
target/linux/generic/hack-5.10/780-2-net-add_ndo_for_setting_the_cpu_property.patch
 create mode 100644 
target/linux/generic/hack-5.10/780-3-net-dsa-implement_ndo_set_cpu_for_changing_ports_CPU_port.patch
 create mode 100644 
target/linux/generic/hack-5.10/780-4-include-net-add-dsa_cpu_ports-function.patch

-- 
2.33.1


_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel

Reply via email to