net: hns3: Fix for CMDQ and Misc. interrupt init order problem
authorYunsheng Lin <linyunsheng@huawei.com>
Sat, 19 May 2018 15:53:23 +0000 (16:53 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Aug 2018 05:47:47 +0000 (07:47 +0200)
commit2cfbedaf65e12ef8e4157eb5cc0829e683eb52a0
tree3a58af9f518a24b9b60fed07e3f096464439452d
parent4f8d490da5bd9d3dc5a8e8de07ba25e2ab13488c
net: hns3: Fix for CMDQ and Misc. interrupt init order problem

[ Upstream commit eddf04626d1d6d0bcd01ac6a287e49f5ddb90a26 ]

When vf module is loading, the cmd queue initialization should
happen before misc interrupt initialization, otherwise the misc
interrupt handle will cause using uninitialized cmd queue problem.
There is also the same issue when vf module is unloading.

This patch fixes it by adjusting the location of some function.

Fixes: e2cb1dec9779 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Yunsheng Lin <linyunsheng@huawei.com>
Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: Salil Mehta <salil.mehta@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c