diff options
Diffstat (limited to 'include/net/net_namespace.h')
| -rw-r--r-- | include/net/net_namespace.h | 6 | 
1 files changed, 5 insertions, 1 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index c7e15a213ef2..b8ceaf0cd997 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h @@ -36,6 +36,7 @@  #include <linux/ns_common.h>  #include <linux/idr.h>  #include <linux/skbuff.h> +#include <linux/notifier.h>  struct user_namespace;  struct proc_dir_entry; @@ -104,6 +105,8 @@ struct net {  	struct hlist_head 	*dev_name_head;  	struct hlist_head	*dev_index_head; +	struct raw_notifier_head	netdev_chain; +  	/* Note that @hash_mix can be read millions times per second,  	 * it is critical that it is on a read_mostly cache line.  	 */ @@ -326,7 +329,8 @@ static inline struct net *read_pnet(const possible_net_t *pnet)  /* Protected by net_rwsem */  #define for_each_net(VAR)				\  	list_for_each_entry(VAR, &net_namespace_list, list) - +#define for_each_net_continue_reverse(VAR)		\ +	list_for_each_entry_continue_reverse(VAR, &net_namespace_list, list)  #define for_each_net_rcu(VAR)				\  	list_for_each_entry_rcu(VAR, &net_namespace_list, list)  |