| /linux/drivers/net/ethernet/meta/fbnic/ |
| H A D | fbnic_debugfs.c | 207 seq_printf(s, "ob_rd_tlp: %llu\n", fbd->hw_stats.pcie.ob_rd_tlp.value); in fbnic_dbg_pcie_stats_show() 209 fbd->hw_stats.pcie.ob_rd_dword.value); in fbnic_dbg_pcie_stats_show() 210 seq_printf(s, "ob_wr_tlp: %llu\n", fbd->hw_stats.pcie.ob_wr_tlp.value); in fbnic_dbg_pcie_stats_show() 212 fbd->hw_stats.pcie.ob_wr_dword.value); in fbnic_dbg_pcie_stats_show() 214 fbd->hw_stats.pcie.ob_cpl_tlp.value); in fbnic_dbg_pcie_stats_show() 216 fbd->hw_stats.pcie.ob_cpl_dword.value); in fbnic_dbg_pcie_stats_show() 218 fbd->hw_stats.pcie.ob_rd_no_tag.value); in fbnic_dbg_pcie_stats_show() 220 fbd->hw_stats.pcie.ob_rd_no_cpl_cred.value); in fbnic_dbg_pcie_stats_show() 222 fbd->hw_stats.pcie.ob_rd_no_np_cred.value); in fbnic_dbg_pcie_stats_show()
|
| /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(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 …]
|
| 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()
|
| H A D | sch_red.c | 398 struct tc_red_qopt_offload hw_stats = { in red_dump_offload_stats() local 408 return qdisc_offload_dump_helper(sch, TC_SETUP_QDISC_RED, &hw_stats); in red_dump_offload_stats()
|
| /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()
|
| /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/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/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/include/net/ |
| 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/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/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()
|
| /linux/drivers/net/ethernet/ |
| H A D | dnet.h | 209 struct dnet_stats hw_stats; member
|
| /linux/drivers/net/ethernet/hisilicon/hns/ |
| 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/oki-semi/pch_gbe/ |
| H A D | pch_gbe_ethtool.c | 473 char *hw_stats = (char *)&adapter->stats; in pch_gbe_get_ethtool_stats() local 477 char *p = hw_stats + gstats->offset; in pch_gbe_get_ethtool_stats()
|
| /linux/drivers/net/ethernet/sfc/ |
| H A D | tc.c | 1005 if (fa->hw_stats) { in efx_tc_flower_handle_lhs_actions() 1008 if (!(fa->hw_stats & FLOW_ACTION_HW_STATS_DELAYED)) { in efx_tc_flower_handle_lhs_actions() 1011 fa->hw_stats); in efx_tc_flower_handle_lhs_actions() 1838 if (fa->hw_stats) { in efx_tc_flower_replace_foreign() 1841 if (!(fa->hw_stats & FLOW_ACTION_HW_STATS_DELAYED)) { in efx_tc_flower_replace_foreign() 1844 fa->hw_stats); in efx_tc_flower_replace_foreign() 2245 fa->id == FLOW_ACTION_DROP) && fa->hw_stats) { in efx_tc_flower_replace() 2267 if (!(fa->hw_stats & FLOW_ACTION_HW_STATS_DELAYED)) { in efx_tc_flower_replace() 2269 fa->hw_stats); in efx_tc_flower_replace()
|
| /linux/drivers/net/ethernet/broadcom/bnxt/ |
| H A D | bnxt_tc.c | 1719 stats_batch[i].hw_stats.packets = in bnxt_hwrm_cfa_flow_stats_get() 1721 stats_batch[i].hw_stats.bytes = in bnxt_hwrm_cfa_flow_stats_get() 1753 struct bnxt_tc_flow_stats *hw_stats) in bnxt_flow_stats_accum() argument 1755 accumulate_val(&acc_stats->bytes, hw_stats->bytes, tc_info->bytes_mask); in bnxt_flow_stats_accum() 1756 accumulate_val(&acc_stats->packets, hw_stats->packets, in bnxt_flow_stats_accum() 1777 &stats_batch[i].hw_stats); in bnxt_tc_flow_stats_batch_update()
|
| /linux/net/core/ |
| H A D | flow_offload.c | 25 rule->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in flow_rule_alloc() 46 fl_action->action.entries[i].hw_stats = FLOW_ACTION_HW_STATS_DONT_CARE; in offload_action_alloc()
|
| /linux/drivers/net/ethernet/marvell/prestera/ |
| H A D | prestera_flower.c | 78 if (act->hw_stats & FLOW_ACTION_HW_STATS_DISABLED) { in prestera_flower_parse_actions() 80 } else if (act->hw_stats & FLOW_ACTION_HW_STATS_DELAYED) { in prestera_flower_parse_actions()
|