Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 574370

Summary: net-misc/netifrc-0.3.1 - enable ethtool settings bonding slaves
Product: Gentoo Linux Reporter: Jonathan Thibault <cuvier>
Component: [OLD] UnspecifiedAssignee: netifrc Team <netifrc>
Status: UNCONFIRMED ---    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: netifrc:ethtool
Package list:
Runtime testing required: ---
Attachments: Tentative fix for this issue.

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.