aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding
diff options
context:
space:
mode:
authorMitch Williams <mitch.a.williams@intel.com>2005-11-09 13:36:19 -0500
committerJohn W. Linville <linville@tuxdriver.com>2005-11-13 14:48:20 -0500
commit6b780567223524cac86c745aeac425521cf37490 (patch)
tree98fbe73fc3ec76aa90c1706e42969b799dc0d70a /drivers/net/bonding
parent3c535952d86df83f817595068c9fd2b3cfbd3a4d (diff)
[PATCH] bonding: Allow ARP target table to have empty entries
With the sysfs interface, the user can remove entries from the ARP table at runtime. The ARP monitor code now allows for empty entries in the table. Signed-off-by: Mitch Williams <mitch.a.williams@intel.com> Acked-by: Jay Vosburgh <fubar@us.ibm.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/bonding')
-rw-r--r--drivers/net/bonding/bond_main.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 73c9dd63e985..b656e53f4624 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -2729,7 +2729,9 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
2729 struct flowi fl; 2729 struct flowi fl;
2730 struct rtable *rt; 2730 struct rtable *rt;
2731 2731
2732 for (i = 0; (i < BOND_MAX_ARP_TARGETS) && targets[i]; i++) { 2732 for (i = 0; (i < BOND_MAX_ARP_TARGETS); i++) {
2733 if (!targets[i])
2734 continue;
2733 dprintk("basa: target %x\n", targets[i]); 2735 dprintk("basa: target %x\n", targets[i]);
2734 if (list_empty(&bond->vlan_list)) { 2736 if (list_empty(&bond->vlan_list)) {
2735 dprintk("basa: empty vlan: arp_send\n"); 2737 dprintk("basa: empty vlan: arp_send\n");