Searched refs:core_stats (Results 1 – 12 of 12) sorted by relevance
| /linux-6.15/drivers/net/ethernet/sfc/siena/ |
| H A D | siena.c | 593 struct rtnl_link_stats64 *core_stats) in siena_update_nic_stats() argument 610 if (core_stats) { in siena_update_nic_stats() 613 core_stats->rx_bytes = stats[SIENA_STAT_rx_bytes]; in siena_update_nic_stats() 614 core_stats->tx_bytes = stats[SIENA_STAT_tx_bytes]; in siena_update_nic_stats() 620 core_stats->rx_length_errors = in siena_update_nic_stats() 623 core_stats->rx_crc_errors = stats[SIENA_STAT_rx_bad]; in siena_update_nic_stats() 626 core_stats->tx_window_errors = in siena_update_nic_stats() 629 core_stats->rx_errors = (core_stats->rx_length_errors + in siena_update_nic_stats() 630 core_stats->rx_crc_errors + in siena_update_nic_stats() 631 core_stats->rx_frame_errors + in siena_update_nic_stats() [all …]
|
| H A D | efx_common.c | 601 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()
|
| H A D | net_driver.h | 1314 struct rtnl_link_stats64 *core_stats); 1316 struct rtnl_link_stats64 *core_stats);
|
| /linux-6.15/drivers/net/ethernet/sfc/ |
| H A D | ef100_nic.c | 596 struct rtnl_link_stats64 *core_stats) in ef100_update_stats_common() argument 614 if (!core_stats) in ef100_update_stats_common() 619 core_stats->rx_bytes = stats[EF100_STAT_port_rx_bytes]; in ef100_update_stats_common() 620 core_stats->tx_bytes = stats[EF100_STAT_port_tx_bytes]; in ef100_update_stats_common() 625 core_stats->rx_length_errors = in ef100_update_stats_common() 628 core_stats->rx_crc_errors = stats[EF100_STAT_port_rx_bad]; in ef100_update_stats_common() 629 core_stats->rx_frame_errors = in ef100_update_stats_common() 632 core_stats->rx_errors = (core_stats->rx_length_errors + in ef100_update_stats_common() 633 core_stats->rx_crc_errors + in ef100_update_stats_common() 634 core_stats->rx_frame_errors); in ef100_update_stats_common() [all …]
|
| H A D | nic_common.h | 251 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 D | ef10.c | 1780 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_common() argument 1798 if (!core_stats) in efx_ef10_update_stats_common() 1821 core_stats->rx_errors = core_stats->rx_crc_errors; in efx_ef10_update_stats_common() 1833 core_stats->rx_length_errors = in efx_ef10_update_stats_common() 1837 core_stats->rx_frame_errors = in efx_ef10_update_stats_common() 1840 core_stats->rx_errors = (core_stats->rx_length_errors + in efx_ef10_update_stats_common() 1841 core_stats->rx_crc_errors + in efx_ef10_update_stats_common() 1842 core_stats->rx_frame_errors); in efx_ef10_update_stats_common() 1849 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_pf() argument 1961 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_vf() argument [all …]
|
| H A D | net_driver.h | 1415 struct rtnl_link_stats64 *core_stats); 1417 struct rtnl_link_stats64 *core_stats);
|
| /linux-6.15/drivers/net/ethernet/sfc/falcon/ |
| H A D | falcon.c | 2574 struct rtnl_link_stats64 *core_stats) in falcon_update_nic_stats() argument 2606 if (core_stats) { in falcon_update_nic_stats() 2607 core_stats->rx_packets = stats[FALCON_STAT_rx_packets]; in falcon_update_nic_stats() 2608 core_stats->tx_packets = stats[FALCON_STAT_tx_packets]; in falcon_update_nic_stats() 2609 core_stats->rx_bytes = stats[FALCON_STAT_rx_bytes]; in falcon_update_nic_stats() 2610 core_stats->tx_bytes = stats[FALCON_STAT_tx_bytes]; in falcon_update_nic_stats() 2615 core_stats->rx_length_errors = in falcon_update_nic_stats() 2618 core_stats->rx_crc_errors = stats[FALCON_STAT_rx_bad]; in falcon_update_nic_stats() 2622 core_stats->rx_errors = (core_stats->rx_length_errors + in falcon_update_nic_stats() 2623 core_stats->rx_crc_errors + in falcon_update_nic_stats() [all …]
|
| H A D | net_driver.h | 1062 struct rtnl_link_stats64 *core_stats);
|
| /linux-6.15/Documentation/networking/net_cachelines/ |
| H A D | net_device.rst | 51 struct net_device_core_stats* core_stats
|
| /linux-6.15/net/core/ |
| H A D | dev.c | 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() 11775 free_percpu(dev->core_stats); in free_netdev() [all …]
|
| /linux-6.15/include/linux/ |
| H A D | netdevice.h | 2207 struct net_device_core_stats __percpu *core_stats; member
|