[Bug 1768345] Re: ifenslave fails to set xmit_hash_policy

Debabrata Banerjee 1768345 at bugs.launchpad.net
Fri May 4 20:31:26 UTC 2018


I have fixes for this, but it's unclear how/where to contribute this
code.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to ifenslave in Ubuntu.
https://bugs.launchpad.net/bugs/1768345

Title:
  ifenslave fails to set xmit_hash_policy

Status in ifenslave package in Ubuntu:
  New

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-2.9ubuntu1

  /etc/network/if-pre-up.d/ifenslave assumes xmit_hash_policy can be set
  in any order, as below:

          # xmit_hash_policy can be set anytime.
          # Changing xmit_hash_policy requires $BOND_MASTER to be down.
          sysfs_change_down xmit_hash_policy "$IF_BOND_XMIT_HASH_POLICY"

  However, this comment is not true. For example when trying to create
  the following in /etc/network/interfaces:

  iface bond0 inet manual
          bond-slaves none
          bond-mode balance-tlb
          bond-miimon 100
          bond-xmit_hash_policy 1

  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/net/bond0/bonding/mode; /bin/echo  
  1 > /sys/class/net/bond0/bonding/xmit_hash_policy

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/ifenslave/+bug/1768345/+subscriptions



More information about the foundations-bugs mailing list