From: David S. Miller Date: Sat, 14 Dec 2013 06:08:14 +0000 (-0500) Subject: Merge branch 'bonding_netlink' X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=0aac68f7efefc616a6b963227ae1ec55acaa76c3;p=openwrt%2Fstaging%2Fblogic.git Merge branch 'bonding_netlink' Scott Feldman says: ==================== bonding: add more netlink attributes v2: Addressed v1 review comments. In particular, Jay's concern about current sysfs ordering limitations carrying over to iproute. Netlink attributes are processed in a priority order in bond_netlink.c:bond_changelink(). Lower priority attributes can't undo higher priority attributes when attempting to set both with iproute command. For example, this command will fail: ip link add bond1 type bond mode active-backup miimon 10 arp_interval 10 Because we're trying to create a new bond to use incompatible miimon and ARP interval attributes. However, if attributes are applied one-at-a-time, previously applied attributes can be overridden: ip link add bond1 type bond mode active-backup miimon 10 ip link set dev bond1 type bond arp_interval 10 These two commands succeed. The bond is first created to use miimon. Next, the bond is converted to use ARP interval, which undoes miimon. v1: Following Jiri Pirko's lead, add more bonding netlink attributes. Sending matching iproute2 patch separately. sysfs access to attributes is retained. ==================== Signed-off-by: David S. Miller --- 0aac68f7efefc616a6b963227ae1ec55acaa76c3