android_kernel_xiaomi_sm8350/drivers/net/bonding
Brian Haley 5a31bec014 Bonding: fix zero address hole bug in arp_ip_target list
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>
2009-04-13 00:12:41 -07:00
..
bond_3ad.c 802.3ad: use standard ethhdr instead of ad_header 2008-12-26 13:41:53 -08:00
bond_3ad.h net: replace uses of __constant_{endian} 2009-02-01 00:45:17 -08:00
bond_alb.c drivers/net/bonding: fix sparse warnings: context imbalance 2009-02-17 17:26:08 -08:00
bond_alb.h
bond_ipv6.c bonding: use pr_debug instead of own macros 2008-12-09 23:09:22 -08:00
bond_main.c Bonding: fix zero address hole bug in arp_ip_target list 2009-04-13 00:12:41 -07:00
bond_sysfs.c Bonding: fix zero address hole bug in arp_ip_target list 2009-04-13 00:12:41 -07:00
bonding.h drivers/net/bonding: fix sparse warnings: move decls to header file 2008-12-25 23:58:57 -08:00
Makefile bonding: send IPv6 neighbor advertisement on failover 2008-11-06 00:49:37 -05:00