From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 2F00143B55; Tue, 20 Feb 2024 16:13:21 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E7EE84029B; Tue, 20 Feb 2024 16:13:20 +0100 (CET) Received: from mail-pf1-f178.google.com (mail-pf1-f178.google.com [209.85.210.178]) by mails.dpdk.org (Postfix) with ESMTP id A48D640289 for ; Tue, 20 Feb 2024 16:13:18 +0100 (CET) Received: by mail-pf1-f178.google.com with SMTP id d2e1a72fcca58-6e22e63abf1so1957849b3a.3 for ; Tue, 20 Feb 2024 07:13:18 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1708441998; x=1709046798; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=KMqGOI3qwbRdOP7Ua71v/oXSEIMxRh6ZGlTYTBXOvxY=; b=q+ud5U6RR1PbCfqWbTHMzi35LYBBo+mH1k+jHluL9PSrV71R4cnhWQksLPNzqlquzh tz1jDLLShWvpOYBC9FAGjHEzyBlA3kMpzPRVrN3ec8qW+CPWjTdrjtelfTKgdEd+ccHS HH9awt9xgprbyuBeWpUDsXNZmyjm7dlQ45CvMxbthMM7iUC+f7LTCYSKEAWSrjMzFPjZ uAmPCntkDb+LqvQVwmxcre7E8r7KdXiFEZkI0ZcPkwhUEVKhPcK+qmI560kAnrL+BdbF qitBh+mx+DOREHqiDbPw5EelQh1/KhtGAFGV8wRmG48VzRoaCpvlT0iaOnDzgk6NbpuI rJOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708441998; x=1709046798; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KMqGOI3qwbRdOP7Ua71v/oXSEIMxRh6ZGlTYTBXOvxY=; b=PObM/C9co4m6sjGaMGFMGj6/uQkzjuMoyftyCk+L/PaHIKdZM+VolHc5vChJFlamaT VR3FCEK5LyGGQFHCSJufc4dn9ynDL2kB3qr0auruU0ySgBoYJkbMo/kiebAvpY/TRr/H yA60TOa4fBMzNEeWiE4d4FUfFX1z5tdW8iSAkmJovxuUep2m0btimpaNZgGZMcJMkcOM XjBIG9NfcdRPnEVWO9OfGBTH8OCAiXIi9O7ee/r2V4TZdOK04VgQwSi8Oq3v6UbB3uE6 VPlEty+0xNP3Dw1VT1S2gQdUWiMDJwUXYBQvQFK2qvr7TBGJS8EQZFx9pqEcOx3YB+6F 8jRw== X-Gm-Message-State: AOJu0YycXXB8pMkxQPC+vs66UetBD8ZayKqyA4AxCzhFM/EN8ZFd01my RyQzRZSqTaz9K7nksDssvuYUCAVyv9e+0NEKO458AIRCTIEZ6zjllE//27PI9v4= X-Google-Smtp-Source: AGHT+IEZ9Is7eyC1KnKvUW+oFDZU4p6+lRGowH3FvNQmXOmk37I0ClAQRj7J9gPSLTE/9fkxfNXdFg== X-Received: by 2002:a05:6a21:170f:b0:1a0:912c:ece3 with SMTP id nv15-20020a056a21170f00b001a0912cece3mr7154564pzb.0.1708441997645; Tue, 20 Feb 2024 07:13:17 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id b13-20020a63eb4d000000b005dc9439c56bsm6585208pgk.13.2024.02.20.07.13.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:13:17 -0800 (PST) Date: Tue, 20 Feb 2024 07:13:15 -0800 From: Stephen Hemminger To: Jie Hai Cc: , , , , , Subject: Re: [PATCH v3 1/7] ethdev: support report register names and filter Message-ID: <20240220071315.1fef0848@hermes.local> In-Reply-To: <20240220105823.570841-2-haijie1@huawei.com> References: <20231214015650.3738578-1-haijie1@huawei.com> <20240220105823.570841-1-haijie1@huawei.com> <20240220105823.570841-2-haijie1@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, 20 Feb 2024 18:58:17 +0800 Jie Hai wrote: > This patch adds "filter" and "names" fields to "rte_dev_reg_info" > structure. Names of registers in data fields can be reported and > the registers can be filtered by their names. > > The new API rte_eth_dev_get_reg_info_ext() is added to support > reporting names and filtering by names. And the original API > rte_eth_dev_get_reg_info() does not use the name and filter fields. > A local variable is used in rte_eth_dev_get_reg_info for > compatibility. If the drivers does not report the names, set them > to "offset_XXX". > > Signed-off-by: Jie Hai > --- > doc/guides/rel_notes/release_24_03.rst | 9 +++++++ > lib/ethdev/rte_dev_info.h | 11 ++++++++ > lib/ethdev/rte_ethdev.c | 36 ++++++++++++++++++++++++++ > lib/ethdev/rte_ethdev.h | 28 ++++++++++++++++++++ > lib/ethdev/version.map | 1 + > 5 files changed, 85 insertions(+) Could you add support to DPDK ethtool for displaying these?