/kernel/linux/linux-5.10/drivers/infiniband/hw/hfi1/ |
H A D | ipoib.h | 114 struct pcpu_sw_netstats __percpu *netstats; member 135 struct pcpu_sw_netstats *netstats = this_cpu_ptr(priv->netstats); in hfi1_ipoib_update_rx_netstats() local 137 u64_stats_update_begin(&netstats->syncp); in hfi1_ipoib_update_rx_netstats() 138 netstats->rx_packets += packets; in hfi1_ipoib_update_rx_netstats() 139 netstats->rx_bytes += bytes; in hfi1_ipoib_update_rx_netstats() 140 u64_stats_update_end(&netstats->syncp); in hfi1_ipoib_update_rx_netstats() 148 struct pcpu_sw_netstats *netstats = this_cpu_ptr(priv->netstats); in hfi1_ipoib_update_tx_netstats() local 150 u64_stats_update_begin(&netstats in hfi1_ipoib_update_tx_netstats() [all...] |
H A D | vnic_main.c | 88 struct rtnl_link_stats64 *qnstats = &vinfo->stats[i].netstats; in hfi1_vnic_update_stats() 90 stats->netstats.tx_fifo_errors += qnstats->tx_fifo_errors; in hfi1_vnic_update_stats() 91 stats->netstats.tx_carrier_errors += qnstats->tx_carrier_errors; in hfi1_vnic_update_stats() 96 stats->netstats.tx_packets += qnstats->tx_packets; in hfi1_vnic_update_stats() 97 stats->netstats.tx_bytes += qnstats->tx_bytes; in hfi1_vnic_update_stats() 103 struct rtnl_link_stats64 *qnstats = &vinfo->stats[i].netstats; in hfi1_vnic_update_stats() 105 stats->netstats.rx_fifo_errors += qnstats->rx_fifo_errors; in hfi1_vnic_update_stats() 106 stats->netstats.rx_nohandler += qnstats->rx_nohandler; in hfi1_vnic_update_stats() 112 stats->netstats.rx_packets += qnstats->rx_packets; in hfi1_vnic_update_stats() 113 stats->netstats in hfi1_vnic_update_stats() [all...] |
H A D | ipoib_main.c | 24 priv->netstats = netdev_alloc_pcpu_stats(struct pcpu_sw_netstats); in hfi1_ipoib_dev_init() 102 dev_fetch_sw_netstats(storage, priv->netstats); in hfi1_ipoib_dev_get_stats64() 185 free_percpu(priv->netstats); in hfi1_ipoib_netdev_dtor()
|
/kernel/linux/linux-5.10/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_ethtool.c | 71 {"rx_packets", VNIC_STAT(netstats.rx_packets)}, 72 {"tx_packets", VNIC_STAT(netstats.tx_packets)}, 73 {"rx_bytes", VNIC_STAT(netstats.rx_bytes)}, 74 {"tx_bytes", VNIC_STAT(netstats.tx_bytes)}, 75 {"rx_errors", VNIC_STAT(netstats.rx_errors)}, 76 {"tx_errors", VNIC_STAT(netstats.tx_errors)}, 77 {"rx_dropped", VNIC_STAT(netstats.rx_dropped)}, 78 {"tx_dropped", VNIC_STAT(netstats.tx_dropped)}, 108 {"rx_fifo_errors", VNIC_STAT(netstats.rx_fifo_errors)}, 109 {"rx_length_errors", VNIC_STAT(netstats [all...] |
H A D | opa_vnic_vema_iface.c | 93 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_summary_counters() 100 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_summary_counters() 101 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors); in opa_vnic_get_summary_counters() 102 cntrs->tx_packets = cpu_to_be64(vstats.netstats.tx_packets); in opa_vnic_get_summary_counters() 103 cntrs->rx_packets = cpu_to_be64(vstats.netstats.rx_packets); in opa_vnic_get_summary_counters() 104 cntrs->tx_bytes = cpu_to_be64(vstats.netstats.tx_bytes); in opa_vnic_get_summary_counters() 105 cntrs->rx_bytes = cpu_to_be64(vstats.netstats.rx_bytes); in opa_vnic_get_summary_counters() 132 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_error_counters() 139 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_error_counters() 140 cntrs->rx_errors = cpu_to_be64(vstats.netstats in opa_vnic_get_error_counters() [all...] |
H A D | opa_vnic_netdev.c | 73 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64() 75 memcpy(stats, &vstats.netstats, sizeof(*stats)); in opa_vnic_get_stats64()
|
/kernel/linux/linux-6.6/drivers/infiniband/ulp/opa_vnic/ |
H A D | opa_vnic_ethtool.c | 71 {"rx_packets", VNIC_STAT(netstats.rx_packets)}, 72 {"tx_packets", VNIC_STAT(netstats.tx_packets)}, 73 {"rx_bytes", VNIC_STAT(netstats.rx_bytes)}, 74 {"tx_bytes", VNIC_STAT(netstats.tx_bytes)}, 75 {"rx_errors", VNIC_STAT(netstats.rx_errors)}, 76 {"tx_errors", VNIC_STAT(netstats.tx_errors)}, 77 {"rx_dropped", VNIC_STAT(netstats.rx_dropped)}, 78 {"tx_dropped", VNIC_STAT(netstats.tx_dropped)}, 108 {"rx_fifo_errors", VNIC_STAT(netstats.rx_fifo_errors)}, 109 {"rx_length_errors", VNIC_STAT(netstats [all...] |
H A D | opa_vnic_vema_iface.c | 93 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_summary_counters() 100 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_summary_counters() 101 cntrs->rx_errors = cpu_to_be64(vstats.netstats.rx_errors); in opa_vnic_get_summary_counters() 102 cntrs->tx_packets = cpu_to_be64(vstats.netstats.tx_packets); in opa_vnic_get_summary_counters() 103 cntrs->rx_packets = cpu_to_be64(vstats.netstats.rx_packets); in opa_vnic_get_summary_counters() 104 cntrs->tx_bytes = cpu_to_be64(vstats.netstats.tx_bytes); in opa_vnic_get_summary_counters() 105 cntrs->rx_bytes = cpu_to_be64(vstats.netstats.rx_bytes); in opa_vnic_get_summary_counters() 132 adapter->rn_ops->ndo_get_stats64(adapter->netdev, &vstats.netstats); in opa_vnic_get_error_counters() 139 cntrs->tx_errors = cpu_to_be64(vstats.netstats.tx_errors); in opa_vnic_get_error_counters() 140 cntrs->rx_errors = cpu_to_be64(vstats.netstats in opa_vnic_get_error_counters() [all...] |
H A D | opa_vnic_netdev.c | 72 adapter->rn_ops->ndo_get_stats64(netdev, &vstats.netstats); in opa_vnic_get_stats64() 74 memcpy(stats, &vstats.netstats, sizeof(*stats)); in opa_vnic_get_stats64()
|
/kernel/linux/linux-6.6/drivers/infiniband/hw/hfi1/ |
H A D | vnic_main.c | 46 struct rtnl_link_stats64 *qnstats = &vinfo->stats[i].netstats; in hfi1_vnic_update_stats() 48 stats->netstats.tx_fifo_errors += qnstats->tx_fifo_errors; in hfi1_vnic_update_stats() 49 stats->netstats.tx_carrier_errors += qnstats->tx_carrier_errors; in hfi1_vnic_update_stats() 54 stats->netstats.tx_packets += qnstats->tx_packets; in hfi1_vnic_update_stats() 55 stats->netstats.tx_bytes += qnstats->tx_bytes; in hfi1_vnic_update_stats() 61 struct rtnl_link_stats64 *qnstats = &vinfo->stats[i].netstats; in hfi1_vnic_update_stats() 63 stats->netstats.rx_fifo_errors += qnstats->rx_fifo_errors; in hfi1_vnic_update_stats() 64 stats->netstats.rx_nohandler += qnstats->rx_nohandler; in hfi1_vnic_update_stats() 70 stats->netstats.rx_packets += qnstats->rx_packets; in hfi1_vnic_update_stats() 71 stats->netstats in hfi1_vnic_update_stats() [all...] |
/kernel/linux/linux-5.10/include/rdma/ |
H A D | opa_vnic.h | 79 struct rtnl_link_stats64 netstats; member
|
/kernel/linux/linux-6.6/include/rdma/ |
H A D | opa_vnic.h | 79 struct rtnl_link_stats64 netstats; member
|
/kernel/linux/linux-5.10/drivers/net/wireless/microchip/wilc1000/ |
H A D | netdev.c | 628 return &vif->netstats; in mac_stats() 702 vif->netstats.tx_packets++; in wilc_mac_xmit() 703 vif->netstats.tx_bytes += tx_data->size; in wilc_mac_xmit() 785 vif->netstats.rx_packets++; in wilc_frmw_to_host() 786 vif->netstats.rx_bytes += frame_len; in wilc_frmw_to_host()
|
H A D | netdev.h | 184 struct net_device_stats netstats; member
|
/kernel/linux/linux-6.6/drivers/net/wireless/microchip/wilc1000/ |
H A D | netdev.c | 632 return &vif->netstats; in mac_stats() 748 vif->netstats.tx_packets++; in wilc_mac_xmit() 749 vif->netstats.tx_bytes += tx_data->size; in wilc_mac_xmit() 832 vif->netstats.rx_packets++; in wilc_frmw_to_host() 833 vif->netstats.rx_bytes += frame_len; in wilc_frmw_to_host()
|
H A D | netdev.h | 175 struct net_device_stats netstats; member
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.c | 357 u64 *netstats = (u64 *)s; in dpaa_get_stats64() local 368 netstats[j] += cpustats[j]; in dpaa_get_stats64()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.c | 1913 u64 *netstats = (u64 *)stats; in dpaa2_eth_get_stats() local 1921 netstats[j] += cpustats[j]; in dpaa2_eth_get_stats()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa/ |
H A D | dpaa_eth.c | 355 u64 *netstats = (u64 *)s; in dpaa_get_stats64() local 366 netstats[j] += cpustats[j]; in dpaa_get_stats64()
|
/kernel/linux/linux-6.6/drivers/net/ethernet/freescale/dpaa2/ |
H A D | dpaa2-eth.c | 2371 u64 *netstats = (u64 *)stats; in dpaa2_eth_get_stats() local 2379 netstats[j] += cpustats[j]; in dpaa2_eth_get_stats()
|
/kernel/linux/linux-5.10/include/linux/ |
H A D | netdevice.h | 4606 const struct pcpu_sw_netstats __percpu *netstats);
|
/kernel/linux/linux-6.6/include/linux/ |
H A D | netdevice.h | 4715 const struct pcpu_sw_netstats __percpu *netstats);
|
/kernel/linux/linux-5.10/net/core/ |
H A D | dev.c | 10382 * @netstats: per-cpu network stats to read from 10387 const struct pcpu_sw_netstats __percpu *netstats) in dev_fetch_sw_netstats() 10396 stats = per_cpu_ptr(netstats, cpu); in dev_fetch_sw_netstats() 10386 dev_fetch_sw_netstats(struct rtnl_link_stats64 *s, const struct pcpu_sw_netstats __percpu *netstats) dev_fetch_sw_netstats() argument
|
/kernel/linux/linux-6.6/net/core/ |
H A D | dev.c | 10629 * @netstats: per-cpu network stats to read from 10634 const struct pcpu_sw_netstats __percpu *netstats) in dev_fetch_sw_netstats() 10643 stats = per_cpu_ptr(netstats, cpu); in dev_fetch_sw_netstats() 10633 dev_fetch_sw_netstats(struct rtnl_link_stats64 *s, const struct pcpu_sw_netstats __percpu *netstats) dev_fetch_sw_netstats() argument
|