2005-04-16 22:20:36 +00:00
|
|
|
#ifndef _IF_TUNNEL_H_
|
|
|
|
#define _IF_TUNNEL_H_
|
|
|
|
|
2008-10-09 18:59:55 +00:00
|
|
|
#include <linux/ip.h>
|
2009-10-07 20:57:10 +00:00
|
|
|
#include <linux/in6.h>
|
2012-10-13 09:46:48 +00:00
|
|
|
#include <uapi/linux/if_tunnel.h>
|
2012-11-11 21:52:33 +00:00
|
|
|
#include <linux/u64_stats_sync.h>
|
|
|
|
|
2012-11-11 21:52:34 +00:00
|
|
|
/*
|
|
|
|
* 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))
|
|
|
|
|
2012-11-11 21:52:33 +00:00
|
|
|
/* often modified stats are per cpu, other are shared (netdev->stats) */
|
|
|
|
struct pcpu_tstats {
|
|
|
|
u64 rx_packets;
|
|
|
|
u64 rx_bytes;
|
|
|
|
u64 tx_packets;
|
|
|
|
u64 tx_bytes;
|
|
|
|
struct u64_stats_sync syncp;
|
|
|
|
};
|
2012-07-17 09:44:54 +00:00
|
|
|
|
2005-04-16 22:20:36 +00:00
|
|
|
#endif /* _IF_TUNNEL_H_ */
|