dmadev: add flag for error handling support
authorBruce Richardson <bruce.richardson@intel.com>
Wed, 13 Oct 2021 15:17:33 +0000 (16:17 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 18 Oct 2021 09:19:27 +0000 (11:19 +0200)
commit2e348d8fe382d55a12afa105069a862a6d8c0a23
tree4a07fa0646ad6cb4376157df10a0fb2a49ad5895
parent1b86a66a30c22f6f3ed92d66adef7bcc0f1d2723
dmadev: add flag for error handling support

Due to HW or driver limitations, not all dmadevs may support full error
handling e.g. safely managing and reporting an invalid address to a copy
operation. The skeleton dmadev, for example, being pure software will
always seg-fault if passed an invalid address. To indicate the
availability of safe error handling by a device, we add a capability
flag for it.

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>
lib/dmadev/rte_dmadev.c
lib/dmadev/rte_dmadev.h