]> git.baikalelectronics.ru Git - kernel.git/commit
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)
committerDavid S. Miller <davem@davemloft.net>
Sun, 20 May 2018 22:53:59 +0000 (18:53 -0400)
commit03cb9186ae56067cf053ed23a950e1d1c43d54e4
tree1ab3ffb1e43109372081dc1ead498a5718ed76a3
parent88bcbdda4ab464f08466d61a4f48bd0ae69a3f8a
net: hns3: Fix for CMDQ and Misc. interrupt init order problem

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: 8d24118d4958 ("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>
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c