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 support for configurable GRO option #14

Closed Ansuel closed 10 months ago

Ansuel commented 10 months ago

Add support for configurable GRO option. Some device doesn't have HW Checksum support and may suffer from performance regression by using GRO. Disabling GRO restore the original performance and make the device usable again.

The option can be configured by adding the config for the device in the network config. Example:

config device option name 'eth0' option gro '0'

If no option is provided GRO is enabled by default following kernel default settings.

Notice that a new "kind" of settings are introduced "system_if_apply_settings_after_up". Option set in this function will be executed AFTER the interface is UP. This is needed as some option (example GRO) needs to be applied after the interface is UP and applying them before results in error in ioctl.

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


@jow- can you check this? Also wonder if you can delete the branch i pushed by mistake... (branch add-gro-conf in netifd repository)