dmadev: add burst capacity API
authorKevin Laatz <kevin.laatz@intel.com>
Wed, 13 Oct 2021 15:17:26 +0000 (16:17 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Mon, 18 Oct 2021 09:17:30 +0000 (11:17 +0200)
commitea8cf0f8536d7d37c83cfdfe70fda85ff924c8a0
tree66a1810e7b3ebb2a9c02a009ff4cde8681cfa968
parent5e0f85912754bf0d50c940165c40cac68e7c762f
dmadev: add burst capacity API

Add a burst capacity check API to the dmadev library. This API is useful to
applications which need to how many descriptors can be enqueued in the
current batch. For example, it could be used to determine whether all
segments of a multi-segment packet can be enqueued in the same batch or not
(to avoid half-offload of the packet).

Signed-off-by: Kevin Laatz <kevin.laatz@intel.com>
Reviewed-by: Conor Walsh <conor.walsh@intel.com>
drivers/dma/skeleton/skeleton_dmadev.c
lib/dmadev/rte_dmadev.c
lib/dmadev/rte_dmadev.h
lib/dmadev/rte_dmadev_core.h
lib/dmadev/version.map