[dpdk-dev] [PATCH v2 4/6] app/test: add more comprehensive dmadev copy tests

Conor Walsh conor.walsh at intel.com
Fri Sep 3 18:08:14 CEST 2021


> Add unit tests for various combinations of use for dmadev, copying
> bursts of packets in various formats, e.g.
>
> 1. enqueuing two smaller bursts and completing them as one burst
> 2. enqueuing one burst and gathering completions in smaller bursts
> 3. using completed_status() function to gather completions rather than
>     just completed()
>
> Signed-off-by: Bruce Richardson <bruce.richardson at intel.com>
> ---
<snip>
> +static inline int
> +check_stats(struct rte_dmadev_stats *stats, bool check_errors)
> +{
> +	if (stats->completed != stats->submitted) {
> +		PRINT_ERR("Error, not all submitted jobs are reported as completed\n");
> +		return -1;
> +	}
Need to double check with Chengwen about the definitive meaning of the 
completed stat.


Reviewed-by: Conor Walsh <conor.walsh at intel.com>



More information about the dev mailing list