Linux 4.19-rc7
[linux-2.6/btrfs-unstable.git] / include / linux / if_tunnel.h
blob26606523eca4ac66d21050fc7246afae62f8aecb
1 /* SPDX-License-Identifier: GPL-2.0 */
2 #ifndef _IF_TUNNEL_H_
3 #define _IF_TUNNEL_H_
5 #include <linux/ip.h>
6 #include <linux/in6.h>
7 #include <uapi/linux/if_tunnel.h>
8 #include <linux/u64_stats_sync.h>
11 * Locking : hash tables are protected by RCU and RTNL
14 #define for_each_ip_tunnel_rcu(pos, start) \
15 for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
17 #endif /* _IF_TUNNEL_H_ */