if_tunnel.h 409 Bytes
Newer Older
1
/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds's avatar
Linus Torvalds committed
2 3 4
#ifndef _IF_TUNNEL_H_
#define _IF_TUNNEL_H_

Herbert Xu's avatar
Herbert Xu committed
5
#include <linux/ip.h>
Brian Haley's avatar
Brian Haley committed
6
#include <linux/in6.h>
7
#include <uapi/linux/if_tunnel.h>
8 9
#include <linux/u64_stats_sync.h>

10 11 12 13 14 15 16
/*
 * Locking : hash tables are protected by RCU and RTNL
 */

#define for_each_ip_tunnel_rcu(pos, start) \
	for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))

Linus Torvalds's avatar
Linus Torvalds committed
17
#endif /* _IF_TUNNEL_H_ */