aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hnae3.h
diff options
context:
space:
mode:
authorYufeng Mo <moyufeng@huawei.com>2021-05-14 11:25:16 +0800
committerDavid S. Miller <davem@davemloft.net>2021-05-14 15:07:34 -0700
commitd658ff34dd7ff9ccf13c59a7c464b55ca122977d (patch)
treea0e536b59e7ca73adeed315cb868873bfbc9d461 /drivers/net/ethernet/hisilicon/hns3/hnae3.h
parentnet: hns3: refactor dump mng tbl of debugfs (diff)
downloadlinux-dev-d658ff34dd7ff9ccf13c59a7c464b55ca122977d.tar.xz
linux-dev-d658ff34dd7ff9ccf13c59a7c464b55ca122977d.zip
net: hns3: refactor dump loopback of debugfs
Currently, the debugfs command for loopback is implemented by "echo xxxx > cmd", and record the information in dmesg. It's unnecessary and heavy. To improve it, create a single file "loopback" for it, and query it by command "cat loopback", return the result to userspace, rather than record in dmesg. The display style is below: $ cat loopback mac id: 0 app loopback: off serdes serial loopback: off serdes parallel loopback: off Signed-off-by: Yufeng Mo <moyufeng@huawei.com> Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hnae3.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hnae3.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hnae3.h b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
index a2033cb19b3d..0a78ce221336 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hnae3.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hnae3.h
@@ -260,6 +260,7 @@ enum hnae3_dbg_cmd {
HNAE3_DBG_CMD_MAC_UC,
HNAE3_DBG_CMD_MAC_MC,
HNAE3_DBG_CMD_MNG_TBL,
+ HNAE3_DBG_CMD_LOOPBACK,
HNAE3_DBG_CMD_UNKNOWN,
};