]> git.karo-electronics.de Git - karo-tx-linux.git/commit
Bonding: fix zero address hole bug in arp_ip_target list
authorBrian Haley <brian.haley@hp.com>
Mon, 13 Apr 2009 07:11:30 +0000 (00:11 -0700)
committerChris Wright <chrisw@sous-sol.org>
Mon, 27 Apr 2009 17:37:05 +0000 (10:37 -0700)
commit5f9645212515279c4876ff0200fe7fa51dfb57ce
tree2ad741f98cc436807ee528cffa39e406d8088899
parent9fc79ab9a371b45166d80ef18411ea47cf8e3195
Bonding: fix zero address hole bug in arp_ip_target list

upstream commit: 5a31bec014449dc9ca994e4c1dbf2802b7ca458a

Fix a zero address hole bug in the bonding arp_ip_target list
that was causing the bond to ignore ARP replies (bugz 13006).
Instead of just setting the array entry to zero, we now
copy any additional entries down one slot, putting the
zero entry at the end.  With this change we can now have
all the loops that walk the array stop when they hit a zero
since there will be no addresses after it.

Changes are based in part on code fragment provided in kernel:
bugzilla 13006:

http://bugzilla.kernel.org/show_bug.cgi?id=13006

by Steve Howard <steve@astutenetworks.com>

Signed-off-by: Brian Haley <brian.haley@hp.com>
Signed-off-by: Jay Vosburgh <fubar@us.ibm.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Documentation/networking/bonding.txt
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c