]> git.baikalelectronics.ru Git - kernel.git/commit
bonding: convert bond_has_this_ip() to use upper devices
authorVeaceslav Falico <vfalico@redhat.com>
Wed, 28 Aug 2013 21:25:11 +0000 (23:25 +0200)
committerDavid S. Miller <davem@davemloft.net>
Thu, 29 Aug 2013 20:19:42 +0000 (16:19 -0400)
commitb81725753373ec3f21c37487484517b4c88451ce
tree39e50a5455c0b94d126cdb5ed2c2530c558d8a8b
parent1b11729a71fca0c4924f2168b35ce3fe39c515fd
bonding: convert bond_has_this_ip() to use upper devices

Currently, bond_has_this_ip() is aware only of vlan upper devices, and thus
will return false if the address is associated with the upper bridge or any
other device, and thus will break the arp logic.

Fix this by using the upper device list. For every upper device we verify
if the address associated with it is our address, and if yes - return true.

CC: Jay Vosburgh <fubar@us.ibm.com>
CC: Andy Gospodarek <andy@greyhouse.net>
Signed-off-by: Veaceslav Falico <vfalico@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/bonding/bond_main.c