]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: reset master mac on first enslave failure
authorNikolay Aleksandrov <nikolay@redhat.com>
Tue, 11 Jun 2013 22:07:01 +0000 (00:07 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 13 Jun 2013 09:33:37 +0000 (02:33 -0700)
commit69aafde16e733ee6699b7a519e216f1374114218
tree63b671e93aa984f6803745f8eabe21c1642f9236
parent0572de5f5e41afbfba00a7ca3778622ccd3b2d2d
bonding: reset master mac on first enslave failure

If the bond device is supposed to get the first slave's MAC address and
the first enslavement fails then we need to reset the master's MAC
otherwise it will stay the same as the failed slave device. We do it
after err_undo_flags since that is the first place where the MAC can be
changed and we check if it should've been the first slave and if the
bond's MAC was set to it because that err place is used by multiple
locations prior to changing the master's MAC address.

Signed-off-by: Nikolay Aleksandrov <nikolay@redhat.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c