]> 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)
commitdae8b9165cf32307c1eb353478f9a21303d0be37
tree3535ed6cc78983930aef2365d6983b073e4d46fe
parent19a62e0f1b6946c4cff6c91ed2bc8aed5e50ee8e
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