Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | #ifndef _IF_TUNNEL_H_ |
| 3 | #define _IF_TUNNEL_H_ |
| 4 | |
Herbert Xu | c19e654 | 2008-10-09 11:59:55 -0700 | [diff] [blame] | 5 | #include <linux/ip.h> |
Brian Haley | 125a77e | 2009-10-07 13:57:10 -0700 | [diff] [blame] | 6 | #include <linux/in6.h> |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 7 | #include <uapi/linux/if_tunnel.h> |
Amerigo Wang | aa0010f | 2012-11-11 21:52:33 +0000 | [diff] [blame] | 8 | #include <linux/u64_stats_sync.h> |
| 9 | |
Amerigo Wang | e086cad | 2012-11-11 21:52:34 +0000 | [diff] [blame] | 10 | /* |
| 11 | * Locking : hash tables are protected by RCU and RTNL |
| 12 | */ |
| 13 | |
| 14 | #define for_each_ip_tunnel_rcu(pos, start) \ |
| 15 | for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next)) |
| 16 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 17 | #endif /* _IF_TUNNEL_H_ */ |