[dpdk-dev] [PATCH v3 02/24] lib/librte_ethdev: change eth-dev-ops API to return int

Thomas Monjalon thomas at monjalon.net
Sun May 13 16:58:34 CEST 2018


12/05/2018 03:58, Andy Green:
> Signed-off-by: Andy Green <andy at warmcat.com>
[...]
> --- a/lib/librte_ethdev/rte_ethdev_core.h
> +++ b/lib/librte_ethdev/rte_ethdev_core.h
> -typedef uint32_t (*eth_rx_queue_count_t)(struct rte_eth_dev *dev,
> -					 uint16_t rx_queue_id);
> +typedef int (*eth_rx_queue_count_t)(struct rte_eth_dev *dev,
> +				    uint16_t rx_queue_id);
>  /**< @internal Get number of used descriptors on a receive queue. */

What is the reason of this change?




More information about the dev mailing list