Lines Matching refs:core_stats
11390 if (p && cmpxchg(&dev->core_stats, NULL, p)) in netdev_core_stats_alloc()
11394 return READ_ONCE(dev->core_stats); in netdev_core_stats_alloc()
11400 struct net_device_core_stats __percpu *p = READ_ONCE(dev->core_stats); in netdev_core_stats_inc()
11458 p = READ_ONCE(dev->core_stats); in dev_get_stats()
11460 const struct net_device_core_stats *core_stats; in dev_get_stats() local
11464 core_stats = per_cpu_ptr(p, i); in dev_get_stats()
11465 storage->rx_dropped += READ_ONCE(core_stats->rx_dropped); in dev_get_stats()
11466 storage->tx_dropped += READ_ONCE(core_stats->tx_dropped); in dev_get_stats()
11467 storage->rx_nohandler += READ_ONCE(core_stats->rx_nohandler); in dev_get_stats()
11468 storage->rx_otherhost_dropped += READ_ONCE(core_stats->rx_otherhost_dropped); in dev_get_stats()
11775 free_percpu(dev->core_stats); in free_netdev()
11776 dev->core_stats = NULL; in free_netdev()