netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Amerigo Wang <amwang@redhat.com>
To: netdev@vger.kernel.org
Cc: WANG Cong <amwang@redhat.com>
Subject: [PATCH 4/3] rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event
Date: Fri, 20 May 2011 17:06:32 +0800	[thread overview]
Message-ID: <1305882392-21241-1-git-send-email-amwang@redhat.com> (raw)
In-Reply-To: <1305877152-30970-1-git-send-email-amwang@redhat.com>

These two events are not expected to be caught by userspace.

Signed-off-by: WANG Cong <amwang@redhat.com>
---
 net/core/rtnetlink.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index d2ba259..d1644e3 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1956,6 +1956,8 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
 	case NETDEV_GOING_DOWN:
 	case NETDEV_UNREGISTER:
 	case NETDEV_UNREGISTER_BATCH:
+	case NETDEV_RELEASE:
+	case NETDEV_JOIN:
 		break;
 	default:
 		rtmsg_ifinfo(RTM_NEWLINK, dev, 0);
-- 
1.7.1


  parent reply	other threads:[~2011-05-20  9:06 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 ` [Patch 2/3] bridge: call NETDEV_JOIN notifiers when add a slave Amerigo Wang
2011-05-23  1:03   ` 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 ` Amerigo Wang [this message]
2011-05-23  1:03   ` [PATCH 4/3] rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event 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=1305882392-21241-1-git-send-email-amwang@redhat.com \
    --to=amwang@redhat.com \
    --cc=netdev@vger.kernel.org \
    /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).