Home
last modified time | relevance | path

Searched refs:core_stats (Results 1 – 6 of 6) sorted by relevance

/linux/drivers/net/ethernet/sfc/
H A Dnic_common.h251 struct rtnl_link_stats64 *core_stats) in efx_nic_update_stats_atomic() argument
254 return efx->type->update_stats_atomic(efx, full_stats, core_stats); in efx_nic_update_stats_atomic()
255 return efx->type->update_stats(efx, full_stats, core_stats); in efx_nic_update_stats_atomic()
H A Def10.c1780 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_common() argument
1798 if (!core_stats) in efx_ef10_update_stats_common()
1804 core_stats->rx_packets = stats[EF10_STAT_rx_unicast] + in efx_ef10_update_stats_common()
1807 core_stats->tx_packets = stats[EF10_STAT_tx_unicast] + in efx_ef10_update_stats_common()
1810 core_stats->rx_bytes = stats[EF10_STAT_rx_unicast_bytes] + in efx_ef10_update_stats_common()
1813 core_stats->tx_bytes = stats[EF10_STAT_tx_unicast_bytes] + in efx_ef10_update_stats_common()
1816 core_stats->rx_dropped = stats[GENERIC_STAT_rx_nodesc_trunc] + in efx_ef10_update_stats_common()
1818 core_stats->multicast = stats[EF10_STAT_rx_multicast]; in efx_ef10_update_stats_common()
1819 core_stats->rx_crc_errors = stats[EF10_STAT_rx_bad]; in efx_ef10_update_stats_common()
1820 core_stats->rx_fifo_errors = stats[EF10_STAT_rx_overflow]; in efx_ef10_update_stats_common()
[all …]
/linux/drivers/net/ethernet/sfc/siena/
H A Defx_common.c601 struct rtnl_link_stats64 *core_stats) in efx_siena_update_stats_atomic() argument
604 return efx->type->update_stats_atomic(efx, full_stats, core_stats); in efx_siena_update_stats_atomic()
605 return efx->type->update_stats(efx, full_stats, core_stats); in efx_siena_update_stats_atomic()
/linux/Documentation/networking/net_cachelines/
H A Dnet_device.rst51 struct net_device_core_stats* core_stats
/linux/net/core/
H A Ddev.c11334 if (p && cmpxchg(&dev->core_stats, NULL, p)) in netdev_core_stats_alloc()
11338 return READ_ONCE(dev->core_stats); in netdev_core_stats_alloc()
11344 struct net_device_core_stats __percpu *p = READ_ONCE(dev->core_stats); in netdev_core_stats_inc()
11402 p = READ_ONCE(dev->core_stats); in dev_get_stats()
11404 const struct net_device_core_stats *core_stats; in dev_get_stats() local
11408 core_stats = per_cpu_ptr(p, i); in dev_get_stats()
11409 storage->rx_dropped += READ_ONCE(core_stats->rx_dropped); in dev_get_stats()
11410 storage->tx_dropped += READ_ONCE(core_stats->tx_dropped); in dev_get_stats()
11411 storage->rx_nohandler += READ_ONCE(core_stats->rx_nohandler); in dev_get_stats()
11412 storage->rx_otherhost_dropped += READ_ONCE(core_stats->rx_otherhost_dropped); in dev_get_stats()
[all …]
/linux/include/linux/
H A Dnetdevice.h2179 struct net_device_core_stats __percpu *core_stats; member