]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit340d5988609651bdaad6d6638d0b28afd1e016f7
treefaee1ad4062cb681f358ad1f0299719ab66915f8
parentfd5f86ace3fd0af793084753d502767373e6aeee
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