Received: by 2002:ab2:7407:0:b0:1f4:b336:87c4 with SMTP id e7csp275867lqn; Fri, 12 Apr 2024 00:32:22 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCV20FeL72aK0eeCXKgQnRCVoUwolfMul4XeRg9ESIkyZAlViCSaf84D+xD2N6G89WQvD+wjfyxhogWX1J3NjotCCegKYEfzuLQQxxk1rg== X-Google-Smtp-Source: AGHT+IGVulme/5p/v/L8C5itVtdjtaq4/qCmbYE2FUMLuIzv5IKrJ1Jw27JglKhzoPRGT0jTbohi X-Received: by 2002:a17:90a:17c7:b0:2a5:decc:47e5 with SMTP id q65-20020a17090a17c700b002a5decc47e5mr1846004pja.38.1712907142441; Fri, 12 Apr 2024 00:32:22 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712907142; cv=pass; d=google.com; s=arc-20160816; b=fdnxGFbIut3+3xKpsjXjn7uQDhTqhS6vp4nVJ3fwKvEtZUVyNm+axI7D2DQRFpzdXc y60wmyvP/Fr9fDjTqEuigspQ3c8Z8AWZUb5hnbfijCNGi+gPTe9OoDXhI0Jg2AM+KBeb bEaFuf7qWelUI7waVP4KdZZ8Ze/HhdaU5VlPE7mzgYpkgEOFFeqBgktd0+Jbc5cF4Enz 8UNkcj+GtjvpWHK63Nix3Io973Ci/NfKXohUhVwIw9h28wgxYPFlzxi2EWkqSwpD8o7r QglKWeDMihlo7r361OAbdyhcBeGxaq0KsDWHbpFz/hm69mmMXgIENyiH1mVxRdLFSy/Y 7oVw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:to:subject:cc :user-agent:mime-version:list-unsubscribe:list-subscribe:list-id :precedence:date:message-id; bh=6uGOXWnggJiO4UjHMyVTj9KmdEDHYlW2Tti7oo6W/QU=; fh=tCmSCGkM+V+jblJ53CaXRnrjSHhiCgnks+wbmR949q0=; b=CzEOkcXY9K7XDQAUiHdr9QAChk05oGkcM6zqMdi/6um15IW8PopNHTyc0D/hL5Qush 4r4W1B9Xh+I0j9DLqhtL6EI7kYPJ68k8X1FT5X8RtRNehiJYuk+eyF7sHz1hXhpDYtbY 6kY4bUQUERTGuD3IRrBH7Y3Y6jZc3A300RXVB25TNJTkJFvt/xrQ9odv/RdtqHT8bE7n eHZ/6OLSyoe7Dz9K8McORx2NQgbS0pAEjQubbp3/9pyN+HB4zmoZjjCQy33VC76p3ek6 1NN5FZhClVGAJuEFcJaGkIKvsoe8UVcjWuUuMuZ3Pe878yxWdrH4ivYh247LxY9NFllq rfZQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-142116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [2604:1380:40f1:3f00::1]) by mx.google.com with ESMTPS id ot1-20020a17090b3b4100b002a280773045si2945974pjb.91.2024.04.12.00.32.21 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 00:32:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) client-ip=2604:1380:40f1:3f00::1; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=huawei.com dmarc=pass fromdomain=huawei.com); spf=pass (google.com: domain of linux-kernel+bounces-142116-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:40f1:3f00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142116-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 3C04FB27EAB for ; Fri, 12 Apr 2024 07:12:36 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 0F1CB487BE; Fri, 12 Apr 2024 07:12:27 +0000 (UTC) Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 9729633997; Fri, 12 Apr 2024 07:12:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.188 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712905946; cv=none; b=QSZAb2ykXR6QE+IDFEM5ewKLrkwB1S3Q+65oup38//AgKNPL2wE4Lq+HwCcTbV00mzxHC+o4QEngfe01gXnsT9kFS8w0QMLNnTip6MsLgq7XCkRAXMCLwRxu4e/Vvn4jr6sX322iCs82ZUZc/F77Wn++inb9nIAghgN8/zrkX14= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712905946; c=relaxed/simple; bh=mgfUy8S85yOwuUy3mNJ61fEIgLxYugY92FiHdSZiToA=; h=Message-ID:Date:MIME-Version:CC:Subject:To:References:From: In-Reply-To:Content-Type; b=jrDlEWhb8o7Yf3oKfyKS0smSkQqo4MSGyTaO9sxAfRDRvFDPbRQyH6+v92apvbblMZ6hiRk10zLTAbycPockbQgNFtT+F0BfK66Z5Q3M6C76+AxnSOd1roBvZy5SeFERyecLrxlQPb0lPr7ixfpWeu8vcqP4kWdYABwV+WzxKe4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com; spf=pass smtp.mailfrom=huawei.com; arc=none smtp.client-ip=45.249.212.188 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=quarantine dis=none) header.from=huawei.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=huawei.com Received: from mail.maildlp.com (unknown [172.19.163.48]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4VG7383z7xzTmPZ; Fri, 12 Apr 2024 15:09:08 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 92DD9180073; Fri, 12 Apr 2024 15:12:19 +0800 (CST) Received: from [10.67.120.192] (10.67.120.192) by kwepemm600007.china.huawei.com (7.193.23.208) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.1.2507.35; Fri, 12 Apr 2024 15:12:18 +0800 Message-ID: <5e9abc23-96c8-4a37-abae-f6c208aacda2@huawei.com> Date: Fri, 12 Apr 2024 15:12:17 +0800 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird CC: , , , , , , , , , , , , , , Subject: Re: [PATCH V7 net-next 4/4] net: hns3: add support to query scc version by devlink info To: Jiri Pirko References: <20240410125354.2177067-1-shaojijie@huawei.com> <20240410125354.2177067-5-shaojijie@huawei.com> <16347737-f0ac-4710-85ee-189abed59d6b@huawei.com> From: Jijie Shao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemm600007.china.huawei.com (7.193.23.208) on 2024/4/11 14:23, Jiri Pirko wrote: > Thu, Apr 11, 2024 at 03:05:53AM CEST, shaojijie@huawei.com wrote: >> on 2024/4/10 22:59, Jiri Pirko wrote: >>> Wed, Apr 10, 2024 at 02:53:54PM CEST, shaojijie@huawei.com wrote: >>>> From: Hao Chen >>>> >>>> Add support to query scc version by devlink info for device V3. >>>> >>>> Signed-off-by: Hao Chen >>>> Signed-off-by: Jijie Shao >>>> --- >>>> Documentation/networking/devlink/hns3.rst | 3 ++ >>>> drivers/net/ethernet/hisilicon/hns3/hnae3.h | 9 ++++ >>>> .../hns3/hns3_common/hclge_comm_cmd.h | 8 ++++ >>>> .../hisilicon/hns3/hns3pf/hclge_devlink.c | 44 +++++++++++++++++-- >>>> .../hisilicon/hns3/hns3pf/hclge_devlink.h | 2 + >>>> .../hisilicon/hns3/hns3pf/hclge_main.c | 18 ++++++++ >>>> .../hisilicon/hns3/hns3pf/hclge_main.h | 1 + >>>> 7 files changed, 82 insertions(+), 3 deletions(-) >>>> >>>> diff --git a/Documentation/networking/devlink/hns3.rst b/Documentation/networking/devlink/hns3.rst >>>> index 4562a6e4782f..e19dea8ef924 100644 >>>> --- a/Documentation/networking/devlink/hns3.rst >>>> +++ b/Documentation/networking/devlink/hns3.rst >>>> @@ -23,3 +23,6 @@ The ``hns3`` driver reports the following versions >>>> * - ``fw`` >>>> - running >>>> - Used to represent the firmware version. >>>> + * - ``fw.scc`` >>> What's scc? I don't see it described anywhere. >> diff --git a/Documentation/networking/devlink/hns3.rst b/Documentation/networking/devlink/hns3.rst >> index 4562a6e4782f..e19dea8ef924 100644 >> --- a/Documentation/networking/devlink/hns3.rst >> +++ b/Documentation/networking/devlink/hns3.rst >> @@ -23,3 +23,6 @@ The ``hns3`` driver reports the following versions >> * - ``fw`` >> - running >> - Used to represent the firmware version. >> + * - ``fw.scc`` >> + - running >> + - Used to represent the soft congestion control firmware version. >> >> scc means "soft congestion control" > I guess this is something specific to your device, isn't it? Can't you > please extend the description a bit more? > > Thanks! > SCC is a firmware which provides multiple congestion control algorithms, including dcqcn. Congestion control is a mechanism that controls the entry of rdma packets into the network, enabling a better use of a shared network infrastructure and avoiding congestive collapse. Jijie Shao