Received: by 2002:ab2:1347:0:b0:1f4:ac9d:b246 with SMTP id g7csp209000lqg; Wed, 10 Apr 2024 23:24:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCWKO3JnBHlVfhFPt12qzVlCz13Oon5Q451Da3MbAbvcUjPoCFbDVmfrb6ntTf6BNRXJYFy0nKczFtLby9Ld9g5cwc7X1Gy4MqZ8sPmjYQ== X-Google-Smtp-Source: AGHT+IEDxOyaGIATZYhOn8TNBOX/2rFa7nNw9/ReWwdEeU+KEzkbDtpZRVpM/FlMzcwkB0ozzsNG X-Received: by 2002:a50:ab18:0:b0:56d:c4eb:6328 with SMTP id s24-20020a50ab18000000b0056dc4eb6328mr2939496edc.29.1712816647042; Wed, 10 Apr 2024 23:24:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712816647; cv=pass; d=google.com; s=arc-20160816; b=V4uuKvm60ieGiv4QCh8rCWP510STgd4YIuz+YZ/J9N1Rhct7g3YarxJmBtcCZr7REe oA2R1++DqNApAcBl2d3pfKHYkNyGdPSJHZOrX44u8T9ANsPLjtebcKHVJxgw69Jk8ZLO NVy8QWGyNAF6hrCpPVnR9s/HTHV27guLJZVGe9JUU5jRfkUSfN4gukIzDpFLZ2yOhiVY rk2V/qRdGEOGIsQV4Bsu0HPxrmGLQgUxEbZen7J090zNfx1wIZrTYT6ORB7+uzwvT7oz zmMi3Yob0GB9yKvmkgrHSIPs1dYLa6wOC0963lcz0EsuuaFETSQvnwToMUJY0SqF1oV9 padw== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=5lZTFJACV3+JbwVwRwvE8FlPJbh+9wi0aUKAYU88cAc=; fh=G2tr2QgC3B8lMRjhKlJEvFY+8YnAZvZdoHanMd/Dooo=; b=yEgaDYPV9O3LPTgJANhL2qOO4F4j91HcrYp/3lo/oAKvCF3wDz5rPL9RfaJSujjV68 PJsctXFlwPL36UGY+dKlHuhLfFIYqjYbdnYrl6Gq27I4UFOlyrJ9u/owTSoB9sZjDc+E EleMNFR0d4i1OemMPyl3WABXC0ufbg9DSepbaIGeg5yzQcJ03eMOV0D0MW3H/Maxc/4W TJAQTYEJX697f76pXQybVHuw+annMaSqAsz1cfarX/ftJTI5VgpNnTalz+Oz6C1txxFX Fn3FDDx9/ctn7xEojtf+/n7vIAITvlsOgq54+2SNlaLsmytOYXkzmmRZDqnvX2RkOmPg uFvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=T6mAtzEW; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-139850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139850-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id v2-20020a056402348200b0056e3d694297si430078edc.229.2024.04.10.23.24.06 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 23:24:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-139850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass header.i=@resnulli-us.20230601.gappssmtp.com header.s=20230601 header.b=T6mAtzEW; arc=pass (i=1 dkim=pass dkdomain=resnulli-us.20230601.gappssmtp.com); spf=pass (google.com: domain of linux-kernel+bounces-139850-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-139850-linux.lists.archive=gmail.com@vger.kernel.org" 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 am.mirrors.kernel.org (Postfix) with ESMTPS id 9CDA21F22B95 for ; Thu, 11 Apr 2024 06:24:06 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id D9BF313CFB0; Thu, 11 Apr 2024 06:23:42 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b="T6mAtzEW" Received: from mail-lj1-f176.google.com (mail-lj1-f176.google.com [209.85.208.176]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C213F13BAD2 for ; Thu, 11 Apr 2024 06:23:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.176 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712816622; cv=none; b=qzxaeN/8NdZg99s1rtARciGZqM90BZVl+/NNjtEUe2q3zuTS21cteCtddENrl7QNWLJshUGeLhMAGTEOtOJihJ/sE7VS3gcLgm6cNPA5WaLCeIYLYEpkRYyrwJaE5C7rxzRaguNzrez6NBi0XjVYeohzYeLM7W79jxnHTnYVx0g= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712816622; c=relaxed/simple; bh=pTWLQpW9RVU2IjRukXzUGYvxyE+olS3ZH5i76ahO8P4=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=mg2pVJWc7D16iF6sCLbs1z/dsbNrsQjZms+44FCg1DehUIFJpMBicu7h0/rnenU3NBhhfcorhNj45RETNkTC0a5mOhEHtmDB0brtJ3pJSkksYBMCInggYK4Rj8HOYQrRiFaK6JkjVVm+Z96vvtalX+zrYJNWP1eI6jT+jG6Gtk0= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us; spf=none smtp.mailfrom=resnulli.us; dkim=pass (2048-bit key) header.d=resnulli-us.20230601.gappssmtp.com header.i=@resnulli-us.20230601.gappssmtp.com header.b=T6mAtzEW; arc=none smtp.client-ip=209.85.208.176 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=resnulli.us Authentication-Results: smtp.subspace.kernel.org; spf=none smtp.mailfrom=resnulli.us Received: by mail-lj1-f176.google.com with SMTP id 38308e7fff4ca-2d094bc2244so80529071fa.1 for ; Wed, 10 Apr 2024 23:23:39 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=resnulli-us.20230601.gappssmtp.com; s=20230601; t=1712816617; x=1713421417; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=5lZTFJACV3+JbwVwRwvE8FlPJbh+9wi0aUKAYU88cAc=; b=T6mAtzEWsvSFJVelBAO7GMLtShyCwYgw93Sd4XzMlA7pTPehBzOzvgGmGoujqOsfaY DcXLdd5Xp/rVL0SfK2aJjjtyxFFXDkV/77t6VqrpFXzgQ9lgkE0Czj18Mh1Ky+lsMHaC Ps03teF3bWvkeoWB6c5dzJVHbif5V5xg9i3b+v+EJUcKIo8f1bKQMAoeqFT8Gs16hT43 6aqQIsmm3I5/fV1PnSMWFV3d0SUVeU9fKcCsr4/DEGl4EyebTqInsDJC8xIpVuvkb4PX QTkx7ppU71r8Z/zTyl+TP6tcEsyvIZgzm9lfcJ/ANh0jAVg5ZbzOT2cSe1JCGJ/udZKJ 1Yvw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712816617; x=1713421417; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=5lZTFJACV3+JbwVwRwvE8FlPJbh+9wi0aUKAYU88cAc=; b=b2+ow9+d1hRQZhwrSYY81nuuAB/nmuWMwHf4+IhIndF0cnCxOwo1N8gVjrl8zQBdgd 7j+20DAX4skLBMgVGQHzLoeoroWFsJxdXvoVdQnJD4PTlTZ/ps20BwbwQWLO0fgAHkdH xiW6kZcNXvPZQ2XIxF1VZ7niLDf1EnZUMHa0eZfskmIoEf9gklPL6ahFt1HXq1/EazgG g6HmXMtUeBYY9+A8hPcpEZU2nRuylgSPV5bBuEuQKgZglxNWda03iBGrQYCuRUtQSKl0 MhnP8qYofsVKhMqaIwXtUNTZWP8OTzsFGb07k425eTBQlwk3AFBlSDsCJNp2myqcQ4lm qC3w== X-Forwarded-Encrypted: i=1; AJvYcCUL89JgDNjRv5ruZQjOz5ZOy1Crbgng2BPQrmNi062KqHHCzwWCqcg46tBQMU+wth2iRubw9Kkycox8vDeqUxPB9m8P7/PT9Q/vbSIe X-Gm-Message-State: AOJu0YwZwdeSl99rhCOzbbYGeqlAm0+XiZO8hP51X9gUuNlZNEcAtYsb 6xpqwn2PldpZ2EXISOuUrBjUO62Zz/+hlxN8Tgmng4FMQSPcruQm1UTqN+A3mUA= X-Received: by 2002:a2e:a413:0:b0:2d6:a5f6:c8d3 with SMTP id p19-20020a2ea413000000b002d6a5f6c8d3mr2822772ljn.27.1712816617380; Wed, 10 Apr 2024 23:23:37 -0700 (PDT) Received: from localhost (host-213-179-129-39.customer.m-online.net. [213.179.129.39]) by smtp.gmail.com with ESMTPSA id n39-20020a05600c502700b00417e3695371sm70793wmr.33.2024.04.10.23.23.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 10 Apr 2024 23:23:36 -0700 (PDT) Date: Thu, 11 Apr 2024 08:23:35 +0200 From: Jiri Pirko To: Jijie Shao Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, horms@kernel.org, rkannoth@marvell.com, shenjian15@huawei.com, wangjie125@huawei.com, liuyonglong@huawei.com, chenhao418@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH V7 net-next 4/4] net: hns3: add support to query scc version by devlink info Message-ID: References: <20240410125354.2177067-1-shaojijie@huawei.com> <20240410125354.2177067-5-shaojijie@huawei.com> <16347737-f0ac-4710-85ee-189abed59d6b@huawei.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <16347737-f0ac-4710-85ee-189abed59d6b@huawei.com> 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! >