Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp431963imu; Wed, 19 Dec 2018 22:27:54 -0800 (PST) X-Google-Smtp-Source: AFSGD/XZ2MoApG48L1j+exA3aYiN16Xsv8gbDahFCPvfbNVsRLI/0g263eDXyDKpmFQMOPLHSwYY X-Received: by 2002:a63:2054:: with SMTP id r20mr21832280pgm.328.1545287274106; Wed, 19 Dec 2018 22:27:54 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1545287274; cv=none; d=google.com; s=arc-20160816; b=tuwGRFQuZITwy7bvYxI78YLe34bp5rjJvjtf6rTJilglxhdhYUPOD/Qkbw75IG0lOd wI0NiimTpqDh0kBAGR2b4OBzLsW176sP++h1qYAM/XCZ1iMArWER6mqAd/RGI8nNk0Fv 29e58ySg5e2Bt9YbtRX2qWvHZf7UkTdstBrM9TmUHvF4X1Fzem49yQtZipYV2yIRO0ID du35QUGv66G9DJVaN+Ma3psI+2T6TbujUrTmBdTkkayAU6LlQmayXVO18hZN+xjCPaP4 IICEAtZRh2BkS1XMoMujgeHCXj0sVZUCOjDyTg9CEexPcboR3VCWdL90Mx4GWDVWA+LA obaw== 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=DiyVPOGzM1U2zpWFT3v5jjkhwPWFBW7rkLTfauE/R2g=; b=BSZMvsxq+ZmxNIUoVh2aA2OR8tfjxtnPpoFj5/GfWGgbnrqz8oDy55QNsvXKl9I+CO 3Q8jFofDFIIl/HzlbspywEqEHLR+r6iNRIfyQ8KT5RV9HGAhh11IlS4HH3elrqhBOBRX kYmI6dHhYeviRBDgPXmiKegLyw8Q90d9tKw1+66W9SC170rz87395Gx8E7XVKnAPRy5B l3bK4JIAiEL0g7CpR0vlpmMt0JGn3PNJf33gnNcp2XFTa95XreKagxUtVQXSk5qYWgxG qitlpUaC2n3ldjr912dD73bKw1g8pheQvuXOv29iexvj5tOWkv9GFimgjBzJEsN6Vz1a Qt3A== 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 e11si15533075pls.71.2018.12.19.22.27.32; Wed, 19 Dec 2018 22:27:54 -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 S1729723AbeLTDQ2 (ORCPT + 99 others); Wed, 19 Dec 2018 22:16:28 -0500 Received: from szxga07-in.huawei.com ([45.249.212.35]:59698 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728221AbeLTDQX (ORCPT ); Wed, 19 Dec 2018 22:16:23 -0500 Received: from DGGEMS401-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id E19931B250904; Thu, 20 Dec 2018 11:16:19 +0800 (CST) Received: from linux-ioko.site (10.71.200.31) by DGGEMS401-HUB.china.huawei.com (10.3.19.201) with Microsoft SMTP Server id 14.3.408.0; Thu, 20 Dec 2018 11:16:14 +0800 From: Peng Li To: CC: , , , , , Subject: [PATCH net-next 2/9] net: hns3: change default tc state to close Date: Thu, 20 Dec 2018 11:51:59 +0800 Message-ID: <1545277926-66432-3-git-send-email-lipeng321@huawei.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1545277926-66432-1-git-send-email-lipeng321@huawei.com> References: <1545277926-66432-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: Jian Shen In original codes, default tc value is set to the max tc. It's more reasonable to close tc by changing default tc value to 1. Users can enable it with lldp tool when they want to use tc. Signed-off-by: Jian Shen Signed-off-by: Peng Li --- drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index a12cb14..0b04d04 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -960,7 +960,7 @@ static int hclge_configure(struct hclge_dev *hdev) hdev->pfc_max = hdev->tc_max; } - hdev->tm_info.num_tc = hdev->tc_max; + hdev->tm_info.num_tc = 1; /* Currently not support uncontiuous tc */ for (i = 0; i < hdev->tm_info.num_tc; i++) -- 1.9.1