Home
last modified time | relevance | path

Searched refs:dstats (Results 1 – 3 of 3) sorted by relevance

/openbmc/linux/drivers/net/
H A Dvrf.c126 struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats); in vrf_rx_stats() local
128 u64_stats_update_begin(&dstats->syncp); in vrf_rx_stats()
129 dstats->rx_packets++; in vrf_rx_stats()
130 dstats->rx_bytes += len; in vrf_rx_stats()
131 u64_stats_update_end(&dstats->syncp); in vrf_rx_stats()
146 const struct pcpu_dstats *dstats; in vrf_get_stats64() local
150 dstats = per_cpu_ptr(dev->dstats, i); in vrf_get_stats64()
152 start = u64_stats_fetch_begin(&dstats->syncp); in vrf_get_stats64()
153 tbytes = dstats->tx_bytes; in vrf_get_stats64()
154 tpkts = dstats->tx_packets; in vrf_get_stats64()
[all …]
/openbmc/linux/include/linux/
H A Dnetdevice.h2346 struct pcpu_dstats __percpu *dstats; member
/openbmc/linux/net/core/
H A Ddev.c10126 v = dev->dstats = netdev_alloc_pcpu_stats(struct pcpu_dstats); in netdev_do_alloc_pcpu_stats()
10147 free_percpu(dev->dstats); in netdev_do_free_pcpu_stats()