Home
last modified time | relevance | path

Searched refs:port_stats (Results 1 – 25 of 47) sorted by relevance

12

/linux-6.12.1/drivers/net/ethernet/mellanox/mlx4/
Den_port.c242 priv->port_stats.rx_chksum_good = 0; in mlx4_en_DUMP_ETH_STATS()
243 priv->port_stats.rx_chksum_none = 0; in mlx4_en_DUMP_ETH_STATS()
244 priv->port_stats.rx_chksum_complete = 0; in mlx4_en_DUMP_ETH_STATS()
245 priv->port_stats.rx_alloc_pages = 0; in mlx4_en_DUMP_ETH_STATS()
255 priv->port_stats.rx_chksum_good += READ_ONCE(ring->csum_ok); in mlx4_en_DUMP_ETH_STATS()
256 priv->port_stats.rx_chksum_none += READ_ONCE(ring->csum_none); in mlx4_en_DUMP_ETH_STATS()
257 priv->port_stats.rx_chksum_complete += READ_ONCE(ring->csum_complete); in mlx4_en_DUMP_ETH_STATS()
258 priv->port_stats.rx_alloc_pages += READ_ONCE(ring->rx_alloc_pages); in mlx4_en_DUMP_ETH_STATS()
265 priv->port_stats.tx_chksum_offload = 0; in mlx4_en_DUMP_ETH_STATS()
266 priv->port_stats.queue_stopped = 0; in mlx4_en_DUMP_ETH_STATS()
[all …]
/linux-6.12.1/drivers/net/ethernet/qlogic/qed/
Dqed_l2.c1764 struct port_stats port_stats; in __qed_get_vport_port_stats() local
1767 memset(&port_stats, 0, sizeof(port_stats)); in __qed_get_vport_port_stats()
1769 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in __qed_get_vport_port_stats()
1772 sizeof(port_stats)); in __qed_get_vport_port_stats()
1774 p_common->rx_64_byte_packets += port_stats.eth.r64; in __qed_get_vport_port_stats()
1775 p_common->rx_65_to_127_byte_packets += port_stats.eth.r127; in __qed_get_vport_port_stats()
1776 p_common->rx_128_to_255_byte_packets += port_stats.eth.r255; in __qed_get_vport_port_stats()
1777 p_common->rx_256_to_511_byte_packets += port_stats.eth.r511; in __qed_get_vport_port_stats()
1778 p_common->rx_512_to_1023_byte_packets += port_stats.eth.r1023; in __qed_get_vport_port_stats()
1779 p_common->rx_1024_to_1518_byte_packets += port_stats.eth.r1518; in __qed_get_vport_port_stats()
[all …]
Dqed_ll2.c2238 struct core_ll2_port_stats port_stats; in _qed_ll2_get_port_stats() local
2240 memset(&port_stats, 0, sizeof(port_stats)); in _qed_ll2_get_port_stats()
2241 qed_memcpy_from(p_hwfn, p_ptt, &port_stats, in _qed_ll2_get_port_stats()
2244 sizeof(port_stats)); in _qed_ll2_get_port_stats()
2246 p_stats->gsi_invalid_hdr += HILO_64_REGPAIR(port_stats.gsi_invalid_hdr); in _qed_ll2_get_port_stats()
2248 HILO_64_REGPAIR(port_stats.gsi_invalid_pkt_length); in _qed_ll2_get_port_stats()
2250 HILO_64_REGPAIR(port_stats.gsi_unsupported_pkt_typ); in _qed_ll2_get_port_stats()
2252 HILO_64_REGPAIR(port_stats.gsi_crcchksm_error); in _qed_ll2_get_port_stats()
/linux-6.12.1/drivers/net/ethernet/intel/idpf/
Didpf_ethtool.c467 IDPF_PORT_STAT("rx-csum_errors", port_stats.rx_hw_csum_err),
468 IDPF_PORT_STAT("rx-hsplit", port_stats.rx_hsplit),
469 IDPF_PORT_STAT("rx-hsplit_hbo", port_stats.rx_hsplit_hbo),
470 IDPF_PORT_STAT("rx-bad_descs", port_stats.rx_bad_descs),
471 IDPF_PORT_STAT("tx-skb_drops", port_stats.tx_drops),
472 IDPF_PORT_STAT("tx-dma_map_errs", port_stats.tx_dma_map_errs),
473 IDPF_PORT_STAT("tx-linearized_pkts", port_stats.tx_linearize),
474 IDPF_PORT_STAT("tx-busy_events", port_stats.tx_busy),
475 IDPF_PORT_STAT("rx-unicast_pkts", port_stats.vport_stats.rx_unicast),
476 IDPF_PORT_STAT("rx-multicast_pkts", port_stats.vport_stats.rx_multicast),
[all …]
Didpf.h332 struct idpf_port_stats port_stats; member
/linux-6.12.1/drivers/net/ethernet/emulex/benet/
Dbe_main.c420 struct be_port_rxf_stats_v0 *port_stats = in populate_be_v0_stats() local
425 drvs->rx_pause_frames = port_stats->rx_pause_frames; in populate_be_v0_stats()
426 drvs->rx_crc_errors = port_stats->rx_crc_errors; in populate_be_v0_stats()
427 drvs->rx_control_frames = port_stats->rx_control_frames; in populate_be_v0_stats()
428 drvs->rx_in_range_errors = port_stats->rx_in_range_errors; in populate_be_v0_stats()
429 drvs->rx_frame_too_long = port_stats->rx_frame_too_long; in populate_be_v0_stats()
430 drvs->rx_dropped_runt = port_stats->rx_dropped_runt; in populate_be_v0_stats()
431 drvs->rx_ip_checksum_errs = port_stats->rx_ip_checksum_errs; in populate_be_v0_stats()
432 drvs->rx_tcp_checksum_errs = port_stats->rx_tcp_checksum_errs; in populate_be_v0_stats()
433 drvs->rx_udp_checksum_errs = port_stats->rx_udp_checksum_errs; in populate_be_v0_stats()
[all …]
/linux-6.12.1/drivers/net/ethernet/marvell/prestera/
Dprestera_main.c501 struct prestera_port_stats *port_stats = &port->cached_hw_stats.stats; in prestera_port_get_stats64() local
503 stats->rx_packets = port_stats->broadcast_frames_received + in prestera_port_get_stats64()
504 port_stats->multicast_frames_received + in prestera_port_get_stats64()
505 port_stats->unicast_frames_received; in prestera_port_get_stats64()
507 stats->tx_packets = port_stats->broadcast_frames_sent + in prestera_port_get_stats64()
508 port_stats->multicast_frames_sent + in prestera_port_get_stats64()
509 port_stats->unicast_frames_sent; in prestera_port_get_stats64()
511 stats->rx_bytes = port_stats->good_octets_received; in prestera_port_get_stats64()
513 stats->tx_bytes = port_stats->good_octets_sent; in prestera_port_get_stats64()
515 stats->rx_errors = port_stats->rx_error_frame_received; in prestera_port_get_stats64()
[all …]
Dprestera_ethtool.c772 struct prestera_port_stats *port_stats; in prestera_ethtool_get_stats() local
774 port_stats = &port->cached_hw_stats.stats; in prestera_ethtool_get_stats()
776 memcpy(data, port_stats, sizeof(*port_stats)); in prestera_ethtool_get_stats()
/linux-6.12.1/drivers/net/ethernet/chelsio/inline_crypto/ch_ktls/
Dchcr_ktls.c366 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_del() local
395 port_stats = &tx_info->adap->ch_ktls_stats.ktls_port[tx_info->port_id]; in chcr_ktls_dev_del()
396 atomic64_inc(&port_stats->ktls_tx_connection_close); in chcr_ktls_dev_del()
418 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_dev_add() local
430 port_stats = &adap->ch_ktls_stats.ktls_port[pi->port_id]; in chcr_ktls_dev_add()
431 atomic64_inc(&port_stats->ktls_tx_connection_open); in chcr_ktls_dev_add()
564 atomic64_inc(&port_stats->ktls_tx_ctx); in chcr_ktls_dev_add()
593 atomic64_inc(&port_stats->ktls_tx_connection_fail); in chcr_ktls_dev_add()
843 struct ch_ktls_port_stats_debug *port_stats; in chcr_ktls_xmit_tcb_cpls() local
882 port_stats = in chcr_ktls_xmit_tcb_cpls()
[all …]
/linux-6.12.1/drivers/net/ethernet/huawei/hinic/
Dhinic_port.c1030 struct hinic_port_stats *port_stats; in hinic_get_phy_port_stats() local
1031 u16 out_size = sizeof(*port_stats); in hinic_get_phy_port_stats()
1035 port_stats = kzalloc(sizeof(*port_stats), GFP_KERNEL); in hinic_get_phy_port_stats()
1036 if (!port_stats) in hinic_get_phy_port_stats()
1040 stats_info.stats_size = sizeof(*port_stats); in hinic_get_phy_port_stats()
1044 port_stats, &out_size); in hinic_get_phy_port_stats()
1045 if (err || !out_size || port_stats->status) { in hinic_get_phy_port_stats()
1048 err, port_stats->status, out_size); in hinic_get_phy_port_stats()
1053 memcpy(stats, &port_stats->stats, sizeof(*stats)); in hinic_get_phy_port_stats()
1056 kfree(port_stats); in hinic_get_phy_port_stats()
Dhinic_ethtool.c1407 struct hinic_phy_port_stats *port_stats; in hinic_get_ethtool_stats() local
1423 port_stats = kzalloc(sizeof(*port_stats), GFP_KERNEL); in hinic_get_ethtool_stats()
1424 if (!port_stats) { in hinic_get_ethtool_stats()
1431 err = hinic_get_phy_port_stats(nic_dev, port_stats); in hinic_get_ethtool_stats()
1437 p = (char *)port_stats + hinic_port_stats[j].offset; in hinic_get_ethtool_stats()
1442 kfree(port_stats); in hinic_get_ethtool_stats()
/linux-6.12.1/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ctx.c1193 struct __qlcnic_esw_statistics port_stats; in qlcnic_get_eswitch_stats() local
1218 memset(&port_stats, 0, sizeof(struct __qlcnic_esw_statistics)); in qlcnic_get_eswitch_stats()
1220 rx_tx, &port_stats)) in qlcnic_get_eswitch_stats()
1223 esw_stats->size = port_stats.size; in qlcnic_get_eswitch_stats()
1224 esw_stats->version = port_stats.version; in qlcnic_get_eswitch_stats()
1226 port_stats.unicast_frames); in qlcnic_get_eswitch_stats()
1228 port_stats.multicast_frames); in qlcnic_get_eswitch_stats()
1230 port_stats.broadcast_frames); in qlcnic_get_eswitch_stats()
1232 port_stats.dropped_frames); in qlcnic_get_eswitch_stats()
1234 port_stats.errors); in qlcnic_get_eswitch_stats()
[all …]
Dqlcnic_sysfs.c778 struct qlcnic_esw_statistics port_stats; in qlcnic_sysfs_get_port_stats() local
790 memset(&port_stats, 0, size); in qlcnic_sysfs_get_port_stats()
792 &port_stats.rx); in qlcnic_sysfs_get_port_stats()
797 &port_stats.tx); in qlcnic_sysfs_get_port_stats()
801 memcpy(buf, &port_stats, size); in qlcnic_sysfs_get_port_stats()
Dqlcnic_ethtool.c1351 struct qlcnic_esw_statistics port_stats; in qlcnic_get_ethtool_stats() local
1389 memset(&port_stats, 0, sizeof(struct qlcnic_esw_statistics)); in qlcnic_get_ethtool_stats()
1391 QLCNIC_QUERY_RX_COUNTER, &port_stats.rx); in qlcnic_get_ethtool_stats()
1395 data = qlcnic_fill_stats(data, &port_stats.rx, QLCNIC_ESW_STATS); in qlcnic_get_ethtool_stats()
1397 QLCNIC_QUERY_TX_COUNTER, &port_stats.tx); in qlcnic_get_ethtool_stats()
1401 qlcnic_fill_stats(data, &port_stats.tx, QLCNIC_ESW_STATS); in qlcnic_get_ethtool_stats()
/linux-6.12.1/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_stats.c239 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_stats_pmf_update()
240 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_stats_pmf_update()
250 dmae->dst_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats) + in bnx2x_stats_pmf_update()
252 dmae->dst_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats) + in bnx2x_stats_pmf_update()
290 dmae->src_addr_lo = U64_LO(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_port_stats_init()
291 dmae->src_addr_hi = U64_HI(bnx2x_sp_mapping(bp, port_stats)); in bnx2x_port_stats_init()
551 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_bmac_stats_update()
657 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_mstat_stats_update()
748 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_emac_stats_update()
806 struct host_port_stats *pstats = bnx2x_sp(bp, port_stats); in bnx2x_hw_stats_update()
[all …]
/linux-6.12.1/drivers/net/ethernet/pensando/ionic/
Dionic_stats.c327 struct ionic_port_stats *port_stats; in ionic_sw_stats_get_values() local
338 port_stats = &lif->ionic->idev.port_info->stats; in ionic_sw_stats_get_values()
340 **buf = IONIC_READ_STAT_LE64(port_stats, in ionic_sw_stats_get_values()
/linux-6.12.1/drivers/net/ethernet/ibm/ehea/
Dehea.h319 struct port_stats { struct
344 struct port_stats p_stats; argument
/linux-6.12.1/drivers/net/team/
Dteam_mode_loadbalance.c205 struct lb_stats *port_stats; in lb_update_tx_stats() local
209 port_stats = this_cpu_ptr(lb_port_priv->pcpu_stats); in lb_update_tx_stats()
212 port_stats->tx_bytes += tx_bytes; in lb_update_tx_stats()
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb/
Dsge.c263 struct sge_port_stats __percpu *port_stats[MAX_NPORTS]; member
801 free_percpu(sge->port_stats[i]); in t1_sge_destroy()
984 struct sge_port_stats *st = per_cpu_ptr(sge->port_stats[port], cpu); in t1_sge_get_port_stats()
1376 st = this_cpu_ptr(sge->port_stats[p->iff]); in sge_rx()
1812 struct sge_port_stats *st = this_cpu_ptr(sge->port_stats[dev->if_port]); in t1_start_xmit()
2110 sge->port_stats[i] = alloc_percpu(struct sge_port_stats); in t1_sge_create()
2111 if (!sge->port_stats[i]) in t1_sge_create()
2150 free_percpu(sge->port_stats[i]); in t1_sge_create()
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb3/
Dadapter.h212 unsigned long port_stats[SGE_PSTAT_MAX]; member
Dsge.c1330 qs->port_stats[SGE_PSTAT_TX_CSUM]++; in t3_eth_xmit()
1332 qs->port_stats[SGE_PSTAT_TSO]++; in t3_eth_xmit()
1334 qs->port_stats[SGE_PSTAT_VLANINS]++; in t3_eth_xmit()
2096 qs->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; in rx_eth()
2103 qs->port_stats[SGE_PSTAT_VLANEX]++; in rx_eth()
2178 qs->port_stats[SGE_PSTAT_RX_CSUM_GOOD]++; in lro_add_page()
2201 qs->port_stats[SGE_PSTAT_VLANEX]++; in lro_add_page()
/linux-6.12.1/drivers/scsi/bfa/
Dbfa_defs_fcs.h274 struct bfa_lport_stats_s port_stats; /* base class (port) stats */ member
/linux-6.12.1/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4.h205 struct port_stats { struct
669 struct port_stats stats_base;
1931 void t4_get_port_stats(struct adapter *adap, int idx, struct port_stats *p);
1933 struct port_stats *stats,
1934 struct port_stats *offset);
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c654 u64 *port_stats = bp->port_stats.sw_stats; in bnxt_get_ethtool_stats() local
657 buf[j] = *(port_stats + bnxt_port_stats_arr[i].offset); in bnxt_get_ethtool_stats()
3237 rx = bp->port_stats.sw_stats; in bnxt_get_pause_stats()
3238 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_pause_stats()
5154 rx = bp->port_stats.sw_stats; in bnxt_get_eth_mac_stats()
5155 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_eth_mac_stats()
5178 rx = bp->port_stats.sw_stats; in bnxt_get_eth_ctrl_stats()
5207 rx = bp->port_stats.sw_stats; in bnxt_get_rmon_stats()
5208 tx = bp->port_stats.sw_stats + BNXT_TX_PORT_STATS_BYTE_OFFSET / 8; in bnxt_get_rmon_stats()
/linux-6.12.1/drivers/char/
Dvirtio_console.c161 struct port_stats { struct
197 struct port_stats stats;
1348 port->stats = (struct port_stats) { 0 }; in add_port()

12