blob: 26606523eca4ac66d21050fc7246afae62f8aecb [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002#ifndef _IF_TUNNEL_H_
3#define _IF_TUNNEL_H_
4
Herbert Xuc19e6542008-10-09 11:59:55 -07005#include <linux/ip.h>
Brian Haley125a77e2009-10-07 13:57:10 -07006#include <linux/in6.h>
David Howells607ca462012-10-13 10:46:48 +01007#include <uapi/linux/if_tunnel.h>
Amerigo Wangaa0010f2012-11-11 21:52:33 +00008#include <linux/u64_stats_sync.h>
9
Amerigo Wange086cad2012-11-11 21:52:34 +000010/*
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 Torvalds1da177e2005-04-16 15:20:36 -070017#endif /* _IF_TUNNEL_H_ */