]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: refactor the notification scheme of PF reset
authorHuazhong Tan <tanhuazhong@huawei.com>
Sat, 11 Jan 2020 08:33:53 +0000 (16:33 +0800)
committerDavid S. Miller <davem@davemloft.net>
Sat, 11 Jan 2020 22:52:23 +0000 (14:52 -0800)
commit25603b1809e0469c60f646edf21e5069be2e176c
treef47a32c92e8b6cfd3e4440c579ad07ec220f69c4
parentae905e97e237bc727dfd88a695b7a10bd0f74dde
net: hns3: refactor the notification scheme of PF reset

hclge_reset_prepare_down() is only used to inform VF that PF is
going to do function reset, then using hclge_func_reset_sync_vf()
in hclge_reset_prepare_wait() to query whether VF is ready before
asserting PF function reset. To make the code more readable,
this patch uses a new function hclge_function_reset_notify_vf()
to do this job.

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