diff options
author | Patrick McHardy <kaber@trash.net> | 2010-02-26 01:34:50 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2010-02-27 05:43:39 -0500 |
commit | 10de05afe01c12cedc42eb9ce05b111eed6c8210 (patch) | |
tree | 4311e8504a32b6fdf1b97515b9d2fd6e01fdbeaf | |
parent | cb395eaf439625f26c8527bb05bb905774a54c36 (diff) |
rtnetlink: ignore NETDEV_PRE_UP notifier in rtnetlink_event()
Commit 3b8bcfd (net: introduce pre-up netdev notifier) added a new
notifier which is run before a device is set UP for use by cfg80211.
The patch missed to add the new notifier to the ignore list in
rtnetlink_event(), so we currently get an unnecessary netlink
notification before a device is set UP.
Signed-off-by: Patrick McHardy <kaber@trash.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r-- | net/core/rtnetlink.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/net/core/rtnetlink.c b/net/core/rtnetlink.c index 4dd4c3cdc442..b7c7dfd86507 100644 --- a/net/core/rtnetlink.c +++ b/net/core/rtnetlink.c | |||
@@ -1432,6 +1432,7 @@ static int rtnetlink_event(struct notifier_block *this, unsigned long event, voi | |||
1432 | case NETDEV_DOWN: | 1432 | case NETDEV_DOWN: |
1433 | rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); | 1433 | rtmsg_ifinfo(RTM_NEWLINK, dev, IFF_UP|IFF_RUNNING); |
1434 | break; | 1434 | break; |
1435 | case NETDEV_PRE_UP: | ||
1435 | case NETDEV_POST_INIT: | 1436 | case NETDEV_POST_INIT: |
1436 | case NETDEV_REGISTER: | 1437 | case NETDEV_REGISTER: |
1437 | case NETDEV_CHANGE: | 1438 | case NETDEV_CHANGE: |