Received: by 10.223.185.116 with SMTP id b49csp5787743wrg; Wed, 7 Mar 2018 18:41:20 -0800 (PST) X-Google-Smtp-Source: AG47ELvQKCmP6uPxN5yueaqWsnhhRdt3K4EmL6CP5srYvcYXoIKZ4POg9B31Z2HnWbMhduUuhqLn X-Received: by 2002:a17:902:7593:: with SMTP id j19-v6mr22352833pll.408.1520476880226; Wed, 07 Mar 2018 18:41:20 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520476880; cv=none; d=google.com; s=arc-20160816; b=bDtsyPiDc/ix9M7xWzSM3+XtbkcrbpAPDQ5R88VDY5j0pHKbjVhKSoDEfzjarxkCwm /D1tU6uv+9M9rgyRECxIduKHckxURXswflW78fEivHdWa7IkzGRwh33tct9CIKWbRVxX 6qUOVya3kLMxXpE/Thsf6bNO6L6gHP88mZXG58mG0+RblUQ+wvVmY1QvMwYBtm4f0czl 9lHUHwhAaJ8liweQL0xC1UzYjSaeCv5LHNwhtntqYcCxv/8Pl3myypXfwhsv/UOO+o5K 4a2Xe8s0oTc0q2VSbxKWgPNCdOlfKQBa6g0kS/oGgRofsyQIOMkExKt9W3yRnWnQonpW 14CQ== 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:arc-authentication-results; bh=JnvwPD1ohIpJKXjyd7st26NwqLPbZOd4SONgz8CHxwU=; b=UjcUEDx9pQjUeaMcQNEhgrFUfN583E9U2Avtx+bV/qhDVnDU8md4Mz/COrC2X3JPHq /X5eyVlmgmHB9GzfmxNoYMcDGGfdaXJS8nNoViHIn6Mqn42vbhqPvro/I1RhjbYpD497 4SNbsEIKpTpC8m75wUO0vKN/936ZGzANIfRqWyR1+ruGqR3AnDD3Gb3EcxOnlN/TR/fZ pi/72vtrjo1MvouwMLf3OsnJi+REqVH6bsvpfKoCczN6A9rbqPoadFx3e2dY+zTvq64g 50QdMFfFBYaPMmEf5eah/Y6QDOmoobZVtu6la9dlS9z/btCIhvBhGmKhOdwMlvSQgyoN 3aag== 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 s16si14934726pfe.375.2018.03.07.18.41.05; Wed, 07 Mar 2018 18:41:20 -0800 (PST) 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 S935072AbeCHCiq (ORCPT + 99 others); Wed, 7 Mar 2018 21:38:46 -0500 Received: from szxga05-in.huawei.com ([45.249.212.191]:5752 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S934801AbeCHCfA (ORCPT ); Wed, 7 Mar 2018 21:35:00 -0500 Received: from DGGEMS408-HUB.china.huawei.com (unknown [172.30.72.59]) by Forcepoint Email with ESMTP id F0E60FF72ECDE; Thu, 8 Mar 2018 10:34:43 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS408-HUB.china.huawei.com (10.3.19.208) with Microsoft SMTP Server id 14.3.361.1; Thu, 8 Mar 2018 10:34:39 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 13/23] {topost} net: hns3: fix for pause configuration lost during reset Date: Thu, 8 Mar 2018 11:06:38 +0800 Message-ID: <1520478408-116992-14-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520478408-116992-1-git-send-email-lipeng321@huawei.com> References: <1520478408-116992-1-git-send-email-lipeng321@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.71.200.31] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Yunsheng Lin Pause configuration will be set to default value by hclge_tm_schd_init during reset, which causes the RSS configuration loss problem. This patch fixes it by calling hclge_tm_init_hw during reset process , which will set the pause configuration to default value. Signed-off-by: Yunsheng Lin Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 1d69470..c0f6939 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -5495,9 +5495,9 @@ static int hclge_reset_ae_dev(struct hnae3_ae_dev *ae_dev) return ret; } - ret = hclge_tm_schd_init(hdev); + ret = hclge_tm_init_hw(hdev); if (ret) { - dev_err(&pdev->dev, "tm schd init fail, ret =%d\n", ret); + dev_err(&pdev->dev, "tm init hw fail, ret =%d\n", ret); return ret; } -- 2.9.3