On 2024/2/20 23:14, Stephen Hemminger wrote:
On Tue, 20 Feb 2024 18:58:17 +0800
Jie Hai <haij...@huawei.com> 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.
.
The "filter" can be a pointer to a const string. It's OK to add const.
The "names" could be modified. The APPs are free to assign space for
regisger names and "names" point to the first element.
And the ethdev and drivers are free to modifiy each element.