]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: add function display NCL_CONFIG info
authorYufeng Mo <moyufeng@huawei.com>
Fri, 9 Aug 2019 02:31:15 +0000 (10:31 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 9 Aug 2019 20:44:33 +0000 (13:44 -0700)
commit403f1e048d533051cc258e401c9b98470672ae18
tree625f4595da800ef250171f2a9cc4a01973657e82
parent3eef6813432bbfbed201e593e366e25d4c56839d
net: hns3: add function display NCL_CONFIG info

This adds a new function hclge_ncl_config_data_print()
to print the data of NCL_CONFIG, to make the code more
readable. Also, using macro replaces some magic number.

Signed-off-by: Yufeng Mo <moyufeng@huawei.com>
Reviewed-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_debugfs.c