diff options
author | Ioana Ciornei <ioana.ciornei@nxp.com> | 2023-05-23 16:47:46 +0300 |
---|---|---|
committer | Peng Fan <peng.fan@nxp.com> | 2023-06-14 18:40:16 +0800 |
commit | 22df08d82eeb0ffd5aa3b7f15ca978dfb5cc8377 (patch) | |
tree | 142b8d3d07313adc12a161b216cb0f2c84334c23 /include | |
parent | 308d67e77d285cdedb8037bd64c793d5e9724847 (diff) | |
download | u-boot-22df08d82eeb0ffd5aa3b7f15ca978dfb5cc8377.zip u-boot-22df08d82eeb0ffd5aa3b7f15ca978dfb5cc8377.tar.gz u-boot-22df08d82eeb0ffd5aa3b7f15ca978dfb5cc8377.tar.bz2 |
net: ldpaa_eth: extend debug capabilities with DPMAC statistics
The ldpaa_eth driver already had a DPMAC statistics dump, this patch
extends the list of stats and adds a bit more structure to the code.
For a bit more context, the DPAA2 u-boot software architecture uses a
default network interface object - a DPNI - which, at runtime, will get
connected to the currently used DPMAC object.
Each time the .stop() eth callback is called, the DPMAC is destroyed
thus any previous counters will get lost.
As a preparation for the next patches, we add a software kept set of
DPMAC counters which will get updated before each destroy operation
takes place.
Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Reviewed-by: Ramon Fried <rfried.dev@gmail.com>
Signed-off-by: Peng Fan <peng.fan@nxp.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/fsl-mc/fsl_dpmac.h | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/fsl-mc/fsl_dpmac.h b/include/fsl-mc/fsl_dpmac.h index 8f5e17f..1fa26ef 100644 --- a/include/fsl-mc/fsl_dpmac.h +++ b/include/fsl-mc/fsl_dpmac.h @@ -412,6 +412,8 @@ int dpmac_set_link_state(struct fsl_mc_io *mc_io, * @DPMAC_CNT_EGR_ERR_FRAME: counts frame transmitted with an error * @DPMAC_CNT_ING_GOOD_FRAME: counts frame received without error, including * pause frames. + * @DPMAC_CNT_EGR_GOOD_FRAME: counts frames transmitted without error, including + * pause frames. */ enum dpmac_counter { DPMAC_CNT_ING_FRAME_64, @@ -440,7 +442,8 @@ enum dpmac_counter { DPMAC_CNT_EGR_BCAST_FRAME, DPMAC_CNT_EGR_UCAST_FRAME, DPMAC_CNT_EGR_ERR_FRAME, - DPMAC_CNT_ING_GOOD_FRAME + DPMAC_CNT_ING_GOOD_FRAME, + DPMAC_CNT_EGR_GOOD_FRAME, }; /** |