summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2018-03-21 15:49:21 +0800
committerDavid S. Miller <davem@davemloft.net>2018-03-22 13:12:01 -0400
commit1a426f8b40fca920f15558c9d2fa6efab6921002 (patch)
tree3535ed6cc78983930aef2365d6983b073e4d46fe /drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
parentdd72140ca9fd44c5e3ea3cb6b485f40e6751f5e9 (diff)
downloadlinux-0-day-1a426f8b40fca920f15558c9d2fa6efab6921002.tar.gz
linux-0-day-1a426f8b40fca920f15558c9d2fa6efab6921002.tar.xz
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>
Diffstat (limited to 'drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h')
-rw-r--r--drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
index 7bff6efe3e6d8..edbcb739841ab 100644
--- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
+++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.h
@@ -646,5 +646,6 @@ void hclge_rss_indir_init_cfg(struct hclge_dev *hdev);
void hclge_mbx_handler(struct hclge_dev *hdev);
void hclge_reset_tqp(struct hnae3_handle *handle, u16 queue_id);
+void hclge_reset_vf_queue(struct hclge_vport *vport, u16 queue_id);
int hclge_cfg_flowctrl(struct hclge_dev *hdev);
#endif