提交 9e60f195 编写于 作者: H Huazhong Tan 提交者: Yang Yingliang

net: hns3: not reset TQP in the DOWN while VF resetting

mainline inclusion
from mainline-v5.2-rc1
commit 146e92c1
category: feature
bugzilla: NA
CVE: NA

----------------------------

Since the hardware does not handle mailboxes and the hardware
reset include TQP reset, so it is unnecessary to reset TQP
in the hclgevf_ae_stop() while doing VF reset. Also it is
unnecessary to reset the remaining TQP when one reset fails.
Signed-off-by: NHuazhong Tan <tanhuazhong@huawei.com>
Signed-off-by: NPeng Li <lipeng321@huawei.com>
Signed-off-by: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NYonglong Liu <liuyonglong@huawei.com>
Reviewed-by: Nli yongxin <liyongxin1@huawei.com>
Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
上级 8a88d7af
...@@ -2572,7 +2572,7 @@ static void hclgevf_ae_stop(struct hnae3_handle *handle) ...@@ -2572,7 +2572,7 @@ static void hclgevf_ae_stop(struct hnae3_handle *handle)
set_bit(HCLGEVF_STATE_DOWN, &hdev->state); set_bit(HCLGEVF_STATE_DOWN, &hdev->state);
if (!test_bit(HCLGEVF_STATE_RST_HANDLING, &hdev->state)) if (hdev->reset_type != HNAE3_VF_RESET)
hclgevf_reset_tqp(handle); hclgevf_reset_tqp(handle);
hclgevf_reset_tqp_stats(handle); hclgevf_reset_tqp_stats(handle);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册