aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/bonding/bonding.h
diff options
context:
space:
mode:
authorBen Hutchings <bhutchings@solarflare.com>2011-04-26 11:25:52 -0400
committerDavid S. Miller <davem@davemloft.net>2011-04-29 15:44:11 -0400
commitad246c992bea6d33c6421ba1f03e2b405792adf9 (patch)
tree28afc1b370d856a63a3cd792fc292996c0315c13 /drivers/net/bonding/bonding.h
parent7d36a991e8d36b8ae87e2aa1158d3735e656253b (diff)
ipv4, ipv6, bonding: Restore control over number of peer notifications
For backward compatibility, we should retain the module parameters and sysfs attributes to control the number of peer notifications (gratuitous ARPs and unsolicited NAs) sent after bonding failover. Also, it is possible for failover to take place even though the new active slave does not have link up, and in that case the peer notification should be deferred until it does. Change ipv4 and ipv6 so they do not automatically send peer notifications on bonding failover. Change the bonding driver to send separate NETDEV_NOTIFY_PEERS notifications when the link is up, as many times as requested. Since it does not directly control which protocols send notifications, make num_grat_arp and num_unsol_na aliases for a single parameter. Bump the bonding version number and update its documentation. Signed-off-by: Ben Hutchings <bhutchings@solarflare.com> Signed-off-by: Jay Vosburgh <fubar@us.ibm.com> Acked-by: Brian Haley <brian.haley@hp.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/bonding/bonding.h')
-rw-r--r--drivers/net/bonding/bonding.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/drivers/net/bonding/bonding.h b/drivers/net/bonding/bonding.h
index 85fb8220e28..d08362e1a0d 100644
--- a/drivers/net/bonding/bonding.h
+++ b/drivers/net/bonding/bonding.h
@@ -24,8 +24,8 @@
24#include "bond_3ad.h" 24#include "bond_3ad.h"
25#include "bond_alb.h" 25#include "bond_alb.h"
26 26
27#define DRV_VERSION "3.7.0" 27#define DRV_VERSION "3.7.1"
28#define DRV_RELDATE "June 2, 2010" 28#define DRV_RELDATE "April 27, 2011"
29#define DRV_NAME "bonding" 29#define DRV_NAME "bonding"
30#define DRV_DESCRIPTION "Ethernet Channel Bonding Driver" 30#define DRV_DESCRIPTION "Ethernet Channel Bonding Driver"
31 31
@@ -149,6 +149,7 @@ struct bond_params {
149 int mode; 149 int mode;
150 int xmit_policy; 150 int xmit_policy;
151 int miimon; 151 int miimon;
152 u8 num_peer_notif;
152 int arp_interval; 153 int arp_interval;
153 int arp_validate; 154 int arp_validate;
154 int use_carrier; 155 int use_carrier;
@@ -231,6 +232,7 @@ struct bonding {
231 rwlock_t lock; 232 rwlock_t lock;
232 rwlock_t curr_slave_lock; 233 rwlock_t curr_slave_lock;
233 s8 kill_timers; 234 s8 kill_timers;
235 u8 send_peer_notif;
234 s8 setup_by_slave; 236 s8 setup_by_slave;
235 s8 igmp_retrans; 237 s8 igmp_retrans;
236#ifdef CONFIG_PROC_FS 238#ifdef CONFIG_PROC_FS