diff options
author | Octavian Purdila <opurdila@ixiacom.com> | 2009-11-16 08:49:35 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-18 08:03:03 -0500 |
commit | 395264d509aec45149745843d9a737140a1ece16 (patch) | |
tree | 3a62939d8989232f5bb15f6386ed649ef8de8001 /include/linux | |
parent | fccaf71011b171883efee5bae321eac4760584d1 (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/linux')
-rw-r--r-- | include/linux/notifier.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/linux/notifier.h b/include/linux/notifier.h index 29714b8441b1..b0c3671d463c 100644 --- a/include/linux/notifier.h +++ b/include/linux/notifier.h | |||
@@ -202,6 +202,7 @@ static inline int notifier_to_errno(int ret) | |||
202 | #define NETDEV_BONDING_OLDTYPE 0x000E | 202 | #define NETDEV_BONDING_OLDTYPE 0x000E |
203 | #define NETDEV_BONDING_NEWTYPE 0x000F | 203 | #define NETDEV_BONDING_NEWTYPE 0x000F |
204 | #define NETDEV_POST_INIT 0x0010 | 204 | #define NETDEV_POST_INIT 0x0010 |
205 | #define NETDEV_UNREGISTER_PERNET 0x0011 | ||
205 | 206 | ||
206 | #define SYS_DOWN 0x0001 /* Notify of system down */ | 207 | #define SYS_DOWN 0x0001 /* Notify of system down */ |
207 | #define SYS_RESTART SYS_DOWN | 208 | #define SYS_RESTART SYS_DOWN |