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

Bug 411815

Summary: sys-apps/openrc-0.9.8.4 does not install ethtool_ring and txqueuelen params for network cards in bonding
Product: Gentoo Hosted Projects Reporter: Oleg Gawriloff <barzog>
Component: OpenRCAssignee: OpenRC Team <openrc>
Status: RESOLVED INVALID    
Severity: major CC: alexanderyt, kripton
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard: openrc:oldnet
Package list:
Runtime testing required: ---

Description Oleg Gawriloff 2012-04-13 06:19:38 UTC
We have following configuration:
2 network cards is used in bond link
1 network cards is used as simple access port
config_eth0="null"
config_eth2="null"
config_eth3="null"
config_bond0="null"
slaves_bond0="eth2 eth3"

ethtool_ring_eth0="rx 4096 tx 4096"
ethtool_ring_eth2="rx 4096 tx 4096"
ethtool_ring_eth3="rx 4096 tx 4096"
txqueuelen_eth0="2000"
txqueuelen_eth2="2000"
txqueuelen_eth3="2000"

ring and txqueuelen setting occurs only for eth0. I suspect that it happens because slaves in bond are not directly bringed up.


Reproducible: Always
Comment 1 Oleg Gawriloff 2012-04-13 06:29:00 UTC
If I add net.eth2 and net.eth3 to rc-update boot level parameters is applied, but eth2 and eth3 is started after bond0 and chenging ring parameters causes bond errors about 30sec, which is unacceptable.
Comment 2 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2013-08-17 01:11:40 UTC
You need to add this to your config:
rc_net_bond0_need="net.eth2 net.eth3"

This is already documented in net.example:
# If any of the slaves require extra configuration - for example wireless or
# ppp devices - we need to depend function on the bonded interfaces
#rc_net_bond0_need="net.eth0 net.eth1"