net: hns3: change the order of reinitializing RoCE and NIC client during reset
authorYufeng Mo <moyufeng@huawei.com>
Wed, 27 May 2020 00:59:15 +0000 (08:59 +0800)
committerDavid S. Miller <davem@davemloft.net>
Wed, 27 May 2020 21:56:08 +0000 (14:56 -0700)
commit60c800c64d8fdd2fc5b8c62686fb08c6a6fb1045
treefaee1ad4062cb681f358ad1f0299719ab66915f8
parent4cd5beaa89a95b331e5586d55469f5569faa18f6
net: hns3: change the order of reinitializing RoCE and NIC client during reset

The HNS RDMA driver will support VF device later, whose
re-initialization should be done after PF's. This patch
changes the order of hclge_reset_prepare_up() and
hclge_notify_roce_client(), so that PF's RoCE client
will be reinitialized before VF's.

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