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)
commit50223ce4be70367ca5d8135bfd4c976e148bc491
tree39e50a5455c0b94d126cdb5ed2c2530c558d8a8b
parent27bc11e63888c7cb0bd6d443e98775254cf7dbdd
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