From: Amerigo Wang <amwang@redhat.com>
To: netdev@vger.kernel.org
Cc: WANG Cong <amwang@redhat.com>, Neil Horman <nhorman@redhat.com>
Subject: [Patch 2/3] bridge: call NETDEV_JOIN notifiers when add a slave
Date: Fri, 20 May 2011 15:39:11 +0800 [thread overview]
Message-ID: <1305877152-30970-2-git-send-email-amwang@redhat.com> (raw)
In-Reply-To: <1305877152-30970-1-git-send-email-amwang@redhat.com>
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>
---
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 5dbdfdf..d5147dd 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)
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;
--
1.7.1
next prev parent reply other threads:[~2011-05-20 7:39 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-05-20 7:39 [V3 Patch 1/3] netpoll: disable netpoll when enslave a device Amerigo Wang
2011-05-20 7:39 ` Amerigo Wang [this message]
2011-05-23 1:03 ` [Patch 2/3] bridge: call NETDEV_JOIN notifiers when add a slave David Miller
2011-05-20 7:39 ` [Patch 3/3] net: rename NETDEV_BONDING_DESLAVE to NETDEV_RELEASE Amerigo Wang
2011-05-23 1:03 ` David Miller
2011-05-23 15:17 ` Andy Gospodarek
2011-05-20 9:06 ` [PATCH 4/3] rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event Amerigo Wang
2011-05-23 1:03 ` David Miller
2011-05-23 1:03 ` [V3 Patch 1/3] netpoll: disable netpoll when enslave a device David Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1305877152-30970-2-git-send-email-amwang@redhat.com \
--to=amwang@redhat.com \
--cc=netdev@vger.kernel.org \
--cc=nhorman@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).