Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: hv: Enable sending GARP packet after live migration

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

authored by

Haiyang Zhang and committed by
Greg Kroah-Hartman
7c161d0b ebf53826

+1
+1
drivers/staging/hv/netvsc_drv.c
··· 236 236 if (status == 1) { 237 237 netif_carrier_on(net); 238 238 netif_wake_queue(net); 239 + netif_notify_peers(net); 239 240 } else { 240 241 netif_carrier_off(net); 241 242 netif_stop_queue(net);