]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: bond_change_active_slave() cleanup under active-backup
authorOr Gerlitz <ogerlitz@voltaire.com>
Sat, 14 Jun 2008 01:12:01 +0000 (18:12 -0700)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 18 Jun 2008 03:59:41 +0000 (23:59 -0400)
commitfff82ee95c89db999fcc26899d99b06dca64b6f4
tree6fcc38034efaa4292b90e0f4b1bc50642d54864f
parent0f52e331a4f8eadb84e6572985f11f5ce8333422
bonding: bond_change_active_slave() cleanup under active-backup

simplified the code of bond_change_active_slave() such that under
active-backup mode there's one "if (new_active)" test and the rest
of the code only does extra checks on top of it. This removed an
unneeded "if (bond->send_grat_arp > 0)" check and avoid calling
bond_send_gratuitous_arp when there's no active slave.

Jay Vosburgh made minor coding style changes to the orignal patch.

Signed-off-by: Or Gerlitz <ogerlitz@voltaire.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/bonding/bond_main.c