diff options
author | Amerigo Wang <amwang@redhat.com> | 2011-05-19 17:39:11 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-05-22 21:01:19 -0400 |
commit | bb8ed6302b0613339c1a5f0a2cb0b3807c0af611 (patch) | |
tree | 11fac5a62c192453f01cab4aedc81b0cdc91c900 | |
parent | 8d8fc29d02a33e4bd5f4fa47823c1fd386346093 (diff) |
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 <amwang@redhat.com>
Cc: Neil Horman <nhorman@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/bridge/br_if.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/bridge/br_if.c b/net/bridge/br_if.c index 5dbdfdfc3a34..d5147ddd70bf 100644 --- 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) | |||
338 | if (IS_ERR(p)) | 338 | if (IS_ERR(p)) |
339 | return PTR_ERR(p); | 339 | return PTR_ERR(p); |
340 | 340 | ||
341 | call_netdevice_notifiers(NETDEV_JOIN, dev); | ||
342 | |||
341 | err = dev_set_promiscuity(dev, 1); | 343 | err = dev_set_promiscuity(dev, 1); |
342 | if (err) | 344 | if (err) |
343 | goto put_back; | 345 | goto put_back; |