提交 6b780567 编写于 作者: M Mitch Williams 提交者: John W. Linville

[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: NMitch Williams <mitch.a.williams@intel.com>
Acked-by: NJay Vosburgh <fubar@us.ibm.com>
Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
上级 3c535952
...@@ -2729,7 +2729,9 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave) ...@@ -2729,7 +2729,9 @@ static void bond_arp_send_all(struct bonding *bond, struct slave *slave)
struct flowi fl; struct flowi fl;
struct rtable *rt; struct rtable *rt;
for (i = 0; (i < BOND_MAX_ARP_TARGETS) && targets[i]; i++) { for (i = 0; (i < BOND_MAX_ARP_TARGETS); i++) {
if (!targets[i])
continue;
dprintk("basa: target %x\n", targets[i]); dprintk("basa: target %x\n", targets[i]);
if (list_empty(&bond->vlan_list)) { if (list_empty(&bond->vlan_list)) {
dprintk("basa: empty vlan: arp_send\n"); dprintk("basa: empty vlan: arp_send\n");
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册