diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/net/net_namespace.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/net/net_namespace.h b/include/net/net_namespace.h index ded434b032a4..b34a6ee73754 100644 --- a/include/net/net_namespace.h +++ b/include/net/net_namespace.h | |||
@@ -208,6 +208,9 @@ static inline struct net *read_pnet(struct net * const *pnet) | |||
208 | #define for_each_net(VAR) \ | 208 | #define for_each_net(VAR) \ |
209 | list_for_each_entry(VAR, &net_namespace_list, list) | 209 | list_for_each_entry(VAR, &net_namespace_list, list) |
210 | 210 | ||
211 | #define for_each_net_rcu(VAR) \ | ||
212 | list_for_each_entry_rcu(VAR, &net_namespace_list, list) | ||
213 | |||
211 | #ifdef CONFIG_NET_NS | 214 | #ifdef CONFIG_NET_NS |
212 | #define __net_init | 215 | #define __net_init |
213 | #define __net_exit | 216 | #define __net_exit |