summaryrefslogtreecommitdiffstats
path: root/net/bridge/br_if.c
diff options
context:
space:
mode:
authorStephen Hemminger <shemminger@osdl.org>2006-03-04 02:16:15 +0100
committerDavid S. Miller <davem@sunset.davemloft.net>2006-03-05 06:06:23 +0100
commit125a12ccf3eefebff43e3dbf47225141faa5fbe8 (patch)
tree5d181e296bf756c271f3b748c8d3f880eb65f9ff /net/bridge/br_if.c
parent[BRIDGE]: port timer initialization (diff)
downloadlinux-125a12ccf3eefebff43e3dbf47225141faa5fbe8.tar.xz
linux-125a12ccf3eefebff43e3dbf47225141faa5fbe8.zip
[BRIDGE]: generate kobject remove event
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>
Diffstat (limited to 'net/bridge/br_if.c')
-rw-r--r--net/bridge/br_if.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c
index 879b54ed2b4e..f36b35edd60c 100644
--- a/net/bridge/br_if.c
+++ b/net/bridge/br_if.c
@@ -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);