Package: ifenslave
Version: 2.9
Severity: normal
Tags: patch

Bonding driver 3.7.1 and later supports an option called
"tlb_dynamic_lb" for "balance-tlb" mode, but there is no support for
setting it in the /etc/network/interfaces file. This patch adds support
for that.

With this patch, adding "bond-tlb_dynamic_lb 0" to the interfaces file
correctly shows "bond0: Setting dynamic-lb to off (0)" in logs, and
correctly sets the value of
"/sys/class/net/bond0/bonding/tlb_dynamic_lb".

-- 
Robert L Mathews, Tiger Technologies

--- debian/ifenslave.if-pre-up
+++ debian/ifenslave.if-pre-up
@@ -144,6 +144,9 @@
        # arp_validate must be after mode (because mode must be active-backup).
        sysfs arp_validate "$IF_BOND_ARP_VALIDATE"
 
+       # tlb_dynamic_lb must be after mode (because mode must be active-tlb).
+       sysfs_change_down tlb_dynamic_lb "$IF_BOND_TLB_DYNAMIC_LB"
+
        # lacp_rate must be set after mode (because mode must be 802.3ad).
        # Changing lacp_rate requires $BOND_MASTER to be down.
        sysfs_change_down lacp_rate "$IF_BOND_LACP_RATE"

--- debian/README.Debian
+++ debian/README.Debian
@@ -206,6 +206,9 @@
 * bond-xmit_hash_policy:
        Write into /sys/class/net/<bond>/bonding/xmit_hash_policy
 
+* bond-tlb_dynamic_lb:
+       Write into /sys/class/net/<bond>/bonding/tlb_dynamic_lb
+
 
--------------------------------------------------------------------------------
 
 The following files in /sys/class/net/bond*/bonding are read-only, so no

Reply via email to