summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorOctavian Purdila <opurdila@ixiacom.com>2009-11-16 13:49:35 +0000
committerDavid S. Miller <davem@davemloft.net>2009-11-18 05:03:03 -0800
commit395264d509aec45149745843d9a737140a1ece16 (patch)
tree3a62939d8989232f5bb15f6386ed649ef8de8001 /include
parentfccaf71011b171883efee5bae321eac4760584d1 (diff)
net: introduce NETDEV_UNREGISTER_PERNET
This new event is called once for each unique net namespace in batched unregister operations (with the argument set to a random device from that namespace) and once per device in non-batched unregister operations. It allows us to factorize some device unregister work such as clearing the routing cache. Signed-off-by: Octavian Purdila <opurdila@ixiacom.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include')
-rw-r--r--include/linux/notifier.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h
index 29714b8441b..b0c3671d463 100644
--- a/include/linux/notifier.h
+++ b/include/linux/notifier.h
@@ -202,6 +202,7 @@ static inline int notifier_to_errno(int ret)
#define NETDEV_BONDING_OLDTYPE 0x000E
#define NETDEV_BONDING_NEWTYPE 0x000F
#define NETDEV_POST_INIT 0x0010
+#define NETDEV_UNREGISTER_PERNET 0x0011
#define SYS_DOWN 0x0001 /* Notify of system down */
#define SYS_RESTART SYS_DOWN