[dpdk-dev] [PATCH v9 1/3] ethdev: add an API to get device configuration info
Thomas Monjalon
thomas at monjalon.net
Mon Sep 27 08:19:21 CEST 2021
26/09/2021 11:20, Jie Wang:
> This patch adds a new API "rte_eth_dev_conf_info_get()" to help users get
> device configuration info.
>
> Cc: stable at dpdk.org
No we don't backport new features.
> Signed-off-by: Jie Wang <jie1x.wang at intel.com>
[...]
> + * Retrieve the configuration of an Ethernet device.
> + *
> + * @param port_id
> + * The port identifier of the Ethernet device.
> + * @param dev_conf_info
> + * A pointer to a structure of type *rte_eth_conf* to be filled with
> + * the configuration of the Ethernet device.
> + * And the memory of the structure should be allocated by the caller.
> + * @return
> + * - (0) if successful.
> + * - (-ENODEV) if *port_id* invalid.
> + * - (-EINVAL) if bad parameter.
> + */
> +__rte_experimental
> +int rte_eth_dev_conf_info_get(uint16_t port_id,
> + struct rte_eth_conf *dev_conf_info);
It does not make sense to me.
rte_eth_conf is passed by the app to rte_eth_dev_configure.
Why the app would need to get the same info back?
More information about the dev
mailing list