| /linux/drivers/infiniband/hw/ionic/ |
| H A D | ionic_hw_stats.c | 9 static int ionic_v1_stat_normalize(struct ionic_v1_stat *hw_stats, in ionic_v1_stat_normalize() argument 15 struct ionic_v1_stat *stat = &hw_stats[hw_stat_i]; in ionic_v1_stat_normalize() 27 struct ionic_v1_stat *hw_stats, in ionic_fill_stats_desc() argument 33 struct ionic_v1_stat *stat = &hw_stats[hw_stat_i]; in ionic_fill_stats_desc() 126 dev->hw_stats = kzalloc(PAGE_SIZE, GFP_KERNEL); in ionic_init_hw_stats() 127 if (!dev->hw_stats) { in ionic_init_hw_stats() 133 hw_stats_dma = dma_map_single(dev->lif_cfg.hwdev, dev->hw_stats, in ionic_init_hw_stats() 148 ionic_v1_stat_normalize(dev->hw_stats, in ionic_init_hw_stats() 149 PAGE_SIZE / sizeof(*dev->hw_stats)); in ionic_init_hw_stats() 164 ionic_fill_stats_desc(dev->hw_stats_hdrs, dev->hw_stats, in ionic_init_hw_stats() [all …]
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| H A D | hns_ae_adapt.c | 653 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() 654 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats() 655 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats() 660 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 661 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 662 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 667 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 668 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 669 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 670 tx_dropped += dsaf_dev->hw_stats[port].rslt_drop; in hns_ae_update_stats() [all …]
|
| H A D | hns_dsaf_mac.c | 1236 txpkts = mac_cb->txpkt_for_led - mac_cb->hw_stats.tx_good_pkts; in hns_set_led_opt() 1237 rxpkts = mac_cb->rxpkt_for_led - mac_cb->hw_stats.rx_good_pkts; in hns_set_led_opt() 1242 mac_cb->txpkt_for_led = mac_cb->hw_stats.tx_good_pkts; in hns_set_led_opt() 1243 mac_cb->rxpkt_for_led = mac_cb->hw_stats.rx_good_pkts; in hns_set_led_opt()
|
| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_netdev.c | 408 spin_lock(&fbd->hw_stats.lock); in fbnic_get_stats64() 409 tx_dropped += fbd->hw_stats.tmi.drop.frames.value + in fbnic_get_stats64() 410 fbd->hw_stats.tti.cm_drop.frames.value + in fbnic_get_stats64() 411 fbd->hw_stats.tti.frame_drop.frames.value + in fbnic_get_stats64() 412 fbd->hw_stats.tti.tbi_drop.frames.value; in fbnic_get_stats64() 413 spin_unlock(&fbd->hw_stats.lock); in fbnic_get_stats64() 444 spin_lock(&fbd->hw_stats.lock); in fbnic_get_stats64() 452 rx_missed += fbd->hw_stats.rxb.fifo[i].drop.frames.value; in fbnic_get_stats64() 454 rx_missed += fbd->hw_stats.rxb.fifo[i].drop.frames.value; in fbnic_get_stats64() 458 rx_over += fbd->hw_stats.hw_q[i].rde_pkt_cq_drop.value; in fbnic_get_stats64() [all …]
|
| H A D | fbnic_ethtool.c | 521 spin_lock(&fbd->hw_stats.lock); in fbnic_get_ethtool_stats() 522 fbnic_report_hw_stats(fbnic_gstrings_hw_stats, &fbd->hw_stats, in fbnic_get_ethtool_stats() 528 enq = &fbd->hw_stats.rxb.enq[i]; in fbnic_get_ethtool_stats() 537 fifo = &fbd->hw_stats.rxb.fifo[i]; in fbnic_get_ethtool_stats() 546 deq = &fbd->hw_stats.rxb.deq[i]; in fbnic_get_ethtool_stats() 553 const struct fbnic_hw_q_stats *hw_q = &fbd->hw_stats.hw_q[i]; in fbnic_get_ethtool_stats() 558 spin_unlock(&fbd->hw_stats.lock); in fbnic_get_ethtool_stats() 1717 mac_stats = &fbd->hw_stats.mac; in fbnic_get_pause_stats() 1735 phy_stats = &fbd->hw_stats.phy; in fbnic_get_fec_stats() 1737 spin_lock(&fbd->hw_stats.lock); in fbnic_get_fec_stats() [all …]
|
| /linux/net/sched/ |
| H A D | sch_gred.c | 357 struct tc_gred_qopt_offload *hw_stats; in gred_offload_dump_stats() local 362 hw_stats = kzalloc_obj(*hw_stats); in gred_offload_dump_stats() 363 if (!hw_stats) in gred_offload_dump_stats() 366 hw_stats->command = TC_GRED_STATS; in gred_offload_dump_stats() 367 hw_stats->handle = sch->handle; in gred_offload_dump_stats() 368 hw_stats->parent = sch->parent; in gred_offload_dump_stats() 371 gnet_stats_basic_sync_init(&hw_stats->stats.bstats[i]); in gred_offload_dump_stats() 373 hw_stats->stats.xstats[i] = &table->tab[i]->stats; in gred_offload_dump_stats() 376 ret = qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_GRED, hw_stats); in gred_offload_dump_stats() 384 table->tab[i]->packetsin += u64_stats_read(&hw_stats->stats.bstats[i].packets); in gred_offload_dump_stats() [all …]
|
| H A D | sch_prio.c | 247 struct tc_prio_qopt_offload hw_stats = { in prio_dump_offload() local 259 return qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_PRIO, &hw_stats); in prio_dump_offload()
|
| /linux/drivers/net/phy/qcom/ |
| H A D | qcom-phy-lib.c | 717 struct qcom_phy_hw_stats *hw_stats) in qcom_phy_update_stats() argument 734 hw_stats->rx_pkts += cnt; in qcom_phy_update_stats() 741 hw_stats->rx_err_pkts += ret; in qcom_phy_update_stats() 755 hw_stats->tx_pkts += cnt; in qcom_phy_update_stats() 762 hw_stats->tx_err_pkts += ret; in qcom_phy_update_stats() 769 struct qcom_phy_hw_stats hw_stats) in qcom_phy_get_stats() argument 771 stats->tx_packets = hw_stats.tx_pkts; in qcom_phy_get_stats() 772 stats->tx_errors = hw_stats.tx_err_pkts; in qcom_phy_get_stats() 773 stats->rx_packets = hw_stats.rx_pkts; in qcom_phy_get_stats() 774 stats->rx_errors = hw_stats.rx_err_pkts; in qcom_phy_get_stats()
|
| H A D | qcom.h | 269 struct qcom_phy_hw_stats *hw_stats); 271 struct qcom_phy_hw_stats hw_stats);
|
| H A D | qca808x.c | 96 struct qcom_phy_hw_stats hw_stats; member 634 return qcom_phy_update_stats(phydev, &priv->hw_stats); in qca808x_update_stats() 643 qcom_phy_get_stats(stats, priv->hw_stats); in qca808x_get_phy_stats()
|
| H A D | qca807x.c | 127 struct qcom_phy_hw_stats hw_stats; member 779 return qcom_phy_update_stats(phydev, &priv->hw_stats); in qca807x_update_stats() 788 qcom_phy_get_stats(stats, priv->hw_stats); in qca807x_get_phy_stats()
|
| /linux/drivers/net/ethernet/atheros/atl1e/ |
| H A D | atl1e_main.c | 1158 struct atl1e_hw_stats *hw_stats = &adapter->hw_stats; in atl1e_get_stats() local 1161 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1e_get_stats() 1162 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1e_get_stats() 1163 net_stats->multicast = hw_stats->rx_mcast; in atl1e_get_stats() 1164 net_stats->collisions = hw_stats->tx_1_col + in atl1e_get_stats() 1165 hw_stats->tx_2_col + in atl1e_get_stats() 1166 hw_stats->tx_late_col + in atl1e_get_stats() 1167 hw_stats->tx_abort_col; in atl1e_get_stats() 1169 net_stats->rx_errors = hw_stats->rx_frag + in atl1e_get_stats() 1170 hw_stats->rx_fcs_err + in atl1e_get_stats() [all …]
|
| /linux/drivers/net/ethernet/atheros/alx/ |
| H A D | main.c | 1654 struct alx_hw_stats *hw_stats = &alx->hw.stats; in alx_get_stats64() local 1660 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in alx_get_stats64() 1661 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in alx_get_stats64() 1662 net_stats->multicast = hw_stats->rx_mcast; in alx_get_stats64() 1663 net_stats->collisions = hw_stats->tx_single_col + in alx_get_stats64() 1664 hw_stats->tx_multi_col + in alx_get_stats64() 1665 hw_stats->tx_late_col + in alx_get_stats64() 1666 hw_stats->tx_abort_col; in alx_get_stats64() 1668 net_stats->rx_errors = hw_stats->rx_frag + in alx_get_stats64() 1669 hw_stats->rx_fcs_err + in alx_get_stats64() [all …]
|
| /linux/drivers/net/ethernet/mediatek/ |
| H A D | mtk_eth_soc.c | 1108 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 1111 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 1114 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac() 1115 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac() 1116 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac() 1117 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac() 1118 hw_stats->rx_checksum_errors += in mtk_stats_update_mac() 1122 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac() 1125 hw_stats->rx_bytes += mtk_r32(mac->hw, reg_map->gdm1_cnt + offs); in mtk_stats_update_mac() 1128 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() [all …]
|
| /linux/tools/testing/selftests/net/forwarding/ |
| H A D | router_mpath_nh_lib.sh | 78 if ! ip nexthop help 2>&1 | grep -q hw_stats; then 84 hw_stats on type $nhgtype 98 hw_stats off type $nhgtype
|
| H A D | router_mpath_seed.sh | 100 ip nexthop add id 1000 group $(seq -s / 1001 1010) hw_stats on 101 ip nexthop add id 2000 group $(seq -s / 2001 2010) hw_stats on
|
| /linux/drivers/net/ethernet/atheros/atl1c/ |
| H A D | atl1c_main.c | 1510 stats_item = &adapter->hw_stats.rx_ok; in atl1c_update_hw_stats() 1519 stats_item = &adapter->hw_stats.tx_ok; in atl1c_update_hw_stats() 1538 struct atl1c_hw_stats *hw_stats = &adapter->hw_stats; in atl1c_get_stats() local 1542 net_stats->rx_bytes = hw_stats->rx_byte_cnt; in atl1c_get_stats() 1543 net_stats->tx_bytes = hw_stats->tx_byte_cnt; in atl1c_get_stats() 1544 net_stats->multicast = hw_stats->rx_mcast; in atl1c_get_stats() 1545 net_stats->collisions = hw_stats->tx_1_col + in atl1c_get_stats() 1546 hw_stats->tx_2_col + in atl1c_get_stats() 1547 hw_stats->tx_late_col + in atl1c_get_stats() 1548 hw_stats->tx_abort_col; in atl1c_get_stats() [all …]
|
| /linux/include/net/ |
| H A D | act_api.h | 48 u8 hw_stats; member 101 static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats) in tc_act_hw_stats() argument 103 if (WARN_ON_ONCE(hw_stats > TCA_ACT_HW_STATS_ANY)) in tc_act_hw_stats() 105 else if (!hw_stats) in tc_act_hw_stats() 108 return hw_stats; in tc_act_hw_stats()
|
| H A D | nexthop.h | 136 bool hw_stats; member 204 bool hw_stats; 218 bool hw_stats; 202 bool hw_stats; global() member 216 bool hw_stats; global() member
|
| /linux/drivers/net/ethernet/intel/fm10k/ |
| H A D | fm10k_iov.c | 681 struct fm10k_hw_stats_q *hw_stats; in fm10k_ndo_get_vf_stats() local 689 hw_stats = iov_data->vf_info[vf_idx].stats; in fm10k_ndo_get_vf_stats() 692 stats->rx_packets += hw_stats[idx].rx_packets.count; in fm10k_ndo_get_vf_stats() 693 stats->tx_packets += hw_stats[idx].tx_packets.count; in fm10k_ndo_get_vf_stats() 694 stats->rx_bytes += hw_stats[idx].rx_bytes.count; in fm10k_ndo_get_vf_stats() 695 stats->tx_bytes += hw_stats[idx].tx_bytes.count; in fm10k_ndo_get_vf_stats() 696 stats->rx_dropped += hw_stats[idx].rx_drops.count; in fm10k_ndo_get_vf_stats()
|
| /linux/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
| H A D | ipsec_stats.c | 95 mlx5e_accel_ipsec_fs_read_stats(priv, &priv->ipsec->hw_stats); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS() 99 MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->hw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
|
| /linux/drivers/net/ethernet/emulex/benet/ |
| H A D | be_main.c | 385 return &cmd->hw_stats; in hw_stats_from_cmd() 389 return &cmd->hw_stats; in hw_stats_from_cmd() 393 return &cmd->hw_stats; in hw_stats_from_cmd() 401 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 403 return &hw_stats->erx; in be_erx_stats_from_cmd() 405 struct be_hw_stats_v1 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 407 return &hw_stats->erx; in be_erx_stats_from_cmd() 409 struct be_hw_stats_v2 *hw_stats = hw_stats_from_cmd(adapter); in be_erx_stats_from_cmd() local 411 return &hw_stats->erx; in be_erx_stats_from_cmd() 417 struct be_hw_stats_v0 *hw_stats = hw_stats_from_cmd(adapter); in populate_be_v0_stats() local [all …]
|
| /linux/drivers/net/ethernet/cavium/thunder/ |
| H A D | nicvf_main.c | 1654 struct nicvf_hw_stats *stats = &nic->hw_stats; in nicvf_update_stats() 1717 struct nicvf_hw_stats *hw_stats = &nic->hw_stats; in nicvf_get_stats64() local 1721 stats->rx_bytes = hw_stats->rx_bytes; in nicvf_get_stats64() 1722 stats->rx_packets = hw_stats->rx_frames; in nicvf_get_stats64() 1723 stats->rx_dropped = hw_stats->rx_drops; in nicvf_get_stats64() 1724 stats->multicast = hw_stats->rx_mcast_frames; in nicvf_get_stats64() 1726 stats->tx_bytes = hw_stats->tx_bytes; in nicvf_get_stats64() 1727 stats->tx_packets = hw_stats->tx_frames; in nicvf_get_stats64() 1728 stats->tx_dropped = hw_stats->tx_drops; in nicvf_get_stats64()
|
| /linux/tools/testing/selftests/drivers/net/mlxsw/ |
| H A D | tc_action_hw_stats.sh | 86 skip_sw dst_ip 192.0.2.2 action drop hw_stats delayed
|
| /linux/drivers/net/ethernet/chelsio/cxgb/ |
| H A D | vsc7326.c | 591 } hw_stats[] = { in port_stats_update() local 617 }, *p = hw_stats; in port_stats_update() 622 for (i = 0; i < ARRAY_SIZE(hw_stats); i++) in port_stats_update()
|