]> git.baikalelectronics.ru Git - kernel.git/commit
ipv4, ipv6, bonding: Restore control over number of peer notifications
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 26 Apr 2011 15:25:52 +0000 (15:25 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 29 Apr 2011 19:44:11 +0000 (12:44 -0700)
commit1d7d386c0eb382d0c1579d5c4f39652ed18f7735
tree28afc1b370d856a63a3cd792fc292996c0315c13
parent3c91ef7911dbe0885236b8fbca20561c2d7b905c
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>
Documentation/networking/bonding.txt
drivers/net/bonding/bond_main.c
drivers/net/bonding/bond_sysfs.c
drivers/net/bonding/bonding.h
net/ipv4/devinet.c
net/ipv6/ndisc.c