net: enetc: parameterize port MAC stats to also cover the pMAC
authorVladimir Oltean <vladimir.oltean@nxp.com>
Fri, 9 Sep 2022 11:37:59 +0000 (14:37 +0300)
committerJakub Kicinski <kuba@kernel.org>
Tue, 20 Sep 2022 00:58:25 +0000 (17:58 -0700)
commite2bd065c3b22343083850b240425d300577fa531
tree47b3cdc116e5d66d4d7b0db3164f553d85f6045d
parent949f252a8594a860007e7035a0cb1c19a4e218b0
net: enetc: parameterize port MAC stats to also cover the pMAC

The ENETC has counters for the eMAC and for the pMAC exactly 0x1000
apart from each other. The driver only contains definitions for PM0,
the eMAC.

Rather than duplicating everything for PM1, modify the register
definitions such that they take the MAC as argument.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Reviewed-by: Claudiu Manoil <claudiu.manoil@nxp.com>
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/enetc/enetc_ethtool.c
drivers/net/ethernet/freescale/enetc/enetc_hw.h