net: dpaa2-mac: extend APIs related to statistics
authorIoana Ciornei <ioana.ciornei@nxp.com>
Mon, 23 Mar 2026 11:50:37 +0000 (13:50 +0200)
committerPaolo Abeni <pabeni@redhat.com>
Thu, 26 Mar 2026 11:47:28 +0000 (12:47 +0100)
commitfbf3fecf6ae1c9f429c2450f5a10d5640d7c5f9c
tree62f9a06312c0754809de4b3ea8ec9ff46b352a2f
parent8f303194b241c2795bb9b79ee80bc93e7876879c
net: dpaa2-mac: extend APIs related to statistics

Extend the dpmac_counter_id enum with the newly added counters which can
be interrogated through the MC firmware. Also add the
dpmac_get_statistics() API which can be used to retrieve multiple MAC
counters through a single firmware command.

Signed-off-by: Ioana Ciornei <ioana.ciornei@nxp.com>
Link: https://patch.msgid.link/20260323115039.3932600-2-ioana.ciornei@nxp.com
Signed-off-by: Paolo Abeni <pabeni@redhat.com>
drivers/net/ethernet/freescale/dpaa2/dpmac-cmd.h
drivers/net/ethernet/freescale/dpaa2/dpmac.c
drivers/net/ethernet/freescale/dpaa2/dpmac.h