]> git.baikalelectronics.ru Git - kernel.git/commit
net: hns3: fix the VF queue reset flow error
authorPeng Li <lipeng321@huawei.com>
Wed, 21 Mar 2018 07:49:21 +0000 (15:49 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 22 Mar 2018 17:12:01 +0000 (13:12 -0400)
commit3e43705295b92632cf4ebad7b93dca2d585fde0c
tree3535ed6cc78983930aef2365d6983b073e4d46fe
parent6af686116dcbbcc4591ee1616bfb6689aacd6c79
net: hns3: fix the VF queue reset flow error

VF queue reset flow is different from PF queue reset flow.
VF driver should stop VF queue first, then send message to PF
and PF do the reset. PF should send a response to VF after
PF complete the queue reset, VF can initialize the queue hw
after get the response.
This patch fixes the VF queue reset flow as the correct step.

Signed-off-by: Peng Li <lipeng321@huawei.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_mbx.c
drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c