diff options
author | Octavian Purdila <opurdila@ixiacom.com> | 2009-11-16 16:49:35 +0300 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2009-11-18 16:03:03 +0300 |
commit | 395264d509aec45149745843d9a737140a1ece16 (patch) | |
tree | 3a62939d8989232f5bb15f6386ed649ef8de8001 /include/linux/notifier.h | |
parent | fccaf71011b171883efee5bae321eac4760584d1 (diff) | |
download | linux-395264d509aec45149745843d9a737140a1ece16.tar.xz |
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/notifier.h')
-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) #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 |