]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
staging: hv: Enable sending GARP packet after live migration
authorHaiyang Zhang <haiyangz@microsoft.com>
Wed, 2 Feb 2011 21:42:58 +0000 (13:42 -0800)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Sun, 26 Jun 2011 16:46:23 +0000 (12:46 -0400)
commit 7c161d0b900ea9bd9fc5ea5d3fa9916e9eb0dd88 upstream.

The hv_netvsc gets RNDIS_STATUS_MEDIA_CONNECT event after the VM
is live migrated. Adding call to netif_notify_peers() for this event
to send GARP (Gratuitous ARP) to notify network peers. Otherwise,
the VM's network connection may stop after a live migration.

This patch should also be applied to stable kernel 2.6.32 and later.

Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Hank Janssen <hjanssen@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
drivers/staging/hv/netvsc_drv.c

index 91e413e5258a65d5e303c208d521a83ad6f31fa0..d6940f402400ee97d10b30ef7bc0eb7112f4c56c 100644 (file)
@@ -286,6 +286,7 @@ static void netvsc_linkstatus_callback(struct hv_device *device_obj,
        if (status == 1) {
                netif_carrier_on(net);
                netif_wake_queue(net);
+               netif_notify_peers(net);
        } else {
                netif_carrier_off(net);
                netif_stop_queue(net);