]> git.ipfire.org Git - thirdparty/linux.git/commit
net: fman_memac: report structured ethtool counters
authorVladimir Oltean <vladimir.oltean@nxp.com>
Sat, 22 Nov 2025 11:59:31 +0000 (13:59 +0200)
committerJakub Kicinski <kuba@kernel.org>
Thu, 27 Nov 2025 02:10:41 +0000 (18:10 -0800)
commit37a96c2009f75d25c33b81edcb016a48e1342846
treebaf1e9561aa812ef549c9958d6a6d65dc52ce6da
parent7241d80e77066dacc2fd7ad5ce29e524548a4940
net: fman_memac: report structured ethtool counters

The FMan driver has support for 2 MACs: mEMAC (newer, present on
Layerscape and PowerPC T series) and dTSEC/TGEC (older, present on
PowerPC P series). I only have handy access to the mEMAC, and this adds
support for MAC counters for those platforms.

MAC counters are necessary for any kind of low-level debugging, and
currently there is no mechanism to dump them.

Signed-off-by: Vladimir Oltean <vladimir.oltean@nxp.com>
Link: https://patch.msgid.link/20251122115931.151719-1-vladimir.oltean@nxp.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
drivers/net/ethernet/freescale/dpaa/dpaa_ethtool.c
drivers/net/ethernet/freescale/fman/fman_memac.c
drivers/net/ethernet/freescale/fman/mac.h