]> git.baikalelectronics.ru Git - kernel.git/commit
net: introduce pre-up netdev notifier
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 29 May 2009 23:39:53 +0000 (01:39 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 3 Jun 2009 18:05:12 +0000 (14:05 -0400)
commitd7991e824feb851b2b9d80a3c3567a14c08fac17
treecdb845275acea5a367bd9f17ce07c1a5ab4f19fa
parent39627e7c9ad81aa1cf76ab3776b575f27b09ddbb
net: introduce pre-up netdev notifier

NETDEV_UP is called after the device is set UP, but sometimes
it is useful to be able to veto the device UP. Introduce a
new NETDEV_PRE_UP notifier that can be used for exactly this.
The first use case will be cfg80211 denying interfaces to be
set UP if the device is known to be rfkill'ed.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Acked-by: David S. Miller <davem@davemloft.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
include/linux/notifier.h
net/core/dev.c