[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-changelog] [linux-2.6.18-xen] netback: Ensure we send offline udev event when an interface goes away.
# HG changeset patch # User Keir Fraser <keir.fraser@xxxxxxxxxx> # Date 1216136379 -3600 # Node ID a682229d0eacf0bdd25b87a27143d451792f251b # Parent e0c15322ff6d6d1fe5277b36018e4c2e4563ead1 netback: Ensure we send offline udev event when an interface goes away. Signed-off-by: Keir Fraser <keir.fraser@xxxxxxxxxx> --- drivers/xen/netback/xenbus.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff -r e0c15322ff6d -r a682229d0eac drivers/xen/netback/xenbus.c --- a/drivers/xen/netback/xenbus.c Mon Jul 14 10:15:44 2008 +0100 +++ b/drivers/xen/netback/xenbus.c Tue Jul 15 16:39:39 2008 +0100 @@ -40,6 +40,7 @@ static int netback_remove(struct xenbus_ netback_remove_accelerators(be, dev); if (be->netif) { + kobject_uevent(&dev->dev.kobj, KOBJ_OFFLINE); netif_disconnect(be->netif); be->netif = NULL; } @@ -238,6 +239,7 @@ static void frontend_changed(struct xenb case XenbusStateClosing: if (be->netif) { + kobject_uevent(&dev->dev.kobj, KOBJ_OFFLINE); netif_disconnect(be->netif); be->netif = NULL; } @@ -250,8 +252,6 @@ static void frontend_changed(struct xenb break; /* fall through if not online */ case XenbusStateUnknown: - if (be->netif != NULL) - kobject_uevent(&dev->dev.kobj, KOBJ_OFFLINE); device_unregister(&dev->dev); break; _______________________________________________ Xen-changelog mailing list Xen-changelog@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-changelog
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |