summaryrefslogtreecommitdiffstats
path: root/net/core/rtnetlink.c
diff options
context:
space:
mode:
authorPatrick McHardy <kaber@trash.net>2010-03-19 04:42:24 +0000
committerDavid S. Miller <davem@davemloft.net>2010-03-21 18:31:34 -0700
commit755d0e77ac9c8d125388922dc33434ed5b2ebe80 (patch)
treec63cd067dac50bfc9f912f7ab9e3a6b8e850af7f /net/core/rtnetlink.c
parent3e81c6da39a265e11ef48f52bd15bf7ca0068c75 (diff)
downloadop-kernel-dev-755d0e77ac9c8d125388922dc33434ed5b2ebe80.zip
op-kernel-dev-755d0e77ac9c8d125388922dc33434ed5b2ebe80.tar.gz
net: rtnetlink: ignore NETDEV_PRE_TYPE_CHANGE in rtnetlink_event()
Ignore the new NETDEV_PRE_TYPE_CHANGE event in rtnetlink_event() since there have been no changes userspace needs to be notified of. Also add a comment to the netdev notifier event definitions to remind people to update the exclusion list when adding new event types. Signed-off-by: Patrick McHardy <kaber@trash.net> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/core/rtnetlink.c')
-rw-r--r--net/core/rtnetlink.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c
index e1121f0..ffc6cf3 100644
--- a/net/core/rtnetlink.c
+++ b/net/core/rtnetlink.c
@@ -1513,6 +1513,7 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi
case NETDEV_POST_INIT:
case NETDEV_REGISTER:
case NETDEV_CHANGE:
+ case NETDEV_PRE_TYPE_CHANGE:
case NETDEV_GOING_DOWN:
case NETDEV_UNREGISTER:
case NETDEV_UNREGISTER_BATCH:
OpenPOWER on IntegriCloud