if_tunnel.h 409 B

1234567891011121314151617
  1. /* SPDX-License-Identifier: GPL-2.0 */
  2. #ifndef _IF_TUNNEL_H_
  3. #define _IF_TUNNEL_H_
  4. #include <linux/ip.h>
  5. #include <linux/in6.h>
  6. #include <uapi/linux/if_tunnel.h>
  7. #include <linux/u64_stats_sync.h>
  8. /*
  9. * Locking : hash tables are protected by RCU and RTNL
  10. */
  11. #define for_each_ip_tunnel_rcu(pos, start) \
  12. for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next))
  13. #endif /* _IF_TUNNEL_H_ */