From: Haiyang Zhang Date: Wed, 2 Feb 2011 21:42:58 +0000 (-0800) Subject: staging: hv: Enable sending GARP packet after live migration X-Git-Tag: v2.6.37.1~229 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=8184d7cea8b22cddd7f9baee58a15f9178fec9e9;p=users%2Fdwmw2%2Flinux.git staging: hv: Enable sending GARP packet after live migration 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 Signed-off-by: Hank Janssen Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/hv/netvsc_drv.c b/drivers/staging/hv/netvsc_drv.c index 3a8f6020ee5c0..cb79dff19b423 100644 --- a/drivers/staging/hv/netvsc_drv.c +++ b/drivers/staging/hv/netvsc_drv.c @@ -233,6 +233,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);