Received: by 2002:a05:7412:bb8d:b0:d7:7d3a:4fe2 with SMTP id js13csp1483836rdb; Wed, 16 Aug 2023 12:48:58 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFmp4nmQjLGV7YjsLtkHF2UIJHUj3d3zw9w2Q3kU8rKYkcnsyKYzLjyU3zy5Sgz6QKdSk32 X-Received: by 2002:a05:6a20:3d95:b0:140:61f8:53f3 with SMTP id s21-20020a056a203d9500b0014061f853f3mr3710681pzi.21.1692215337680; Wed, 16 Aug 2023 12:48:57 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692215337; cv=none; d=google.com; s=arc-20160816; b=LYLw/0FL/PiqkSry0n9xVZ7wGnwhKM0IQ02Ar+Vh88PUxmYkD2wEZmZb31bsIAi6CG rmooTdG4EJFCRR0lekc9gvmiIR9E5Efwv1bB5tfdfRRhFoSSu8LD2Wjz1awfpUt37gzq 5cV7mhoGIhBea+9ubzJdYiWtw6myhKRdKNW21jTLD16PgpGHy9hK5uG1HOzr0pnOeNW1 W7KA/mbMDZ54U/nPtrZ7rdCt2jLS2wIe0tx48o632qAfopjvc5O6YRXbyHlMXduEGTuv CdwS+JePHhYiNNblfcgC2xNpGYfBUN4tZHKBCvQi9qSxx9aS167mhjJRp7k7wx1TWN30 0WNg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-transfer-encoding :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=CbwHWo9+hNSalGQJQ37NF5F2s7SRR+LUsdJlZqcr+g0=; fh=DNjWYMsGNZcN9ZM33M8z3XM5TFTbIv7rpCXJ3MwAiW4=; b=l0BIRW2WT1lx05Ea6K8RADH80UWoqLTWiQliK+8+11Yx+K0voJZdG4WCP6kkGkT8yi 2+M9T1o8u8FrDkAxTxUnkcDSt8t+yLCymQQuvuz7d+edlk5exBflkWigb4HAoQ3Tg0hN lgzOwcAIJmxlei/aeGwHmMAljJSrdg09/OVCXScIpKMo3ZNGc+Xq3u85TC1OFUo9MRqU kEEEsNkT4WyuAfgjWGmeqllaRilRMJZMbtRp35zgNcjaZnWyTDqhqGIAsJ/OxIiQBxff iM2uhn7ArcfCuzQRF/7P7gz4ta2/hYztbvm6t8Eq8QCllNnGcL6Pp83UsRD770QgKbeQ 3CKg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OwuByQoG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id g124-20020a636b82000000b00564bfbb19e7si11781690pgc.728.2023.08.16.12.48.30; Wed, 16 Aug 2023 12:48:57 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=OwuByQoG; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S239106AbjHOS0r (ORCPT + 99 others); Tue, 15 Aug 2023 14:26:47 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52160 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239095AbjHOS0Z (ORCPT ); Tue, 15 Aug 2023 14:26:25 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CFC9DE52 for ; Tue, 15 Aug 2023 11:26:24 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 6E18D63CA8 for ; Tue, 15 Aug 2023 18:26:24 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 5233FC433C8; Tue, 15 Aug 2023 18:26:23 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692123983; bh=p+TzmT/E7cNgjIPEMoOKL8P17OHBULu+kPazD0IWDAE=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=OwuByQoGDbVgdFeMlsyO4cu1F4HcXCJLBrQbBfbIsUj+0mY+W78uDhXsKGB7X1X7X nuNJlC3SpdrYQVvLgjHsZ4HIFO15Gq9P4pzxs/JeRTYOGha/awAJS2LTFJAiutodQ4 j4Dg4ipilE94GoVUtigmDk1NTNHL/tjAQD2Ghu2JGLL8Lf4rkHf1M86dzqq7/wYD3F BHdZAl1xNkm2YkvmBvqxLMsDWDGm0e9voCQ5Ff2s2g5dG5STquHeE4+Bvcpz0bOTIO SfCCaA2m9HdPTPrTn6Ww8UewjHyp9UYWuT9BALHZzX0YFUB4VPeP8mQQxiMv7SX9tA HQrA1Eg+cIshQ== Date: Tue, 15 Aug 2023 21:26:19 +0300 From: Leon Romanovsky To: Jijie Shao Cc: yisen.zhuang@huawei.com, salil.mehta@huawei.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, shenjian15@huawei.com, wangjie125@huawei.com, liuyonglong@huawei.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 3/4] net: hns3: Support tlv in regs data for HNS3 VF driver Message-ID: <20230815182619.GR22185@unreal> References: <20230815060641.3551665-1-shaojijie@huawei.com> <20230815060641.3551665-4-shaojijie@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <20230815060641.3551665-4-shaojijie@huawei.com> X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Aug 15, 2023 at 02:06:40PM +0800, Jijie Shao wrote: > The dump register function is being refactored. > The third step in refactoring is to support tlv info in regs data for > HNS3 PF driver. > > Currently, if we use "ethtool -d" to dump regs value, > the output is as follows: > offset1: 00 01 02 03 04 05 ... > offset2:10 11 12 13 14 15 ... > ...... > > We can't get the value of a register directly. > > This patch deletes the original separator information and > add tag_len_value information in regs data. > ethtool can parse register data in key-value format by -d command. > > a patch will be added to the ethtool to parse regs data > in the following format: > reg1 : value2 > reg2 : value2 > ...... > > Signed-off-by: Jijie Shao > --- > .../hisilicon/hns3/hns3vf/hclgevf_regs.c | 85 +++++++++++++------ > 1 file changed, 61 insertions(+), 24 deletions(-) > Thanks, Reviewed-by: Leon Romanovsky