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.richard...@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.wa...@intel.com>