linux/drivers/net/ethernet/hisilicon/hns3/hns3vf
Xi Wang 1819e40908 net: hns3: Fix for VF mailbox cannot receiving PF response
When the VF frequently switches the CMDQ interrupt, if the CMDQ_SRC is not
cleared, the VF will not receive the new PF response after the interrupt
is re-enabled, the corresponding log is as follows:

[  317.482222] hns3 0000:00:03.0: VF could not get mbx resp(=0) from PF
in 500 tries
[  317.483137] hns3 0000:00:03.0: VF request to get tqp info from PF
failed -5

This patch fixes this problem by clearing CMDQ_SRC before enabling
interrupt and syncing pending IRQ handlers after disabling interrupt.

Fixes: e2cb1dec97 ("net: hns3: Add HNS3 VF HCL(Hardware Compatibility Layer) Support")
Signed-off-by: Xi Wang <wangxi11@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>
2018-06-06 14:02:48 -04:00
..
hclgevf_cmd.c net: hns3: Changes to support ARQ(Asynchronous Receive Queue) 2018-03-22 15:29:04 -04:00
hclgevf_cmd.h net: hns3: increase the max time for IMP handle command 2018-03-22 13:12:02 -04:00
hclgevf_main.c net: hns3: Fix for VF mailbox cannot receiving PF response 2018-06-06 14:02:48 -04:00
hclgevf_main.h net: hns3: Optimize the VF's process of updating multicast MAC 2018-06-01 14:23:58 -04:00
hclgevf_mbx.c net: hns3: Add *Asserting Reset* mailbox message & handling in VF 2018-03-22 15:29:04 -04:00
Makefile net: hns3: Add HNS3 VF driver to kernel build framework 2017-12-15 10:55:34 -05:00