Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 #ifndef _IF_TUNNEL_H_
0003 #define _IF_TUNNEL_H_
0004 
0005 #include <linux/ip.h>
0006 #include <linux/in6.h>
0007 #include <uapi/linux/if_tunnel.h>
0008 #include <linux/u64_stats_sync.h>
0009 
0010 /*
0011  * Locking : hash tables are protected by RCU and RTNL
0012  */
0013 
0014 #define for_each_ip_tunnel_rcu(pos, start) \
0015     for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
0016 
0017 #endif /* _IF_TUNNEL_H_ */