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 BE38043B55; Tue, 20 Feb 2024 16:14:09 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id ADA594029B; Tue, 20 Feb 2024 16:14:09 +0100 (CET) Received: from mail-pf1-f174.google.com (mail-pf1-f174.google.com [209.85.210.174]) by mails.dpdk.org (Postfix) with ESMTP id B002940289 for ; Tue, 20 Feb 2024 16:14:08 +0100 (CET) Received: by mail-pf1-f174.google.com with SMTP id d2e1a72fcca58-6e471caaa71so1075940b3a.2 for ; Tue, 20 Feb 2024 07:14:08 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1708442048; x=1709046848; 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=Bn4DVpqs4cpFfDBkQ30Lj/lAwvTT4MuiPiluGhkpA/8=; b=GTOtwbdJEzd2GS/bvB7AiLSqJm9VP6gMsL0lCRUHnTTNk5h8r4zetZsZ4Z3ebagVOh T3upoKxpPywpyx5JqWw4T6RFs/+CcWvglx8Mh/l893691mfRXKAplcnKYDF0QKMrbU5s HybLP1RV7LfF4j9gRbofp+uCvWnVz3KwT4QqYqh9St93/LCA4kXbl++ilDUzfXZRKRK/ SXv5z1CKHm2eMrvr9SWhJs8S+kx0nU9mP+GZ/+ljV0Yqc7FS5T7fn9X3S/ND7wjz/qp9 uJQktSnOhzN696USkHjZ3J0jlHdX3WtIkIb8ovzzQkUO0g0gjUVSEiJqSh/C4xw1Etcm x28w== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708442048; x=1709046848; 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=Bn4DVpqs4cpFfDBkQ30Lj/lAwvTT4MuiPiluGhkpA/8=; b=YeKjZi4v9eE7m3Egh1HNQDD3CEd7d0VZUG1wEXifT9bvvqxpcYJ1Z+P0zzcK3V/N0c ySjp9HrAjAw2TRzS0uUR9BKpHWGFUhdZcgddepg0ck5JxrQ+tRx6Lev0AdkpjKNBQrrM Es/PXZ6IiNtki4jJAHO2Nbz9fc6TAE47AVhiJzSTfKHkSWgVL1DKe0XDj+B+Bm1VpULn 08rU5DLGUIat/nOTSTjsR6NzO6AxYPXJs7ztEU8SY1y/iSZVgCzAyzato1wSMzjjE86m sHBykVdJWcvjgrRTguhW9DIbQFdP2oOwt+WMyc59x7g5eOmNcDth7bEnGXJBIieSjSDA dHug== X-Gm-Message-State: AOJu0YybDnE61fx33HrpIMJ6uTvMp8Scpa2Bud9/NbTovt3KkKjxmxUR Qc0CkKAtUE5+qb4l0US1VhkpzVKslhChuPcVeJnp6dupZv+98BLau7deW9PP2Ts= X-Google-Smtp-Source: AGHT+IF6U3tENgt122vsWPDIMulxzcj9xvZpELTq7UdZ0XIgR43xQndGyrXPNbXxDC8UxjCVHQRJWw== X-Received: by 2002:a05:6a00:a14:b0:6e4:660f:b0a9 with SMTP id p20-20020a056a000a1400b006e4660fb0a9mr5394582pfh.15.1708442047936; Tue, 20 Feb 2024 07:14:07 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id x10-20020aa784ca000000b006e3a69eb6c4sm5687301pfn.219.2024.02.20.07.14.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 20 Feb 2024 07:14:07 -0800 (PST) Date: Tue, 20 Feb 2024 07:14:05 -0800 From: Stephen Hemminger To: Jie Hai Cc: , , , , , Subject: Re: [PATCH v3 1/7] ethdev: support report register names and filter Message-ID: <20240220071405.05e4fb6e@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: > @@ -20,6 +25,12 @@ struct rte_dev_reg_info { > uint32_t length; /**< Number of registers to fetch */ > uint32_t width; /**< Size of device register */ > uint32_t version; /**< Device version */ > + /** > + * Filter for target subset of registers. > + * This field could affects register selection for data/length/names. > + */ > + char *filter; > + struct rte_eth_reg_name *names; /**< Registers name saver */ > }; filter and names should be const, i.e won't get modified by call.