diff options
Diffstat (limited to 'include/linux/if_tunnel.h')
-rw-r--r-- | include/linux/if_tunnel.h | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/include/linux/if_tunnel.h b/include/linux/if_tunnel.h index 06d1d5badd36..f4e56ecd0b1a 100644 --- a/include/linux/if_tunnel.h +++ b/include/linux/if_tunnel.h | |||
@@ -6,6 +6,13 @@ | |||
6 | #include <uapi/linux/if_tunnel.h> | 6 | #include <uapi/linux/if_tunnel.h> |
7 | #include <linux/u64_stats_sync.h> | 7 | #include <linux/u64_stats_sync.h> |
8 | 8 | ||
9 | /* | ||
10 | * Locking : hash tables are protected by RCU and RTNL | ||
11 | */ | ||
12 | |||
13 | #define for_each_ip_tunnel_rcu(pos, start) \ | ||
14 | for (pos = rcu_dereference(start); pos; pos = rcu_dereference(pos->next)) | ||
15 | |||
9 | /* often modified stats are per cpu, other are shared (netdev->stats) */ | 16 | /* often modified stats are per cpu, other are shared (netdev->stats) */ |
10 | struct pcpu_tstats { | 17 | struct pcpu_tstats { |
11 | u64 rx_packets; | 18 | u64 rx_packets; |