ifenslave fails to set xmit_hash_policy
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ifenslave (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
This bug is present in 16.04 as well as 18.04, including the upstream version of ifenslave as far as I can tell. But as a formality let's assume ifenslave-
/etc/network/
# xmit_hash_policy can be set anytime.
# Changing xmit_hash_policy requires $BOND_MASTER to be down.
However, this comment is not true. For example when trying to create the following in /etc/network/
iface bond0 inet manual
bond-slaves none
bond-mode balance-tlb
bond-miimon 100
Results in this error in dmesg on boot, since the mode balance-tlb is set after xmit_hash_policy:
[ 15.210041] xmit_hash_policy param is irrelevant in mode load balancing (round-robin)
The script should set xmit_hash_policy after setting mode.
An ugly workaround at the moment is to do:
iface bond0 inet manual
bond-slaves none
bond-miimon 100
pre-up /bin/echo 5 > /sys/class/
1 > /sys/class/
I have fixes for this, but it's unclear how/where to contribute this code.