WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-changelog

[Xen-changelog] [linux-2.6.18-xen] netback: Ensure we send offline udev

To: xen-changelog@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-changelog] [linux-2.6.18-xen] netback: Ensure we send offline udev event when an interface goes away.
From: "Xen patchbot-linux-2.6.18-xen" <patchbot-linux-2.6.18-xen@xxxxxxxxxxxxxxxxxxx>
Date: Tue, 15 Jul 2008 13:30:16 -0700
Delivery-date: Tue, 15 Jul 2008 13:30:25 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-changelog-request@lists.xensource.com?subject=help>
List-id: BK change log <xen-changelog.lists.xensource.com>
List-post: <mailto:xen-changelog@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-changelog>, <mailto:xen-changelog-request@lists.xensource.com?subject=unsubscribe>
Reply-to: xen-devel@xxxxxxxxxxxxxxxxxxx
Sender: xen-changelog-bounces@xxxxxxxxxxxxxxxxxxx
# 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

<Prev in Thread] Current Thread [Next in Thread>
  • [Xen-changelog] [linux-2.6.18-xen] netback: Ensure we send offline udev event when an interface goes away., Xen patchbot-linux-2.6.18-xen <=