| /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_rcb.c | 816 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_update_stats() local 818 hw_stats->rx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 822 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 824 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 827 hw_stats->tx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 831 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 833 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 847 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_get_stats() local 849 regs_buff[0] = hw_stats->tx_pkts; in hns_rcb_get_stats() 850 regs_buff[1] = hw_stats->ppe_tx_ok_pkts; in hns_rcb_get_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() [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/ethernet/meta/fbnic/ |
| H A D | fbnic_netdev.c | 421 spin_lock(&fbd->hw_stats.lock); in fbnic_get_stats64() 422 tx_dropped += fbd->hw_stats.tmi.drop.frames.value + in fbnic_get_stats64() 423 fbd->hw_stats.tti.cm_drop.frames.value + in fbnic_get_stats64() 424 fbd->hw_stats.tti.frame_drop.frames.value + in fbnic_get_stats64() 425 fbd->hw_stats.tti.tbi_drop.frames.value; in fbnic_get_stats64() 426 spin_unlock(&fbd->hw_stats.lock); in fbnic_get_stats64() 457 spin_lock(&fbd->hw_stats.lock); in fbnic_get_stats64() 465 rx_missed += fbd->hw_stats.rxb.fifo[i].drop.frames.value; in fbnic_get_stats64() 467 rx_missed += fbd->hw_stats.rxb.fifo[i].drop.frames.value; in fbnic_get_stats64() 471 rx_over += fbd->hw_stats.hw_q[i].rde_pkt_cq_drop.value; in fbnic_get_stats64() [all …]
|
| H A D | fbnic_debugfs.c | 612 seq_printf(s, "ob_rd_tlp: %llu\n", fbd->hw_stats.pcie.ob_rd_tlp.value); in fbnic_dbg_pcie_stats_show() 614 fbd->hw_stats.pcie.ob_rd_dword.value); in fbnic_dbg_pcie_stats_show() 615 seq_printf(s, "ob_wr_tlp: %llu\n", fbd->hw_stats.pcie.ob_wr_tlp.value); in fbnic_dbg_pcie_stats_show() 617 fbd->hw_stats.pcie.ob_wr_dword.value); in fbnic_dbg_pcie_stats_show() 619 fbd->hw_stats.pcie.ob_cpl_tlp.value); in fbnic_dbg_pcie_stats_show() 621 fbd->hw_stats.pcie.ob_cpl_dword.value); in fbnic_dbg_pcie_stats_show() 623 fbd->hw_stats.pcie.ob_rd_no_tag.value); in fbnic_dbg_pcie_stats_show() 625 fbd->hw_stats.pcie.ob_rd_no_cpl_cred.value); in fbnic_dbg_pcie_stats_show() 627 fbd->hw_stats.pcie.ob_rd_no_np_cred.value); in fbnic_dbg_pcie_stats_show()
|
| H A D | fbnic_ethtool.c | 539 spin_lock(&fbd->hw_stats.lock); in fbnic_get_ethtool_stats() 540 fbnic_report_hw_stats(fbnic_gstrings_hw_stats, &fbd->hw_stats, in fbnic_get_ethtool_stats() 546 enq = &fbd->hw_stats.rxb.enq[i]; in fbnic_get_ethtool_stats() 555 fifo = &fbd->hw_stats.rxb.fifo[i]; in fbnic_get_ethtool_stats() 564 deq = &fbd->hw_stats.rxb.deq[i]; in fbnic_get_ethtool_stats() 571 const struct fbnic_hw_q_stats *hw_q = &fbd->hw_stats.hw_q[i]; in fbnic_get_ethtool_stats() 576 spin_unlock(&fbd->hw_stats.lock); in fbnic_get_ethtool_stats() 1851 mac_stats = &fbd->hw_stats.mac; in fbnic_get_pause_stats() 1871 phy_stats = &fbd->hw_stats.phy; in fbnic_get_fec_stats() 1873 spin_lock(&fbd->hw_stats.lock); in fbnic_get_fec_stats() [all …]
|
| /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/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/mediatek/ |
| H A D | mtk_eth_soc.c | 1131 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 1134 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 1137 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac() 1138 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac() 1139 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac() 1140 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac() 1141 hw_stats->rx_checksum_errors += in mtk_stats_update_mac() 1145 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac() 1148 hw_stats->rx_bytes += mtk_r32(mac->hw, reg_map->gdm1_cnt + offs); in mtk_stats_update_mac() 1151 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() [all …]
|
| /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 | 49 u8 hw_stats; member 103 static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats) in tc_act_hw_stats() argument 105 if (WARN_ON_ONCE(hw_stats > TCA_ACT_HW_STATS_ANY)) in tc_act_hw_stats() 107 else if (!hw_stats) in tc_act_hw_stats() 110 return hw_stats; in tc_act_hw_stats()
|
| H A D | nexthop.h | 138 bool hw_stats; member 206 bool hw_stats; member 220 bool hw_stats; 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/broadcom/bnge/ |
| H A D | bnge_netdev.c | 47 if (stats->hw_stats) { in bnge_free_stats_mem() 48 dma_free_coherent(bd->dev, stats->len, stats->hw_stats, in bnge_free_stats_mem() 50 stats->hw_stats = NULL; in bnge_free_stats_mem() 59 stats->hw_stats = dma_alloc_coherent(bd->dev, stats->len, in bnge_alloc_stats_mem() 61 if (!stats->hw_stats) in bnge_alloc_stats_mem() 137 rx_stats = stats->hw_stats; in bnge_init_stats() 160 rx_stats = stats->hw_stats; in bnge_init_stats() 164 tx_stats = stats->hw_stats; in bnge_init_stats() 235 if (!bn->rx_port_stats_ext.hw_stats) { in bnge_alloc_port_ext_stats() 243 if (!bn->tx_port_stats_ext.hw_stats) { in bnge_alloc_port_ext_stats() [all …]
|
| /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/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/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()
|