Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 574370 - net-misc/netifrc-0.3.1 - enable ethtool settings bonding slaves
Summary: net-misc/netifrc-0.3.1 - enable ethtool settings bonding slaves
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Unspecified (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: netifrc Team
Whiteboard: netifrc:ethtool
Depends on:
Reported: 2016-02-10 21:32 UTC by Jonathan Thibault
Modified: 2016-10-24 19:51 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---

Tentative fix for this issue. (netifrc-0.3.1-bonding-apply-ethtool-to-slaves.patch,679 bytes, patch)
2016-02-10 21:36 UTC, Jonathan Thibault
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Thibault 2016-02-10 21:32:04 UTC
When bringing up a bonding interfaces, slaves might need specified ethtool settings (eg. disable gro).  ethtool_offload_<slave> clauses get ignored since only the bond interface gets started from netifrc's perspective.

Reproducible: Always

Steps to Reproduce:
1. add ethtool_offload_eth0="gro off" clause to /etc/conf.d/net
2. add slaves_mybond="eth0 eth1" to /etc/conf.d/net
3. run /etc/init.d/net.mybond start
Actual Results:  
gro does not get turned off on eth0

Expected Results:  
gro gets turned off on eth0

I've already written a patch that tentatively fixes this on 0.3.1.  A similar solution should probably be added for bridging.
Comment 1 Jonathan Thibault 2016-02-10 21:36:31 UTC
Created attachment 425172 [details, diff]
Tentative fix for this issue.

There is probably a better way to do it but that's about as far as my netifrc knowledge goes.