Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] conf.d/net and setting xmit_hash_policy
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Thu Jan 12, 2017 5:45 pm    Post subject: [SOLVED] conf.d/net and setting xmit_hash_policy Reply with quote

Simple question. I looked for an hour and couldn't find an answer.

Is there a way to set xmit_hash_policy inside /etc/conf.d/net for a bonded interface?

Right now, I just set up a simple openrc script that runs after net.bond0 that does echo 1 > /sys/class/net/bond0/bonding/xmit_hash_policy but I'd like to clean it up into conf.d/net if able.
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)


Last edited by BlueFusion on Sun Jan 15, 2017 2:54 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Thu Jan 12, 2017 6:21 pm    Post subject: Re: conf.d/net and setting xmit_hash_policy Reply with quote

BlueFusion wrote:
Is there a way to set xmit_hash_policy inside /etc/conf.d/net for a bonded interface? Right now, I just set up a simple openrc script that runs after net.bond0 that does echo 1 > /sys/class/net/bond0/bonding/xmit_hash_policy but I'd like to clean it up into conf.d/net if able.

BlueFusion ... the following should work (untested):

/etc/conf.d/net:
xmit_hash_policy_bond0="1"

See "bonding" in /usr/share/doc/netifrc-*/net.example.bz2.

HTH & best ... khay
Back to top
View user's profile Send private message
BlueFusion
Guru
Guru


Joined: 08 Mar 2006
Posts: 371

PostPosted: Sun Jan 15, 2017 2:53 am    Post subject: Reply with quote

That was exactly what I needed. Thanks for the document pointer. :D
_________________
i7-940 2.93Ghz | ASUS P6T Deluxe (v.1) | 24GB Triple Channel RAM | nVidia GTX660
4x 4TB Seagate NAS HDD (Btrfs raid5) | 2x 120GB Samsung 850 EVO SSD (Btrfs raid1)
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum