aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
diff options
context:
space:
mode:
authorHuazhong Tan <tanhuazhong@huawei.com>2019-08-28 22:23:06 +0800
committerDavid S. Miller <davem@davemloft.net>2019-08-29 16:57:43 -0700
commit6f92bfd70a8ae545bc08941baa55316d8bfba514 (patch)
tree35c55780a189d5156833e3899dc16f7d5cb03472 /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
parentnet: hns3: code optimization for debugfs related to "dump reg" (diff)
downloadlinux-dev-6f92bfd70a8ae545bc08941baa55316d8bfba514.tar.xz
linux-dev-6f92bfd70a8ae545bc08941baa55316d8bfba514.zip
net: hns3: use macro instead of magic number
This patch uses macro to replace some magic number. Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to '')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
index 80e5cc29fc20..38b79321c4c4 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.h
@@ -72,9 +72,10 @@ struct hclge_dbg_reg_common_msg {
enum hclge_opcode_type cmd;
};
+#define HCLGE_DBG_MAX_DFX_MSG_LEN 60
struct hclge_dbg_dfx_message {
int flag;
- char message[60];
+ char message[HCLGE_DBG_MAX_DFX_MSG_LEN];
};
#define HCLGE_DBG_MAC_REG_TYPE_LEN 32