projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2899656
)
bridge: add some comments for NETDEV_RELEASE
author
Amerigo Wang
<
[email protected]
>
Fri, 10 Aug 2012 01:24:43 +0000
(
01:24
+0000)
committer
David S. Miller
<
[email protected]
>
Tue, 14 Aug 2012 21:33:31 +0000
(14:33 -0700)
Add comments on why we don't notify NETDEV_RELEASE.
Cc: David Miller <
[email protected]
>
Cc: Stephen Hemminger <
[email protected]
>
Signed-off-by: Cong Wang <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/bridge/br_if.c
patch
|
blob
|
history
diff --git
a/net/bridge/br_if.c
b/net/bridge/br_if.c
index 171fd6b9bfe6280b904478d7912b90937c552028..1c8fdc3558cd48e9ad5d7be9c3981ebf80878364 100644
(file)
--- a/
net/bridge/br_if.c
+++ b/
net/bridge/br_if.c
@@
-427,6
+427,10
@@
int br_del_if(struct net_bridge *br, struct net_device *dev)
if (!p || p->br != br)
return -EINVAL;
+ /* Since more than one interface can be attached to a bridge,
+ * there still maybe an alternate path for netconsole to use;
+ * therefore there is no reason for a NETDEV_RELEASE event.
+ */
del_nbp(p);
spin_lock_bh(&br->lock);