From: Ian Campbell Date: Wed, 26 May 2010 00:09:43 +0000 (+0000) Subject: xen: netfront: explicitly generate arp_notify event after migration. X-Git-Tag: v2.6.36-rc1~571^2~728 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=592970675c9522bde588b945388c7995c8b51328;p=platform%2Fkernel%2Flinux-stable.git xen: netfront: explicitly generate arp_notify event after migration. Use newly introduced netif_notify_peers() method to ensure a gratuitous ARP is generated after a migration. Signed-off-by: Ian Campbell Cc: Stephen Hemminger Cc: Jeremy Fitzhardinge Cc: David S. Miller Cc: netdev@vger.kernel.org Cc: xen-devel@lists.xensource.com Cc: stable@kernel.org Signed-off-by: David S. Miller --- diff --git a/drivers/net/xen-netfront.c b/drivers/net/xen-netfront.c index d504e2b..b50fedc 100644 --- a/drivers/net/xen-netfront.c +++ b/drivers/net/xen-netfront.c @@ -1621,6 +1621,7 @@ static void backend_changed(struct xenbus_device *dev, if (xennet_connect(netdev) != 0) break; xenbus_switch_state(dev, XenbusStateConnected); + netif_notify_peers(netdev); break; case XenbusStateClosing: