Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/net/
Dvrf.c134 struct pcpu_dstats *dstats = this_cpu_ptr(dev->dstats); in vrf_rx_stats() local
136 u64_stats_update_begin(&dstats->syncp); in vrf_rx_stats()
137 dstats->rx_pkts++; in vrf_rx_stats()
138 dstats->rx_bytes += len; in vrf_rx_stats()
139 u64_stats_update_end(&dstats->syncp); in vrf_rx_stats()
154 const struct pcpu_dstats *dstats; in vrf_get_stats64() local
158 dstats = per_cpu_ptr(dev->dstats, i); in vrf_get_stats64()
160 start = u64_stats_fetch_begin_irq(&dstats->syncp); in vrf_get_stats64()
161 tbytes = dstats->tx_bytes; in vrf_get_stats64()
162 tpkts = dstats->tx_pkts; in vrf_get_stats64()
[all …]
/kernel/linux/linux-5.10/include/linux/
Dnetdevice.h2126 struct pcpu_dstats __percpu *dstats; member