Skip to contentSkip to conversation

bonding: prepare to and add arp_all_targets

PATCH Superseded Veaceslav Falico 1 participant 1 message Jun 19, 2013

Subsystems (2)

v1 of 3 Superseded Latest is v3 →

lore
Share & tools
lore
#0 lore raw

cover bonding: prepare to and add arp_all_targets

Hi,

This patchset does some cleanup, fixes a few flaws and adds a new parameter to control whether the slave should stay up when any of arp_ip_targets are up or all of them are up (i.e. if the slave should go down if even one target from arp_ip_targets fail).

The patches 1-5 basicly prepare the bonding code to work properly with this new parameter, however it's not depending on them.

All comments are really welcome.

Thanks!

Veaceslav Falico (6):
bonding: verify if bond has ip only once on arp validate
bonding: add helper function bond_get_targets_ip(targets, ip)
bonding: don't add duplicate targets to arp_ip_target
bonding: don't validate arp if we don't have to
bonding: don't swap arp's ips on validation for backup slave
bonding: add an option to fail when any of arp_ip_target is inaccessible

 Documentation/networking/bonding.txt |   41 +++++++++-----
 drivers/net/bonding/bond_main.c      |   79 ++++++++++++++++++---------
 drivers/net/bonding/bond_sysfs.c     |  100 +++++++++++++++++++++++-----------
 drivers/net/bonding/bonding.h        |   46 +++++++++++++++-
 4 files changed, 191 insertions(+), 75 deletions(-)