diff mbox

[4/3] rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event

Message ID 1305882392-21241-1-git-send-email-amwang@redhat.com
State Accepted, archived
Delegated to: David Miller
Headers show

Commit Message

Amerigo Wang May 20, 2011, 9:06 a.m. UTC
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(-)

Comments

David Miller May 23, 2011, 1:03 a.m. UTC | #1
From: Amerigo Wang <amwang@redhat.com>
Date: Fri, 20 May 2011 17:06:32 +0800

> These two events are not expected to be caught by userspace.
> 
> Signed-off-by: WANG Cong <amwang@redhat.com>

Applied.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
diff mbox

Patch

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);