Skip to content

Commit

Permalink
test/dma: fix stats tear down
Browse files Browse the repository at this point in the history
The API testsuite previously only used the dmadev skeleton. Now that real
devices are being used for the API tests, the DMA stats need to be reset
during testsuite teardown to ensure a known, clean state before continuing.

Fixes: 14b477e ("test/dma: use unit test framework")

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Acked-by: Chengwen Feng <fengchengwen@huawei.com>
  • Loading branch information
kevin-laatz-intel authored and tmonjalo committed Mar 15, 2024
1 parent 3f9aa55 commit 0623f27
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions app/test/test_dmadev_api.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ testsuite_teardown(void)
dst = NULL;
/* Ensure the dmadev is stopped. */
rte_dma_stop(test_dev_id);
rte_dma_stats_reset(test_dev_id, RTE_DMA_ALL_VCHAN);

rte_log_set_level_pattern("lib.dmadev", RTE_LOG_INFO);
}
Expand Down

0 comments on commit 0623f27

Please sign in to comment.