system-linux: handle ethtool offload, channels, ring, coalesce and priv flags parameters #59
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This a preliminary work to be able to pass ethtool flags via config file and apply those flags directly on configured devices.
It mainly follows the base implementations of existing ethtool/ioctl functions inside
system-linux.c.As i am very newly introduced to openwrt build system and SDK, i am not sure that my branch is compiling at all (i've tried via custom feed, but i doesn't seem to stick...).
Following is an ongoing documentation:
Example: Applying ethtool tunables via /etc/config/network
You can specify ethtool flags for supported family (offload, ring, coalesce, channels, priv) in a device section of
/etc/config/network.Example device config
Supported ethtool tunable families
list offload(ethtool -K)list ring(ethtool -G)list coalesce(ethtool -C)list channels(ethtool -L)list priv(ethtool --set-priv-flags)Each list item is a key-value pair, e.g.
list offload 'tso off'.How it works
system-linux.c).Notes
system-linux.cfor details on what is supported.