]> git.karo-electronics.de Git - karo-tx-linux.git/commit
arp_notify: allow drivers to explicitly request a notification event.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 26 May 2010 00:09:42 +0000 (00:09 +0000)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 13 Aug 2010 20:19:49 +0000 (13:19 -0700)
commitac33b999caed81edf848948cde358920dff3f31f
treeaa5768e332f2c459ac4ec3b579feb990e1e523ae
parentbdded112e09f6c94084fe6c69ebbfb561650a046
arp_notify: allow drivers to explicitly request a notification event.

commit 06c4648d46d1b757d6b9591a86810be79818b60c upstream.

Currently such notifications are only generated when the device comes up or the
address changes. However one use case for these notifications is to enable
faster network recovery after a virtual machine migration (by causing switches
to relearn their MAC tables). A migration appears to the network stack as a
temporary loss of carrier and therefore does not trigger either of the current
conditions. Rather than adding carrier up as a trigger (which can cause issues
when interfaces a flapping) simply add an interface which the driver can use
to explicitly trigger the notification.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Stephen Hemminger <shemminger@linux-foundation.org>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: David S. Miller <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
include/linux/netdevice.h
include/linux/notifier.h
net/ipv4/devinet.c
net/sched/sch_generic.c