mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 03:27:44 -04:00
bridge: call NETDEV_JOIN notifiers when add a slave
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 <[email protected]> Cc: Neil Horman <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
8d8fc29d02
commit
bb8ed6302b
1 changed files with 2 additions and 0 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue