Lines Matching refs:tstats
104 const struct pcpu_sw_netstats *tstats = in ip6_get_stats() local
105 per_cpu_ptr(dev->tstats, i); in ip6_get_stats()
108 start = u64_stats_fetch_begin_irq(&tstats->syncp); in ip6_get_stats()
109 tmp.rx_packets = tstats->rx_packets; in ip6_get_stats()
110 tmp.rx_bytes = tstats->rx_bytes; in ip6_get_stats()
111 tmp.tx_packets = tstats->tx_packets; in ip6_get_stats()
112 tmp.tx_bytes = tstats->tx_bytes; in ip6_get_stats()
113 } while (u64_stats_fetch_retry_irq(&tstats->syncp, start)); in ip6_get_stats()
277 free_percpu(dev->tstats); in ip6_dev_free()
832 struct pcpu_sw_netstats *tstats; in __ip6_tnl_rcv() local
891 tstats = this_cpu_ptr(tunnel->dev->tstats); in __ip6_tnl_rcv()
892 u64_stats_update_begin(&tstats->syncp); in __ip6_tnl_rcv()
893 tstats->rx_packets++; in __ip6_tnl_rcv()
894 tstats->rx_bytes += skb->len; in __ip6_tnl_rcv()
895 u64_stats_update_end(&tstats->syncp); in __ip6_tnl_rcv()
1892 dev->tstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in ip6_tnl_dev_init_gen()
1893 if (!dev->tstats) in ip6_tnl_dev_init_gen()
1922 free_percpu(dev->tstats); in ip6_tnl_dev_init_gen()
1923 dev->tstats = NULL; in ip6_tnl_dev_init_gen()