[dpdk-dev] [PATCH] ethdev: fix queue mapping documentation
Andrew Rybchenko
arybchenko at solarflare.com
Fri Jun 29 17:16:13 CEST 2018
On 06/29/2018 12:44 PM, Jerin Jacob wrote:
> The RTE_MAX_ETHPORT_QUEUE_STATS_MAPS does not exists, change
> to the correct definition(RTE_ETHDEV_QUEUE_STAT_CNTRS)
>
> Fixes: 5de201df8927 ("ethdev: add stats per queue")
> Cc: stable at dpdk.org
>
> Signed-off-by: Jerin Jacob <jerin.jacob at caviumnetworks.com>
> ---
> lib/librte_ethdev/rte_ethdev.h | 4 ++--
> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/lib/librte_ethdev/rte_ethdev.h b/lib/librte_ethdev/rte_ethdev.h
> index 36e3984ea..375ea24ce 100644
> --- a/lib/librte_ethdev/rte_ethdev.h
> +++ b/lib/librte_ethdev/rte_ethdev.h
> @@ -2144,7 +2144,7 @@ void rte_eth_xstats_reset(uint16_t port_id);
> * @param stat_idx
> * The per-queue packet statistics functionality number that the transmit
> * queue is to be assigned.
> - * The value must be in the range [0, RTE_MAX_ETHPORT_QUEUE_STATS_MAPS - 1].
> + * The value must be in the range [0, RTE_ETHDEV_QUEUE_STAT_CNTRS - 1].
> * @return
> * Zero if successful. Non-zero otherwise.
> */
> @@ -2164,7 +2164,7 @@ int rte_eth_dev_set_tx_queue_stats_mapping(uint16_t port_id,
> * @param stat_idx
> * The per-queue packet statistics functionality number that the receive
> * queue is to be assigned.
> - * The value must be in the range [0, RTE_MAX_ETHPORT_QUEUE_STATS_MAPS - 1].
> + * The value must be in the range [0, RTE_ETHDEV_QUEUE_STAT_CNTRS - 1].
> * @return
> * Zero if successful. Non-zero otherwise.
> */
Reviewed-by: Andrew Rybchenko <arybchenko at solarflare.com>
More information about the dev
mailing list