projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8fc29
)
bridge: call NETDEV_JOIN notifiers when add a slave
author
Amerigo Wang
<amwang@redhat.com>
Thu, 19 May 2011 21:39:11 +0000
(21:39 +0000)
committer
David S. Miller
<davem@davemloft.net>
Mon, 23 May 2011 01:01:19 +0000
(21:01 -0400)
In the previous patch I added NETDEV_JOIN, now
we can notify netconsole when adding a device to a bridge too.
Signed-off-by: WANG Cong <amwang@redhat.com>
Cc: Neil Horman <nhorman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/bridge/br_if.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bridge/br_if.c
b/net/bridge/br_if.c
index 5dbdfdfc3a34a13f02815e574da427d88d228526..d5147ddd70bf7931edab266329daf58d316f925c 100644
(file)
--- a/
net/bridge/br_if.c
+++ b/
net/bridge/br_if.c
@@
-338,6
+338,8
@@
int br_add_if(struct net_bridge *br, struct net_device *dev)
if (IS_ERR(p))
return PTR_ERR(p);
+ call_netdevice_notifiers(NETDEV_JOIN, dev);
+
err = dev_set_promiscuity(dev, 1);
if (err)
goto put_back;