]> 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)
commitbbf3bbf0879118c06311b6c06984e3b915f3942c
treefaee1ad4062cb681f358ad1f0299719ab66915f8
parent0d7d7e776f4993521539b8a1f7ad08013f784256
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