Re: [PATCH net-next 1/4] net: hns3: move dump regs function to a separate file
From: Leon Romanovsky
Date: Tue Aug 15 2023 - 14:26:44 EST
On Tue, Aug 15, 2023 at 02:06:38PM +0800, Jijie Shao wrote:
> The dump register function is being refactored.
> The first step in refactoring is put the dump regs function
> into a separate file.
>
> Signed-off-by: Jijie Shao <shaojijie@xxxxxxxxxx>
> ---
> drivers/net/ethernet/hisilicon/hns3/Makefile | 4 +-
> .../hisilicon/hns3/hns3pf/hclge_debugfs.c | 1 +
> .../hisilicon/hns3/hns3pf/hclge_main.c | 558 +----------------
> .../hisilicon/hns3/hns3pf/hclge_main.h | 2 -
> .../hisilicon/hns3/hns3pf/hclge_regs.c | 567 ++++++++++++++++++
> .../hisilicon/hns3/hns3pf/hclge_regs.h | 17 +
> .../hisilicon/hns3/hns3vf/hclgevf_main.c | 121 +---
> .../hisilicon/hns3/hns3vf/hclgevf_main.h | 1 +
> .../hisilicon/hns3/hns3vf/hclgevf_regs.c | 127 ++++
> .../hisilicon/hns3/hns3vf/hclgevf_regs.h | 13 +
> 10 files changed, 731 insertions(+), 680 deletions(-)
> create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.c
> create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_regs.h
> create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_regs.c
> create mode 100644 drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_regs.h
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>