Received: by 10.223.185.82 with SMTP id b18csp15571wrg; Thu, 8 Mar 2018 18:09:58 -0800 (PST) X-Google-Smtp-Source: AG47ELs0LU7V0Sh7+figCu0yt160d5M9kmbreamKJePr3a5Z/JIBtfd/v3dg3j575BdS6xFEzJf/ X-Received: by 2002:a17:902:b10c:: with SMTP id q12-v6mr9386704plr.197.1520561398124; Thu, 08 Mar 2018 18:09:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1520561398; cv=none; d=google.com; s=arc-20160816; b=CpzQI0R+2sntyHpx2PiUmhi45j1h/NrByfIL6niIL3iLZh7a9ao12ybN66VcmykAVp Mq/rJF49NWey95N52kLrH6WM6pK7SdKVo1GxPmtX6CQAYrbqwPbzrvpU3O3Fc6HYEmUd jPeIsM57ONL/RglZVp/YVJMboNnbLimOxcSnCVWqp7wTfHkZrq0N01cBMzj/PKxZ7Oiv qqCPOe9IhXP9fUaRttXJ31kCr5IrL19COvtlflEa8wsKenRKgsx1cGTPR6++GiW0mWy4 xmdrH1ASWjfX+YM/FTnflLQAGsDpe4s63f640rfN5RhDfUBmg3PLH4G8zf7RWn3ghPbC RrmQ== 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=AyNKbadB4oc5cxh0AUQ8MTZuluiOHZh3/i/DS4rA8rI=; b=KoDoGE4Ex3SC1KXCETniK22MN6IFOFE3y8XPRkb0kze1FGd9n2Gy+uKLTalxaHpghP CDwGWLXDkf2wyK0Nhj8DDx7J/kwPNusOzpFgaO4I0m70mi7txlAN87zqUshlmJMWUufn V44KOn0NYxPHbiUuNJUw68R1WF16nNdr+vDxBQTN3nRSKBC+BLRUsRiRiG4zrSTA5r4T NNhqzgf6tUvtkwIlQS7QkPFicYRynxH3A657GXM2qSUNzBJ4YwIvpR2iNNW83YqEc8ND fLNq58/lHIgZab2oBdOuXpmXkjtTuJLzlIKvyb8Uc6j1LBVmy9k6uj5tSWpbJqj6oWlA Ek0g== 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 q9si2909pfk.124.2018.03.08.18.09.44; Thu, 08 Mar 2018 18:09:58 -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 S1751086AbeCICFD (ORCPT + 99 others); Thu, 8 Mar 2018 21:05:03 -0500 Received: from szxga06-in.huawei.com ([45.249.212.32]:38056 "EHLO huawei.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S1750904AbeCICFC (ORCPT ); Thu, 8 Mar 2018 21:05:02 -0500 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id B96F756FC139E; Fri, 9 Mar 2018 10:04:49 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Fri, 9 Mar 2018 10:04:43 +0800 From: Peng Li To: CC: , , , , Subject: [PATCH net-next 4/9] net: hns3: fix for pause configuration lost during reset Date: Fri, 9 Mar 2018 10:36:59 +0800 Message-ID: <1520563024-94811-5-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1520563024-94811-1-git-send-email-lipeng321@huawei.com> References: <1520563024-94811-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 34a0905..109155d 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -5493,9 +5493,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