Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp113812lqg; Wed, 10 Apr 2024 18:06:30 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWhGM1jApKxv7dwEN5EvFLC26RUjfX1M92vELEjS24x/f5hiQfvz9GvGrhAA2HsKVj3JN94M6eWT1PH/Td/L2d9u+6DE2cz9ZNWLkoC5Q== X-Google-Smtp-Source: AGHT+IFdk9EXMWWCO4ljiPKmvb5GEe/Q6bkjz1OezJskNKepPWqXw84l927D9SmRdw/ToY6EZEFS X-Received: by 2002:a05:6808:178f:b0:3c5:fdc0:52e with SMTP id bg15-20020a056808178f00b003c5fdc0052emr5276913oib.42.1712797590501; Wed, 10 Apr 2024 18:06:30 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712797590; cv=pass; d=google.com; s=arc-20160816; b=eq+/7PTgq7MDC7cywXNt4JRtVeMT4oLDVl4cQy80Gex+ac2z9gzwfRqdYPQUp8R2hY 3thKobMslK3dwpfR6e6+uc9FRpONspZ55HZLdCe6Dvlv7qwkoGYGCzz3H7EDULN1SXp4 IZ+V2/ifUfKPhkGvDRfMnEm8UihTf+9uMvxaksaCO+7sRmPZyAgqP6ZP7LA/vl91sInv 0rzOvOAKOReLuhq+rntz9HO/WlWhtZBy8UzIJa6pnMaRrW4GvWd2drIesJLxJu/PbnZv Pr4CVbWLox3GRLFtRjuGTeoYR2YXYdGwUoqWo+wVNQfpLFUMsR15XOlthMnpLAimCm3a ehGQ== 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=86e86wy5kXHYpgDfG1JdFaPS+1rD60HWlpCpsJkt7cc=; fh=tCmSCGkM+V+jblJ53CaXRnrjSHhiCgnks+wbmR949q0=; b=aEeYM4hPfDyuFnuK/o6at9I4eGgjmskDgjsGKF2ZQRj+6txEbTGniWu5gvRXqOq5i6 mbFTJYwwDwOwhVdYe1mpep07YlaZ1lH62XlypCsJ8Ah+jxOKn5chliY0p3+vzT6asEfU o0vqbSiSEXGPvTQO7UcsE6IbJfU/yfLx9k1YGpiDGOJ8JOnX0hW57McWb/GJ47aS8cD/ vXqI0F54mzNi30h+9AxJwwEN7TW0l5qVwvS90rNgS8NG6uSYmazhuseHNY9Ogm1pu10w mmaxHiTmbq3dJt4elKuKjkY0Cu73Lp8dTtjzCPrBkZAXxDhFTrsqgG5mOWk9zYMxEHuP p7DA==; 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-139609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139609-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id p21-20020a05620a057500b0078ebdc8ab75si483664qkp.623.2024.04.10.18.06.30 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 18:06:30 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; 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-139609-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139609-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 19CAD1C221C0 for ; Thu, 11 Apr 2024 01:06:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 894D9612EB; Thu, 11 Apr 2024 01:06:00 +0000 (UTC) Received: from szxga08-in.huawei.com (szxga08-in.huawei.com [45.249.212.255]) (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 EFC8460DCF; Thu, 11 Apr 2024 01:05:57 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=45.249.212.255 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712797560; cv=none; b=UWHfVtO0a6w52IYKzqnZJpuJud710/B07cwWF0S6YRBkKKw8AZpoGLqV+qut3e284PFW7XwNSFQ2e85E3I65tbk4t1ID0R16OIOix3hX2rvQgOPGwr0uGmSqDB3C4bgzU5pXjNdeJhMUOcgxdVdOSx63yOea0DZsUqfkXOJ/LNo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712797560; c=relaxed/simple; bh=SKcWXd9G9NkbxA74hLki2oajbTrX9Hro54JIkBOU/Cg=; h=Message-ID:Date:MIME-Version:CC:Subject:To:References:From: In-Reply-To:Content-Type; b=GQ70bsfzx2EoMmsqZeG1+zrwH8BdmUnUB4dRPCAV73ljRkB6ZhlwP3V5wGRl/m3IQUKw4QVt2mWygkry21ljqHaBceUGNixeDeP5qkxCvKjAxV6aGqWt4KuMy4CpZ0pkldWP9IZlh+XdHfbzlHoDZerounajuiipwtQsvlODg0o= 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.255 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.174]) by szxga08-in.huawei.com (SkyGuard) with ESMTP id 4VFLzM003Yz1R5Sd; Thu, 11 Apr 2024 09:03:10 +0800 (CST) Received: from kwepemm600007.china.huawei.com (unknown [7.193.23.208]) by mail.maildlp.com (Postfix) with ESMTPS id 0B244140414; Thu, 11 Apr 2024 09:05:55 +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; Thu, 11 Apr 2024 09:05:54 +0800 Message-ID: <16347737-f0ac-4710-85ee-189abed59d6b@huawei.com> Date: Thu, 11 Apr 2024 09:05:53 +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> From: Jijie Shao In-Reply-To: Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-ClientProxiedBy: dggems703-chm.china.huawei.com (10.3.19.180) To kwepemm600007.china.huawei.com (7.193.23.208) 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"