From: Amerigo Wang Date: Thu, 19 May 2011 23:06:32 +0000 (+0000) Subject: rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event X-Git-Tag: v3.0-rc1~351^2~11 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac3d3f81516fcbf80416e84682fd4bdaf3080611;p=platform%2Fkernel%2Flinux-exynos.git rtnetlink: ignore NETDEV_RELEASE and NETDEV_JOIN event These two events are not expected to be caught by userspace. Signed-off-by: WANG Cong Signed-off-by: David S. Miller --- diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index d2ba2597c75a..d1644e317e70 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);