]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
[BRIDGE]: generate kobject remove event
authorStephen Hemminger <shemminger@osdl.org>
Sat, 4 Mar 2006 01:16:15 +0000 (17:16 -0800)
committerDavid S. Miller <davem@sunset.davemloft.net>
Sun, 5 Mar 2006 05:06:23 +0000 (21:06 -0800)
The earlier round of kobject/sysfs changes to bridge caused
it not to generate a uevent on removal. Don't think any application
cares (not sure about Xen) but since it generates add uevent
it should generate remove as well.

Signed-off-by: Stephen Hemminger <shemmigner@osdl.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c

index 879b54ed2b4e3e94aa9432412e192f8b3b16b389..f36b35edd60cefcbb27c7f3752a9ca3348242f94 100644 (file)
@@ -169,6 +169,7 @@ static void del_nbp(struct net_bridge_port *p)
 
        rcu_assign_pointer(dev->br_port, NULL);
 
+       kobject_uevent(&p->kobj, KOBJ_REMOVE);
        kobject_del(&p->kobj);
 
        call_rcu(&p->rcu, destroy_nbp_rcu);