]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: 3ad: apply ad_actor settings changes immediately
authorNikolay Aleksandrov <nikolay@cumulusnetworks.com>
Wed, 3 Feb 2016 12:17:01 +0000 (13:17 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Feb 2016 09:45:49 +0000 (04:45 -0500)
commit665d3103010007ba28350d55768668ff9589d572
treeeaa2d26fbcd0432f831709ba7986f1e45821c925
parentdbe9dd37bd14da64a2d2dbd286ffbaeb0fa4d6c9
bonding: 3ad: apply ad_actor settings changes immediately

Currently the bonding allows to set ad_actor_system and prio while the
bond device is down, but these are actually applied only if there aren't
any slaves yet (applied to bond device when first slave shows up, and to
slaves at 3ad bind time). After this patch changes are applied immediately
and the new values can be used/seen after the bond's upped so it's not
necessary anymore to release all and enslave again to see the changes.

CC: Jay Vosburgh <j.vosburgh@gmail.com>
CC: Veaceslav Falico <vfalico@gmail.com>
CC: Andy Gospodarek <gospo@cumulusnetworks.com>
Signed-off-by: Nikolay Aleksandrov <nikolay@cumulusnetworks.com>
Signed-off-by: Jay Vosburgh <jay.vosburgh@canonical.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_3ad.c
drivers/net/bonding/bond_options.c
include/net/bond_3ad.h