Lines Matching refs:tstats
104 const struct pcpu_tstats *tstats = per_cpu_ptr(dev->tstats, i); in ip6_get_stats() local
106 sum.rx_packets += tstats->rx_packets; in ip6_get_stats()
107 sum.rx_bytes += tstats->rx_bytes; in ip6_get_stats()
108 sum.tx_packets += tstats->tx_packets; in ip6_get_stats()
109 sum.tx_bytes += tstats->tx_bytes; in ip6_get_stats()
248 free_percpu(dev->tstats); in ip6_dev_free()
740 struct pcpu_tstats *tstats; in ip6_tnl_rcv() local
764 tstats = this_cpu_ptr(t->dev->tstats); in ip6_tnl_rcv()
765 tstats->rx_packets++; in ip6_tnl_rcv()
766 tstats->rx_bytes += skb->len; in ip6_tnl_rcv()
986 struct pcpu_tstats *tstats = this_cpu_ptr(t->dev->tstats); in ip6_tnl_xmit2() local
988 tstats->tx_bytes += pkt_len; in ip6_tnl_xmit2()
989 tstats->tx_packets++; in ip6_tnl_xmit2()
1405 dev->tstats = alloc_percpu(struct pcpu_tstats); in ip6_tnl_dev_init_gen()
1406 if (!dev->tstats) in ip6_tnl_dev_init_gen()