aboutsummaryrefslogtreecommitdiffstats
path: root/include/net
diff options
context:
space:
mode:
Diffstat (limited to 'include/net')
-rw-r--r--include/net/ip6_tunnel.h2
-rw-r--r--include/net/ip_tunnels.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/include/net/ip6_tunnel.h b/include/net/ip6_tunnel.h
index 6d1549c4893c..a5593dab6af7 100644
--- a/include/net/ip6_tunnel.h
+++ b/include/net/ip6_tunnel.h
@@ -79,7 +79,7 @@ static inline void ip6tunnel_xmit(struct sk_buff *skb, struct net_device *dev)
79 err = ip6_local_out(skb); 79 err = ip6_local_out(skb);
80 80
81 if (net_xmit_eval(err) == 0) { 81 if (net_xmit_eval(err) == 0) {
82 struct pcpu_tstats *tstats = this_cpu_ptr(dev->tstats); 82 struct pcpu_sw_netstats *tstats = this_cpu_ptr(dev->tstats);
83 u64_stats_update_begin(&tstats->syncp); 83 u64_stats_update_begin(&tstats->syncp);
84 tstats->tx_bytes += pkt_len; 84 tstats->tx_bytes += pkt_len;
85 tstats->tx_packets++; 85 tstats->tx_packets++;
diff --git a/include/net/ip_tunnels.h b/include/net/ip_tunnels.h
index 9e25b1bc31da..cd729becbb07 100644
--- a/include/net/ip_tunnels.h
+++ b/include/net/ip_tunnels.h
@@ -162,10 +162,10 @@ struct sk_buff *iptunnel_handle_offloads(struct sk_buff *skb, bool gre_csum,
162 162
163static inline void iptunnel_xmit_stats(int err, 163static inline void iptunnel_xmit_stats(int err,
164 struct net_device_stats *err_stats, 164 struct net_device_stats *err_stats,
165 struct pcpu_tstats __percpu *stats) 165 struct pcpu_sw_netstats __percpu *stats)
166{ 166{
167 if (err > 0) { 167 if (err > 0) {
168 struct pcpu_tstats *tstats = this_cpu_ptr(stats); 168 struct pcpu_sw_netstats *tstats = this_cpu_ptr(stats);
169 169
170 u64_stats_update_begin(&tstats->syncp); 170 u64_stats_update_begin(&tstats->syncp);
171 tstats->tx_bytes += err; 171 tstats->tx_bytes += err;