]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit4b2599ff7c996de08c493cc8f445585b124a1420
tree47b3cdc116e5d66d4d7b0db3164f553d85f6045d
parentaf84d58a48f9de4b788647e8ef70a93ad3af262e
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