summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
diff options
context:
space:
mode:
authorPrakash Brahmajyosyula <bprakash@marvell.com>2019-11-14 06:26:20 +0100
committerDavid S. Miller <davem@davemloft.net>2019-11-15 03:09:15 +0100
commitc57211b53682c6681d94137f6733dff3e6ea317e (patch)
tree7853be962b28c08c94cb624ed6661d419952a276 /drivers/net/ethernet/marvell/octeontx2/af/rvu.h
parentocteontx2-af: Add NDC block stats to debugfs. (diff)
downloadlinux-c57211b53682c6681d94137f6733dff3e6ea317e.tar.xz
linux-c57211b53682c6681d94137f6733dff3e6ea317e.zip
octeontx2-af: Add CGX LMAC stats to debugfs
This patch adds CGX LMAC physical interface or serdes Rx/Tx packet stats to debugfs. 'cat cgx<idx>/lmac<idx>/stats' dumps the current interface link status and Rx/Tx stats. Stats include pkt received/transmitted, dropped, pause frames etc etc. Signed-off-by: Prakash Brahmajyosyula <bprakash@marvell.com> Signed-off-by: Linu Cherian <lcherian@marvell.com> Signed-off-by: Sunil Goutham <sgoutham@marvell.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/marvell/octeontx2/af/rvu.h')
-rw-r--r--drivers/net/ethernet/marvell/octeontx2/af/rvu.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
index 269c43fd1f78..2fb871da9308 100644
--- a/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
+++ b/drivers/net/ethernet/marvell/octeontx2/af/rvu.h
@@ -44,6 +44,9 @@ struct dump_ctx {
struct rvu_debugfs {
struct dentry *root;
+ struct dentry *cgx_root;
+ struct dentry *cgx;
+ struct dentry *lmac;
struct dentry *npa;
struct dentry *nix;
struct dump_ctx npa_aura_ctx;