From: dingtianhong Date: Sat, 25 Jan 2014 05:00:57 +0000 (+0800) Subject: bonding: fail_over_mac should only affect AB mode in bond_set_mac_address() X-Git-Tag: v3.14-rc3~36^2~62^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cc689aaa7abf33b2ccb02482e5e17885ea8903d1;p=pandora-kernel.git bonding: fail_over_mac should only affect AB mode in bond_set_mac_address() The fail_over_mac could be set to active or follow in any time for all modes, so if the fail_over_mac is not none and the current mode is not active-backup, the bond_set_mac_address() could not change the master and slave's MAC address. In bond_set_mac_address(), the fail_over_mac should only affect AB mode, so modify to check the mode in addition to fail_over_mac when setting bond's MAC address. Cc: Jay Vosburgh Cc: Veaceslav Falico Cc: Andy Gospodarek Signed-off-by: Ding Tianhong Signed-off-by: David S. Miller --- Reading git-diff-tree failed