]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: split hclgevf_reset() into preparing and rebuilding part
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 11 Jan 2020 08:33:48 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jan 2020 22:52:22 +0000 (14:52 -0800)
commit4487614c91a1157f0beb3cedd85f9b69cee5f0c9
tree08016799694b54e278277f41fb7a7d43c4284394
parente7e99babfb684421a3490452b1d67b9e28c8a019
net: hns3: split hclgevf_reset() into preparing and rebuilding part

hclgevf_reset() is a little bloated, and the process of VF FLR will
be separated from the reset task later. So this patch splits
hclgevf_reset() into hclgevf_reset_prepare() and hclge_reset_rebuild(),
then FLR can also reuse these two functions. Also moves HNAE3_UP_CLIENT
into hclgevf_reset_stack().

Signed-off-by: Huazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c