test/dma: fix missing checks for device capacity
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 16 Feb 2022 16:06:07 +0000 (16:06 +0000)
committerThomas Monjalon <thomas@monjalon.net>
Wed, 23 Feb 2022 15:30:18 +0000 (16:30 +0100)
commit727e6b784087306801d487590e03d00b4e6e2485
treea75dea5d094b02cfa927340504b603c69400a27d
parent033904450b1d52fd3d09e2bb53e529e3ba0ecf77
test/dma: fix missing checks for device capacity

For some DMA HW devices, e.g. those using the idxd driver, the maximum
burst size is configurable, which can lead to test failures if the value
is set too small. Add explicit check for this to give reasonable error
messages for devices which need their config adjusted.

Fixes: 1b86a66a30c2 ("test/dma: add more comprehensive copy tests")
Fixes: 8fa5d2683940 ("test/dma: add burst capacity test")
Cc: stable@dpdk.org
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Reviewed-by: Conor Walsh <conor.walsh@intel.com>
Reviewed-by: Kevin Laatz <kevin.laatz@intel.com>
app/test/test_dmadev.c