/linux-6.12.1/drivers/net/ethernet/hisilicon/hns/ |
D | hns_dsaf_xgmac.c | 301 struct mac_hw_stats *hw_stats = &drv->mac_cb->hw_stats; in hns_xgmac_update_stats() local 304 hw_stats->tx_fragment_err in hns_xgmac_update_stats() 306 hw_stats->tx_undersize in hns_xgmac_update_stats() 308 hw_stats->tx_under_min_pkts in hns_xgmac_update_stats() 310 hw_stats->tx_64bytes = hns_mac_reg_read64(drv, XGMAC_TX_PKTS_64OCTETS); in hns_xgmac_update_stats() 311 hw_stats->tx_65to127 in hns_xgmac_update_stats() 313 hw_stats->tx_128to255 in hns_xgmac_update_stats() 315 hw_stats->tx_256to511 in hns_xgmac_update_stats() 317 hw_stats->tx_512to1023 in hns_xgmac_update_stats() 319 hw_stats->tx_1024to1518 in hns_xgmac_update_stats() [all …]
|
D | hns_dsaf_gmac.c | 364 struct mac_hw_stats *hw_stats = NULL; in hns_gmac_update_stats() local 367 hw_stats = &drv->mac_cb->hw_stats; in hns_gmac_update_stats() 370 hw_stats->rx_good_bytes in hns_gmac_update_stats() 372 hw_stats->rx_bad_bytes in hns_gmac_update_stats() 374 hw_stats->rx_uc_pkts += dsaf_read_dev(drv, GMAC_RX_UC_PKTS_REG); in hns_gmac_update_stats() 375 hw_stats->rx_mc_pkts += dsaf_read_dev(drv, GMAC_RX_MC_PKTS_REG); in hns_gmac_update_stats() 376 hw_stats->rx_bc_pkts += dsaf_read_dev(drv, GMAC_RX_BC_PKTS_REG); in hns_gmac_update_stats() 377 hw_stats->rx_64bytes in hns_gmac_update_stats() 379 hw_stats->rx_65to127 in hns_gmac_update_stats() 381 hw_stats->rx_128to255 in hns_gmac_update_stats() [all …]
|
D | hns_dsaf_ppe.c | 413 struct hns_ppe_hw_stats *hw_stats = &ppe_cb->hw_stats; in hns_ppe_update_stats() local 415 hw_stats->rx_pkts_from_sw in hns_ppe_update_stats() 417 hw_stats->rx_pkts in hns_ppe_update_stats() 419 hw_stats->rx_drop_no_bd in hns_ppe_update_stats() 421 hw_stats->rx_alloc_buf_fail in hns_ppe_update_stats() 423 hw_stats->rx_alloc_buf_wait in hns_ppe_update_stats() 425 hw_stats->rx_drop_no_buf in hns_ppe_update_stats() 427 hw_stats->rx_err_fifo_full in hns_ppe_update_stats() 430 hw_stats->tx_bd_form_rcb in hns_ppe_update_stats() 432 hw_stats->tx_pkts_from_rcb in hns_ppe_update_stats() [all …]
|
D | hns_ae_adapt.c | 654 rx_missed_errors = ppe_cb->hw_stats.rx_drop_no_buf; in hns_ae_update_stats() 655 tx_errors += ppe_cb->hw_stats.tx_err_checksum in hns_ae_update_stats() 656 + ppe_cb->hw_stats.tx_err_fifo_empty; in hns_ae_update_stats() 661 rx_missed_errors += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 662 rx_missed_errors += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 663 rx_missed_errors += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 668 tx_dropped += dsaf_dev->hw_stats[port].bp_drop; in hns_ae_update_stats() 669 tx_dropped += dsaf_dev->hw_stats[port].pad_drop; in hns_ae_update_stats() 670 tx_dropped += dsaf_dev->hw_stats[port].crc_false; in hns_ae_update_stats() 671 tx_dropped += dsaf_dev->hw_stats[port].rslt_drop; in hns_ae_update_stats() [all …]
|
D | hns_dsaf_rcb.c | 821 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_update_stats() local 823 hw_stats->rx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 827 hw_stats->ppe_rx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 829 hw_stats->ppe_rx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 832 hw_stats->tx_pkts += dsaf_read_dev(queue, in hns_rcb_update_stats() 836 hw_stats->ppe_tx_ok_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 838 hw_stats->ppe_tx_drop_pkts += dsaf_read_dev(ppe_common, in hns_rcb_update_stats() 852 struct hns_ring_hw_stats *hw_stats = &ring->hw_stats; in hns_rcb_get_stats() local 854 regs_buff[0] = hw_stats->tx_pkts; in hns_rcb_get_stats() 855 regs_buff[1] = hw_stats->ppe_tx_ok_pkts; in hns_rcb_get_stats() [all …]
|
D | hns_dsaf_main.c | 2205 struct dsaf_hw_stats *hw_stats in hns_dsaf_update_stats() local 2206 = &dsaf_dev->hw_stats[node_num]; in hns_dsaf_update_stats() 2211 hw_stats->pad_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2213 hw_stats->man_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2215 hw_stats->rx_pkts += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2217 hw_stats->rx_pkt_id += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2222 hw_stats->rx_pause_frame += in hns_dsaf_update_stats() 2225 hw_stats->release_buf_num += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2227 hw_stats->sbm_drop += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() 2229 hw_stats->crc_false += dsaf_read_dev(dsaf_dev, in hns_dsaf_update_stats() [all …]
|
D | hns_dsaf_ppe.h | 76 struct hns_ppe_hw_stats hw_stats; member
|
/linux-6.12.1/drivers/infiniband/hw/bnxt_re/ |
D | hw_counters.c | 304 struct ctx_hw_stats *hw_stats = NULL; in bnxt_re_ib_get_hw_stats() local 307 hw_stats = rdev->qplib_ctx.stats.dma; in bnxt_re_ib_get_hw_stats() 331 if (hw_stats) { in bnxt_re_ib_get_hw_stats() 333 le64_to_cpu(hw_stats->tx_bcast_pkts); in bnxt_re_ib_get_hw_stats() 335 le64_to_cpu(hw_stats->tx_discard_pkts); in bnxt_re_ib_get_hw_stats() 337 le64_to_cpu(hw_stats->tx_error_pkts); in bnxt_re_ib_get_hw_stats() 339 le64_to_cpu(hw_stats->rx_error_pkts); in bnxt_re_ib_get_hw_stats() 341 le64_to_cpu(hw_stats->rx_discard_pkts); in bnxt_re_ib_get_hw_stats() 343 le64_to_cpu(hw_stats->rx_ucast_pkts); in bnxt_re_ib_get_hw_stats() 345 le64_to_cpu(hw_stats->rx_ucast_bytes); in bnxt_re_ib_get_hw_stats() [all …]
|
/linux-6.12.1/net/sched/ |
D | sch_gred.c | 357 struct tc_gred_qopt_offload *hw_stats; in gred_offload_dump_stats() local 362 hw_stats = kzalloc(sizeof(*hw_stats), GFP_KERNEL); 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 …]
|
/linux-6.12.1/drivers/net/ethernet/atheros/atl1e/ |
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-6.12.1/drivers/net/ethernet/mediatek/ |
D | mtk_eth_soc.c | 975 struct mtk_hw_stats *hw_stats = mac->hw_stats; in mtk_stats_update_mac() local 978 u64_stats_update_begin(&hw_stats->syncp); in mtk_stats_update_mac() 981 hw_stats->tx_packets += mtk_r32(mac->hw, MT7628_SDM_TPCNT); in mtk_stats_update_mac() 982 hw_stats->tx_bytes += mtk_r32(mac->hw, MT7628_SDM_TBCNT); in mtk_stats_update_mac() 983 hw_stats->rx_packets += mtk_r32(mac->hw, MT7628_SDM_RPCNT); in mtk_stats_update_mac() 984 hw_stats->rx_bytes += mtk_r32(mac->hw, MT7628_SDM_RBCNT); in mtk_stats_update_mac() 985 hw_stats->rx_checksum_errors += in mtk_stats_update_mac() 989 unsigned int offs = hw_stats->reg_offset; in mtk_stats_update_mac() 992 hw_stats->rx_bytes += mtk_r32(mac->hw, reg_map->gdm1_cnt + offs); in mtk_stats_update_mac() 995 hw_stats->rx_bytes += (stats << 32); in mtk_stats_update_mac() [all …]
|
/linux-6.12.1/drivers/net/ethernet/atheros/alx/ |
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-6.12.1/tools/testing/selftests/net/forwarding/ |
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
|
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-6.12.1/drivers/net/ethernet/atheros/atl1c/ |
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-6.12.1/include/net/ |
D | act_api.h | 45 u8 hw_stats; member 94 static inline enum flow_action_hw_stats tc_act_hw_stats(u8 hw_stats) in tc_act_hw_stats() argument 96 if (WARN_ON_ONCE(hw_stats > TCA_ACT_HW_STATS_ANY)) in tc_act_hw_stats() 98 else if (!hw_stats) in tc_act_hw_stats() 101 return hw_stats; in tc_act_hw_stats()
|
D | flow_offload.h | 239 enum flow_action_hw_stats hw_stats; member 378 if (i && action_entry->hw_stats != last_hw_stats) { in flow_action_mixed_hw_stats_check() 382 last_hw_stats = action_entry->hw_stats; in flow_action_mixed_hw_stats_check() 410 WARN_ON_ONCE(!action_entry->hw_stats); in __flow_action_hw_stats_check() 413 ~action_entry->hw_stats & FLOW_ACTION_HW_STATS_ANY) { in __flow_action_hw_stats_check() 417 !(action_entry->hw_stats & BIT(allow_bit))) { in __flow_action_hw_stats_check()
|
D | nexthop.h | 136 bool hw_stats; member 202 bool hw_stats; member 216 bool hw_stats; member
|
/linux-6.12.1/drivers/net/ethernet/intel/fm10k/ |
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-6.12.1/drivers/net/ethernet/mellanox/mlx5/core/en_accel/ |
D | ipsec_stats.c | 94 mlx5e_accel_ipsec_fs_read_stats(priv, &priv->ipsec->hw_stats); in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS() 98 MLX5E_READ_CTR_ATOMIC64(&priv->ipsec->hw_stats, in MLX5E_DECLARE_STATS_GRP_OP_FILL_STATS()
|
/linux-6.12.1/drivers/net/ethernet/ti/ |
D | am65-cpsw-ethtool.c | 609 const struct am65_cpsw_ethtool_stat *hw_stats; in am65_cpsw_get_strings() local 616 hw_stats = am65_host_stats; in am65_cpsw_get_strings() 618 memcpy(p, hw_stats[i].desc, ETH_GSTRING_LEN); in am65_cpsw_get_strings() 623 hw_stats = am65_slave_stats; in am65_cpsw_get_strings() 625 memcpy(p, hw_stats[i].desc, ETH_GSTRING_LEN); in am65_cpsw_get_strings() 645 const struct am65_cpsw_ethtool_stat *hw_stats; in am65_cpsw_get_ethtool_stats() local 653 hw_stats = am65_host_stats; in am65_cpsw_get_ethtool_stats() 656 hw_stats[i].offset); in am65_cpsw_get_ethtool_stats() 659 hw_stats = am65_slave_stats; in am65_cpsw_get_ethtool_stats() 662 hw_stats[i].offset); in am65_cpsw_get_ethtool_stats()
|
/linux-6.12.1/drivers/net/ethernet/ |
D | dnet.c | 342 u32 *p = &bp->hw_stats.rx_pkt_ignr; in dnet_update_stats() 343 u32 *end = &bp->hw_stats.rx_byte + 1; in dnet_update_stats() 352 p = &bp->hw_stats.tx_unicast; in dnet_update_stats() 353 end = &bp->hw_stats.tx_byte + 1; in dnet_update_stats() 693 struct dnet_stats *hwstat = &bp->hw_stats; in dnet_get_stats()
|
/linux-6.12.1/drivers/net/ethernet/meta/fbnic/ |
D | fbnic_ethtool.c | 34 mac_stats = &fbd->hw_stats.mac; in fbnic_get_eth_mac_stats()
|
/linux-6.12.1/tools/testing/selftests/drivers/net/mlxsw/ |
D | tc_action_hw_stats.sh | 86 skip_sw dst_ip 192.0.2.2 action drop hw_stats delayed
|
/linux-6.12.1/drivers/net/ethernet/emulex/benet/ |
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 …]
|