Home
last modified time | relevance | path

Searched refs:core_stats (Results 1 - 18 of 18) sorted by relevance

/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/
H A Dsiena.c590 struct rtnl_link_stats64 *core_stats) in siena_update_nic_stats()
607 if (core_stats) { in siena_update_nic_stats()
608 core_stats->rx_packets = stats[SIENA_STAT_rx_packets]; in siena_update_nic_stats()
609 core_stats->tx_packets = stats[SIENA_STAT_tx_packets]; in siena_update_nic_stats()
610 core_stats->rx_bytes = stats[SIENA_STAT_rx_bytes]; in siena_update_nic_stats()
611 core_stats->tx_bytes = stats[SIENA_STAT_tx_bytes]; in siena_update_nic_stats()
612 core_stats->rx_dropped = stats[SIENA_STAT_rx_nodesc_drop_cnt] + in siena_update_nic_stats()
615 core_stats->multicast = stats[SIENA_STAT_rx_multicast]; in siena_update_nic_stats()
616 core_stats->collisions = stats[SIENA_STAT_tx_collision]; in siena_update_nic_stats()
617 core_stats in siena_update_nic_stats()
589 siena_update_nic_stats(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) siena_update_nic_stats() argument
[all...]
H A Def100_nic.c545 struct rtnl_link_stats64 *core_stats) in ef100_update_stats_common()
563 if (!core_stats) in ef100_update_stats_common()
566 core_stats->rx_packets = stats[EF100_STAT_port_rx_packets]; in ef100_update_stats_common()
567 core_stats->tx_packets = stats[EF100_STAT_port_tx_packets]; in ef100_update_stats_common()
568 core_stats->rx_bytes = stats[EF100_STAT_port_rx_bytes]; in ef100_update_stats_common()
569 core_stats->tx_bytes = stats[EF100_STAT_port_tx_bytes]; in ef100_update_stats_common()
570 core_stats->rx_dropped = stats[EF100_STAT_port_rx_nodesc_drops] + in ef100_update_stats_common()
573 core_stats->multicast = stats[EF100_STAT_port_rx_multicast]; in ef100_update_stats_common()
574 core_stats->rx_length_errors = in ef100_update_stats_common()
577 core_stats in ef100_update_stats_common()
544 ef100_update_stats_common(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) ef100_update_stats_common() argument
588 ef100_update_stats(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) ef100_update_stats() argument
[all...]
H A Def10.c1764 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_common()
1782 if (!core_stats) in efx_ef10_update_stats_common()
1788 core_stats->rx_packets = stats[EF10_STAT_rx_unicast] + in efx_ef10_update_stats_common()
1791 core_stats->tx_packets = stats[EF10_STAT_tx_unicast] + in efx_ef10_update_stats_common()
1794 core_stats->rx_bytes = stats[EF10_STAT_rx_unicast_bytes] + in efx_ef10_update_stats_common()
1797 core_stats->tx_bytes = stats[EF10_STAT_tx_unicast_bytes] + in efx_ef10_update_stats_common()
1800 core_stats->rx_dropped = stats[GENERIC_STAT_rx_nodesc_trunc] + in efx_ef10_update_stats_common()
1802 core_stats->multicast = stats[EF10_STAT_rx_multicast]; in efx_ef10_update_stats_common()
1803 core_stats->rx_crc_errors = stats[EF10_STAT_rx_bad]; in efx_ef10_update_stats_common()
1804 core_stats in efx_ef10_update_stats_common()
1763 efx_ef10_update_stats_common(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_common() argument
1832 efx_ef10_update_stats_pf(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_pf() argument
1944 efx_ef10_update_stats_vf(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_vf() argument
1953 efx_ef10_update_stats_atomic_vf(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_atomic_vf() argument
[all...]
H A Dnic_common.h248 struct rtnl_link_stats64 *core_stats) in efx_nic_update_stats_atomic()
251 return efx->type->update_stats_atomic(efx, full_stats, core_stats); in efx_nic_update_stats_atomic()
252 return efx->type->update_stats(efx, full_stats, core_stats); in efx_nic_update_stats_atomic()
247 efx_nic_update_stats_atomic(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_nic_update_stats_atomic() argument
H A Dnet_driver.h1363 struct rtnl_link_stats64 *core_stats);
1365 struct rtnl_link_stats64 *core_stats);
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/siena/
H A Dsiena.c593 struct rtnl_link_stats64 *core_stats) in siena_update_nic_stats()
610 if (core_stats) { in siena_update_nic_stats()
611 core_stats->rx_packets = stats[SIENA_STAT_rx_packets]; in siena_update_nic_stats()
612 core_stats->tx_packets = stats[SIENA_STAT_tx_packets]; 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()
615 core_stats->rx_dropped = stats[SIENA_STAT_rx_nodesc_drop_cnt] + in siena_update_nic_stats()
618 core_stats->multicast = stats[SIENA_STAT_rx_multicast]; in siena_update_nic_stats()
619 core_stats->collisions = stats[SIENA_STAT_tx_collision]; in siena_update_nic_stats()
620 core_stats in siena_update_nic_stats()
592 siena_update_nic_stats(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) siena_update_nic_stats() argument
[all...]
H A Defx_common.c601 struct rtnl_link_stats64 *core_stats) in efx_siena_update_stats_atomic()
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()
600 efx_siena_update_stats_atomic(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_siena_update_stats_atomic() argument
H A Dnet_driver.h1325 struct rtnl_link_stats64 *core_stats);
1327 struct rtnl_link_stats64 *core_stats);
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/
H A Def100_nic.c596 struct rtnl_link_stats64 *core_stats) in ef100_update_stats_common()
614 if (!core_stats) in ef100_update_stats_common()
617 core_stats->rx_packets = stats[EF100_STAT_port_rx_packets]; in ef100_update_stats_common()
618 core_stats->tx_packets = stats[EF100_STAT_port_tx_packets]; 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()
621 core_stats->rx_dropped = stats[EF100_STAT_port_rx_nodesc_drops] + in ef100_update_stats_common()
624 core_stats->multicast = stats[EF100_STAT_port_rx_multicast]; in ef100_update_stats_common()
625 core_stats->rx_length_errors = in ef100_update_stats_common()
628 core_stats in ef100_update_stats_common()
595 ef100_update_stats_common(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) ef100_update_stats_common() argument
639 ef100_update_stats(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) ef100_update_stats() argument
[all...]
H A Def10.c1780 struct rtnl_link_stats64 *core_stats) in efx_ef10_update_stats_common()
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 in efx_ef10_update_stats_common()
1779 efx_ef10_update_stats_common(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_common() argument
1848 efx_ef10_update_stats_pf(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_pf() argument
1960 efx_ef10_update_stats_vf(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_vf() argument
1969 efx_ef10_update_stats_atomic_vf(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_ef10_update_stats_atomic_vf() argument
[all...]
H A Dnic_common.h250 struct rtnl_link_stats64 *core_stats) in efx_nic_update_stats_atomic()
253 return efx->type->update_stats_atomic(efx, full_stats, core_stats); in efx_nic_update_stats_atomic()
254 return efx->type->update_stats(efx, full_stats, core_stats); in efx_nic_update_stats_atomic()
249 efx_nic_update_stats_atomic(struct efx_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) efx_nic_update_stats_atomic() argument
H A Dnet_driver.h1374 struct rtnl_link_stats64 *core_stats);
1376 struct rtnl_link_stats64 *core_stats);
/kernel/linux/linux-5.10/drivers/net/ethernet/sfc/falcon/
H A Dfalcon.c2574 struct rtnl_link_stats64 *core_stats) in falcon_update_nic_stats()
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()
2611 core_stats->rx_dropped = stats[FALCON_STAT_rx_nodesc_drop_cnt] + in falcon_update_nic_stats()
2614 core_stats->multicast = stats[FALCON_STAT_rx_multicast]; in falcon_update_nic_stats()
2615 core_stats->rx_length_errors = in falcon_update_nic_stats()
2618 core_stats in falcon_update_nic_stats()
2573 falcon_update_nic_stats(struct ef4_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) falcon_update_nic_stats() argument
[all...]
H A Dnet_driver.h1062 struct rtnl_link_stats64 *core_stats);
/kernel/linux/linux-6.6/drivers/net/ethernet/sfc/falcon/
H A Dfalcon.c2574 struct rtnl_link_stats64 *core_stats) in falcon_update_nic_stats()
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()
2611 core_stats->rx_dropped = stats[FALCON_STAT_rx_nodesc_drop_cnt] + in falcon_update_nic_stats()
2614 core_stats->multicast = stats[FALCON_STAT_rx_multicast]; in falcon_update_nic_stats()
2615 core_stats->rx_length_errors = in falcon_update_nic_stats()
2618 core_stats in falcon_update_nic_stats()
2573 falcon_update_nic_stats(struct ef4_nic *efx, u64 *full_stats, struct rtnl_link_stats64 *core_stats) falcon_update_nic_stats() argument
[all...]
H A Dnet_driver.h1062 struct rtnl_link_stats64 *core_stats);
/kernel/linux/linux-6.6/net/core/
H A Ddev.c10575 if (p && cmpxchg(&dev->core_stats, NULL, p)) in netdev_core_stats_alloc()
10579 return READ_ONCE(dev->core_stats); in netdev_core_stats_alloc()
10609 p = READ_ONCE(dev->core_stats); in dev_get_stats()
10611 const struct net_device_core_stats *core_stats; in dev_get_stats() local
10615 core_stats = per_cpu_ptr(p, i); in dev_get_stats()
10616 storage->rx_dropped += READ_ONCE(core_stats->rx_dropped); in dev_get_stats()
10617 storage->tx_dropped += READ_ONCE(core_stats->tx_dropped); in dev_get_stats()
10618 storage->rx_nohandler += READ_ONCE(core_stats->rx_nohandler); in dev_get_stats()
10619 storage->rx_otherhost_dropped += READ_ONCE(core_stats->rx_otherhost_dropped); in dev_get_stats()
10906 free_percpu(dev->core_stats); in free_netdev()
[all...]
/kernel/linux/linux-6.6/include/linux/
H A Dnetdevice.h1832 * @core_stats: core networking counters,
2136 struct net_device_core_stats __percpu *core_stats; member
4010 struct net_device_core_stats __percpu *p = READ_ONCE(dev->core_stats); in dev_core_stats()

Completed in 57 milliseconds