openwrt / netifd

[MIRROR] OpenWrt Network interface configuration daemon
https://git.openwrt.org/?p=project/netifd.git;
17 stars 19 forks source link

system-linux: add option to configure DSA conduit device #15

Closed Ansuel closed 10 months ago

Ansuel commented 10 months ago

Device might have multiple CPU port with DSA based switch and OEM firmware might set specific port to one CPU port (for example WAN) to sustain full gigabit traffic with the kernel.

To set them iproute2 tool is currently required. Add support to set the DSA port conduit directly from network config using netlink. Example:

config device option name 'lan1' option conduit 'eth1'

Conduit option refer to the CPU port interface. Invalid option will simply be ignored and won't be applied similar to what iproute2 does.

Signed-off-by: Christian Marangi ansuelsmth@gmail.com


I included changes from the GRO patch as they are required for the uci_blob_dirr.