Merge tag 'mm-hotfixes-stable-2023-05-03-16-27' of git://git.kernel.org/pub/scm/linux...
[linux-block.git] / include / linux / if_tunnel.h
CommitLineData
b2441318 1/* SPDX-License-Identifier: GPL-2.0 */
1da177e4
LT
2#ifndef _IF_TUNNEL_H_
3#define _IF_TUNNEL_H_
4
c19e654d 5#include <linux/ip.h>
125a77ed 6#include <linux/in6.h>
607ca46e 7#include <uapi/linux/if_tunnel.h>
aa0010f8
AW
8#include <linux/u64_stats_sync.h>
9
e086cadc
AW
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
1da177e4 17#endif /* _IF_TUNNEL_H_ */