[PATCH v3 0/2] Add DSA MultiCPU port support
Ansuel Smith
ansuelsmth at gmail.com
Wed Feb 2 16:44:10 PST 2022
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.
v3:
- Move IFLA_CPU at the end of enum for ABI compatibility
- Remove junk from patches
- Fix commit description
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 | 97 +++++++++++++++
...add-ndo-for-setting-the-cpu-proprety.patch | 113 ++++++++++++++++++
...t-ndo_set_cpu-for-changing-DSA-port-.patch | 100 ++++++++++++++++
...clude-net-add-dsa_cpu_ports-function.patch | 39 ++++++
5 files changed, 430 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-proprety.patch
create mode 100644 target/linux/generic/hack-5.10/780-3-net-dsa-implement-ndo_set_cpu-for-changing-DSA-port-.patch
create mode 100644 target/linux/generic/hack-5.10/780-4-include-net-add-dsa_cpu_ports-function.patch
--
2.34.1
More information about the openwrt-devel
mailing list