What are the ethernet statistics?

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

What are the ethernet statistics?

1,087 Views
peter_thompson
Contributor I

Hi Folks,

I have the ADTJA1101-RMII board, attached to the S32K148EVB-Q176. I'm trying to see how well this ethernet board performs, and to do that, I need to discover what errors are being discovered by the chip.

I see in the SDK that there is a list of statistics being gathered, but I have no clue what they are - is there documentation about the 'enet_counter_t' enums? This set is found in enet_driver.h.

Many thanks in advance.

Cheers, Peter

Tags (1)
0 Kudos
4 Replies

987 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Peter,

There is this

uint32_t ENET_DRV_GetCounter(uint8_t instance, enet_counter_t counter) 

function defined in enet_drive.c.

It takes an enet_counter_t number as an argument.

The enum is basically a list of numbers that represents ENET registers.
The function then returns the requested number from the corresponding ENET register.

For example, ENET_CTR_RMON_T_PACKETS which is 1 in the enum.
S32K1xx RM rev.12.1, Section 57.5.34 Tx Packet Count Statistic Register (ENET_RMON_T_PACKETS).

Regards,

Daniel

0 Kudos

987 Views
peter_thompson
Contributor I

Thanks Daniel,

But that doesn't tell me what all of those enums actually mean, nor what they are measuring. 

Cheers, Peter

0 Kudos

987 Views
danielmartynek
NXP TechSupport
NXP TechSupport

Hi Peter,

As you can see below, it is a list of ENET statistics counters.

pastedImage_7.png

RFC 2819 - Remote Network Monitoring Management Information Base 

pastedImage_6.png

S32K1xx RM, Section 57.5 Memory map/register definition

pastedImage_3.pngpastedImage_5.png

BR, Daniel

0 Kudos

987 Views
peter_thompson
Contributor I

Brilliant.  That was the answer I was looking for.  The header should have referred to RFC2819, and saved a lot of grief.

Cheers!

0 Kudos