summaryrefslogtreecommitdiffstats
path: root/include/net/ipip.h
diff options
context:
space:
mode:
authorstephen hemminger <shemminger@vyatta.com>2012-04-12 06:31:16 +0000
committerDavid S. Miller <davem@davemloft.net>2012-04-14 14:47:05 -0400
commit87b6d218f3adb00e6b58c7f96f8b5a74ff91abb4 (patch)
tree0a8108621afcaf9549a05a33ca08adb4a810b257 /include/net/ipip.h
parent64d683c5825003ffb3b127057a165e6bfc26691e (diff)
downloadop-kernel-dev-87b6d218f3adb00e6b58c7f96f8b5a74ff91abb4.zip
op-kernel-dev-87b6d218f3adb00e6b58c7f96f8b5a74ff91abb4.tar.gz
tunnel: implement 64 bits statistics
Convert the per-cpu statistics kept for GRE, IPIP, and SIT tunnels to use 64 bit statistics. Signed-off-by: Stephen Hemminger <shemminger@vyatta.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/net/ipip.h')
-rw-r--r--include/net/ipip.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/net/ipip.h b/include/net/ipip.h
index a32654d..a93cf6d 100644
--- a/include/net/ipip.h
+++ b/include/net/ipip.h
@@ -54,8 +54,10 @@ struct ip_tunnel_prl_entry {
\
err = ip_local_out(skb); \
if (likely(net_xmit_eval(err) == 0)) { \
+ u64_stats_update_begin(&(stats1)->syncp); \
(stats1)->tx_bytes += pkt_len; \
(stats1)->tx_packets++; \
+ u64_stats_update_end(&(stats1)->syncp); \
} else { \
(stats2)->tx_errors++; \
(stats2)->tx_aborted_errors++; \
OpenPOWER on IntegriCloud