Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1873822yba; Thu, 25 Apr 2019 07:07:36 -0700 (PDT) X-Google-Smtp-Source: APXvYqyuw7S2SGYlT6X0DwfMuPcE6LKviycbMK9jQnfU4T7lCkBFsUJtuZLldNABhKFd0haijCmU X-Received: by 2002:a63:5149:: with SMTP id r9mr21810970pgl.177.1556201256159; Thu, 25 Apr 2019 07:07:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556201256; cv=none; d=google.com; s=arc-20160816; b=TE4GmEyKF8FFv/f3cpFdYMZMJ+fz2bwDwmn7+F7ODTmGoN3kNMwI7lmwEwrG9iVIpi muz0mbg+Z+GQrX3fLanWLSHmSfSS++fxhZKUYP1wTFkpLoQY+m6o54CFIdeBYLQ3hflT 1Xt/NPBVVrXLenQ8Vpeq1KqcYJPwnVz2ATMHaq32O+wDIhXPTh6OcSZOx3oNiejvreU7 2xFniO7BMV83/kgLeE3NqHq0UxIzqcrOJUTYS22vs96ya0pmKY+3sTNW4yBrpRCnPmwa S4C9fIWgiGy0tryRuHRc2G12mY9MsosnyxNwBR+3Sv0dpWWkwH5ZrFIb5DL3JJQx7ovv bSNA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from; bh=2xgASnADcl+S8G/3G/DXWq0FCUqkbdbv2XfU723z7Fk=; b=mezTkippOJjejBdOTmG8uZDt+jPAeyQpLQiEkGzaOAEkaVChgRzqQr900BCLvKKPYz NVjJIC+dLfQJ8U30m+V23taarRCX3Hs7YCo5ywK5WVqOr8IfkiNaw1LHjnM2aTxayyUb S/VrRPsb6iLkVdN5RGOYIivk7+cz6KPmEij1/UDGKqX/6G2L9hnmnEe271++YxD9Kubj /jJ6xLCw94lCM0U7tY28pHaV5YrCptz5McYU2tNQLf7WvM9187o4PCv46LAAK/gQF82r 8RBASYG4aDaX+2Ik1471NzN0NnG8StX1z23RUfocKY2XNKc59I9KmxnmaxNEDPgsy9dN CXuw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id q5si17121762plr.209.2019.04.25.07.07.19; Thu, 25 Apr 2019 07:07:36 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729321AbfDYMpS (ORCPT + 99 others); Thu, 25 Apr 2019 08:45:18 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:6695 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1731396AbfDYMoQ (ORCPT ); Thu, 25 Apr 2019 08:44:16 -0400 Received: from DGGEMS407-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 443398E64BEF5BB26870; Thu, 25 Apr 2019 20:44:14 +0800 (CST) Received: from localhost.localdomain (10.67.212.132) by DGGEMS407-HUB.china.huawei.com (10.3.19.207) with Microsoft SMTP Server id 14.3.439.0; Thu, 25 Apr 2019 20:44:03 +0800 From: Huazhong Tan To: CC: , , , , , , Huazhong Tan , Peng Li Subject: [PATCH V3 net-next 04/11] net: hns3: stop sending keep alive msg when VF command queue needs reinit Date: Thu, 25 Apr 2019 20:42:48 +0800 Message-ID: <1556196175-65389-5-git-send-email-tanhuazhong@huawei.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1556196175-65389-1-git-send-email-tanhuazhong@huawei.com> References: <1556196175-65389-1-git-send-email-tanhuazhong@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.212.132] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org HCLGEVF_STATE_CMD_DISABLE is more suitable than HCLGEVF_STATE_RST_HANDLING to stop sending keep alive msg, since HCLGEVF_STATE_RST_HANDLING only be set when the reset task is running. Fixes: c59a85c07e77 ("net: hns3: stop sending keep alive msg to PF when VF is resetting") Signed-off-by: Huazhong Tan Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c index f9d98f8..7672cab 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3vf/hclgevf_main.c @@ -1758,7 +1758,7 @@ static void hclgevf_keep_alive_task(struct work_struct *work) hdev = container_of(work, struct hclgevf_dev, keep_alive_task); - if (test_bit(HCLGEVF_STATE_RST_HANDLING, &hdev->state)) + if (test_bit(HCLGEVF_STATE_CMD_DISABLE, &hdev->state)) return; ret = hclgevf_send_mbx_msg(hdev, HCLGE_MBX_KEEP_ALIVE, 0, NULL, -- 2.7.4