]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit7f87d086a04f6d4df8e84e9051570b673820d76d
tree263dfafd8b662c79bc1e65fbd3fd53ce876c654f
parent7840b0f2718471a79219531872497aa2ac6711b0
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