Ethernet Subsystem Intel® FPGA IP User Guide: Early Access Customer Release

ID 773413
Date 4/14/2023
Public

A newer version of this document is available. Customers should click here to go to the newest version.

Document Table of Contents

4.1.4. read_MAC_statistic (0x3)

Table 14.   read_MAC_statistic (0x3) The following table above shows the statistic counters of Ethernet Subsystem and the mapping to internal Ethernet IP statistic registers.
Ethtool Statistics HSSI Control/Address bit[20:16] Counters E-tile Hard IP for Ethernet Statistics Registers
tx_packets 0 TX_MCAST_DATA_OK_31_0 + TX_MCAST_DATA_OK_63_32+ TX_BCAST_DATA_OK_31_0 + TX_BCAST_DATA_OK_63_32 + TX_UCAST_DATA_OK_31_0 + TX_UCAST_DATA_OK_63_32 + TX_MCAST_CTRL_OK_31_0 + TX_MCAST_CTRL_OK_63_32 + TX_BCAST_CTRL_OK_31_0 + TX_BCAST_CTRL_OK_63_32 + TX_UCAST_CTRL_OK_31_0 + TX_UCAST_CTRL_OK_63_32
rx_packets 1 RX_MCAST_DATA_OK_31_0 + RX_MCAST_DATA_OK_63_32+ RX_BCAST_DATA_OK_31_0 + RX_BCAST_DATA_OK_63_32 + RX_UCAST_DATA_OK_31_0 + RX_UCAST_DATA_OK_63_32 + RX_MCAST_CTRL_OK_31_0 + RX_MCAST_CTRL_OK_63_32 + RX_BCAST_CTRL_OK_31_0 + RX_BCAST_CTRL_OK_63_32 + RX_UCAST_CTRL_OK_31_0 + RX_UCAST_CTRL_OK_63_32
rx_crc_errors 2 RX_FCSERR_31_0+ RX_FCSERR_63_32
rx_align_errors 3 RX_FCSERR_31_0+ RX_FCSERR_63_32 - (RX_RNT_31_0 + RX_RNT_63_32)
tx_bytes 4 TX_Payload_OctetsOK_31_0+ TX_Payload_OctetsOK_63_32
rx_bytes 5 RX_Payload_OctetsOK_31_0+ RX_Payload_OctetsOK_63_32
tx_pause 6 TX_PAUSE_31_0+ TX_PAUSE_63_32
rx_pause 7 RX_PAUSE_31_0+ RX_PAUSE_63_32
rx_errors 8 RX_Dropped_CTRL_31_0+ RX_Dropped_CTRL_63_32
tx_errors 9 TX_Dropped_CTRL_31_0+ TX_Dropped_CTRL_63_32
rx_unicast 10 RX_UCAST_DATA_OK_31_0 + RX_UCAST_DATA_OK_63_32+ RX_UCAST_CTRL_OK_31_0 + RX_UCAST_CTRL_OK_63_32
rx_multicast 11 RX_MCAST_DATA_OK_31_0 + RX_MCAST_DATA_OK_63_32+ RX_MCAST_CTRL_OK_31_0 + RX_MCAST_CTRL_OK_63_32
rx_broadcast 12 RX_BCAST_DATA_OK_31_0 + RX_BCAST_DATA_OK_63_32+ RX_BCAST_CTRL_OK_31_0 + RX_BCAST_CTRL_OK_63_32
tx_discards 13 -
tx_unicast 14 TX_UCAST_DATA_OK_31_0 + TX_UCAST_DATA_OK_63_32+ TX_UCAST_CTRL_OK_31_0 + TX_UCAST_CTRL_OK_63_32
tx_multicast 15 TX_MCAST_DATA_OK_31_0 + TX_MCAST_DATA_OK_63_32+ TX_MCAST_CTRL_OK_31_0 + TX_MCAST_CTRL_OK_63_32
tx_broadcast 16 TX_BCAST_DATA_OK_31_0 + TX_BCAST_DATA_OK_63_32+ TX_BCAST_CTRL_OK_31_0 + TX_BCAST_CTRL_OK_63_32
ether_drops 17 RX_Dropped_CTRL_31_0+ RX_Dropped_CTRL_63_32
rx_total_bytes 18 RX_Frame_OctetsOK_31_0+ RX_Frame_OctetsOK_63_32
rx_total_packets 19 TX_MCAST_DATA_OK_31_0 + TX_MCAST_DATA_OK_63_32 + TX_BCAST_DATA_OK_31_0 + TX_BCAST_DATA_OK_63_32 + TX_UCAST_DATA_OK_31_0 + TX_UCAST_DATA_OK_63_32 + TX_MCAST_CTRL_OK_31_0 + TX_MCAST_CTRL_OK_63_32 + TX_BCAST_CTRL_OK_31_0 + TX_BCAST_CTRL_OK_63_32 + TX_UCAST_CTRL_OK_31_0 + TX_UCAST_CTRL_OK_63_32 + RX_MCAST_DATA_ERR_31_0 + RX_MCAST_DATA_ERR_63_32+ RX_BCAST_DATA_ERR_31_0 + RX_BCAST_DATA_ERR_63_32 + RX_UCAST_DATA_ERR_31_0 + RX_UCAST_DATA_ERR_63_32 + RX_MCAST_CTRL_ERR_31_0 + RX_MCAST_CTRL_ERR_63_32 + RX_BCAST_CTRL_ERR_31_0 + RX_BCAST_CTRL_ERR_63_32 + RX_UCAST_CTRL_ERR_31_0 + RX_UCAST_CTRL_ERR_63_32
rx_undersize 20 RX_RNT_31_0+ RX_RNT_63_32
rx_oversize 21 RX_OVERSIZE_31_0+ RX_OVERSIZE_63_32
rx_64_bytes 22 RX_64B_31_0+ RX_64B_63_32
rx_65_127_bytes 23 RX_65to127B_31_0+ RX_65to127B_63_32
rx_128_255_bytes 24 RX_128to255B_31_0+ RX_128to255B_63_32
rx_256_511_bytes 25 RX_256to511B_31_0+ RX_256to511B_63_32
rx_512_1023_bytes 26 RX_512to1023B_31_0+ RX_512to1023B_63_32
rx_1024_1518_bytes 27 RX_1024to1518B_31_0+ RX_1024to1518B_63_32
rx_gte_1519_bytes 28 RX_1519toMAXB_31_0+ RX_1519toMAXB_63_32
rx_jabbers 29 RX_JABBERS_31_0+ RX_JABBERS_63_32
rx_runts 30 RX_ FRAGMENTS _31_0+ RX_ FRAGMENTS _63_32

User should write to HSSI Control/Address Register bit [20:16] to identify which counter to be read out based on the counter value from the above table. The result is calculated by aggregating internal statistic register values read out from Ethernet IP. The HSSI Control/Address Register bit 31 indicates the read is intended for lower 32 bits (1'b1) of the statistic counters or the upper 32 bits (1'b0).