aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/net/bonding/bond_main.c2
-rw-r--r--drivers/net/bonding/bond_sysfs.c3
2 files changed, 5 insertions, 0 deletions
diff --git a/drivers/net/bonding/bond_main.c b/drivers/net/bonding/bond_main.c
index 56c823c175fe..39575d764974 100644
--- a/drivers/net/bonding/bond_main.c
+++ b/drivers/net/bonding/bond_main.c
@@ -4564,6 +4564,8 @@ static int bond_init(struct net_device *bond_dev, struct bond_params *params)
4564 bond_dev->tx_queue_len = 0; 4564 bond_dev->tx_queue_len = 0;
4565 bond_dev->flags |= IFF_MASTER|IFF_MULTICAST; 4565 bond_dev->flags |= IFF_MASTER|IFF_MULTICAST;
4566 bond_dev->priv_flags |= IFF_BONDING; 4566 bond_dev->priv_flags |= IFF_BONDING;
4567 if (bond->params.arp_interval)
4568 bond_dev->priv_flags |= IFF_MASTER_ARPMON;
4567 4569
4568 /* At first, we block adding VLANs. That's the only way to 4570 /* At first, we block adding VLANs. That's the only way to
4569 * prevent problems that occur when adding VLANs over an 4571 * prevent problems that occur when adding VLANs over an
diff --git a/drivers/net/bonding/bond_sysfs.c b/drivers/net/bonding/bond_sysfs.c
index 296a865b75d2..e400d7dfdfc8 100644
--- a/drivers/net/bonding/bond_sysfs.c
+++ b/drivers/net/bonding/bond_sysfs.c
@@ -620,6 +620,8 @@ static ssize_t bonding_store_arp_interval(struct device *d,
620 ": %s: Setting ARP monitoring interval to %d.\n", 620 ": %s: Setting ARP monitoring interval to %d.\n",
621 bond->dev->name, new_value); 621 bond->dev->name, new_value);
622 bond->params.arp_interval = new_value; 622 bond->params.arp_interval = new_value;
623 if (bond->params.arp_interval)
624 bond->dev->priv_flags |= IFF_MASTER_ARPMON;
623 if (bond->params.miimon) { 625 if (bond->params.miimon) {
624 printk(KERN_INFO DRV_NAME 626 printk(KERN_INFO DRV_NAME
625 ": %s: ARP monitoring cannot be used with MII monitoring. " 627 ": %s: ARP monitoring cannot be used with MII monitoring. "
@@ -1039,6 +1041,7 @@ static ssize_t bonding_store_miimon(struct device *d,
1039 "ARP monitoring. Disabling ARP monitoring...\n", 1041 "ARP monitoring. Disabling ARP monitoring...\n",
1040 bond->dev->name); 1042 bond->dev->name);
1041 bond->params.arp_interval = 0; 1043 bond->params.arp_interval = 0;
1044 bond->dev->priv_flags &= ~IFF_MASTER_ARPMON;
1042 if (bond->params.arp_validate) { 1045 if (bond->params.arp_validate) {
1043 bond_unregister_arp(bond); 1046 bond_unregister_arp(bond);
1044 bond->params.arp_validate = 1047 bond->params.arp_validate =