octeontx2-pf: CN10K: Hide RPM stats over ethtool
authorHariprasad Kelam <hkelam@marvell.com>
Wed, 15 Sep 2021 15:59:46 +0000 (21:29 +0530)
committerDavid S. Miller <davem@davemloft.net>
Thu, 16 Sep 2021 13:31:05 +0000 (14:31 +0100)
commit63f85c401ebaa62094c373c780d4051a84608ac3
tree263dfafd8b662c79bc1e65fbd3fd53ce876c654f
parent52583c8d8b12f232bd1128de9f5895bcdad7d7a3
octeontx2-pf: CN10K: Hide RPM stats over ethtool

CN10K MAC block (RPM) differs in number of stats compared to Octeontx2
MAC block (CGX). RPM supports stats for each class of PFC and error
packets etc. It would be difficult for user to read stats from ethtool
and map to their definition.

New debugfs file is already added to read RPM stats along with their
definition. This patch adds proper checks such that RPM stats will not
be part of ethtool.

Signed-off-by: Hariprasad Kelam <hkelam@marvell.com>
Signed-off-by: Sunil Goutham <sgoutham@marvell.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/marvell/octeontx2/nic/otx2_common.h
drivers/net/ethernet/marvell/octeontx2/nic/otx2_ethtool.c