net: hns3: split function hclge_reset_rebuild()
authorYufeng Mo <moyufeng@huawei.com>
Fri, 26 Mar 2021 01:36:27 +0000 (09:36 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Mar 2021 21:58:44 +0000 (14:58 -0700)
commit74d439b74ad3e05780d4cf3ab047345b443f7e67
tree0e13a552179c963c163585899453085e3269ef38
parentf7be24f00702cf07d025c79ab30a15f7d7db5cac
net: hns3: split function hclge_reset_rebuild()

hclge_reset_rebuild() is a bit too long. So add a new function
hclge_update_reset_level() to improve readability.

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>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c