git.droids-corp.org
/
dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
sched: move grinder configuration
[dpdk.git]
/
lib
/
dmadev
/
rte_dmadev_core.h
diff --git
a/lib/dmadev/rte_dmadev_core.h
b/lib/dmadev/rte_dmadev_core.h
index
a694605
..
0647856
100644
(file)
--- a/
lib/dmadev/rte_dmadev_core.h
+++ b/
lib/dmadev/rte_dmadev_core.h
@@
-47,6
+47,9
@@
typedef uint16_t (*rte_dma_completed_status_t)(void *dev_private,
uint16_t vchan, const uint16_t nb_cpls,
uint16_t *last_idx, enum rte_dma_status_code *status);
uint16_t vchan, const uint16_t nb_cpls,
uint16_t *last_idx, enum rte_dma_status_code *status);
+/** @internal Used to check the remaining space in descriptor ring. */
+typedef uint16_t (*rte_dma_burst_capacity_t)(const void *dev_private, uint16_t vchan);
+
/**
* @internal
* Fast-path dmadev functions and related data are hold in a flat array.
/**
* @internal
* Fast-path dmadev functions and related data are hold in a flat array.
@@
-56,11
+59,11
@@
typedef uint16_t (*rte_dma_completed_status_t)(void *dev_private,
* functions.
*
* The 'dev_private' field was placed in the first cache line to optimize
* functions.
*
* The 'dev_private' field was placed in the first cache line to optimize
- * performance because the PMD
driver
mainly depends on this field.
+ * performance because the PMD mainly depends on this field.
*/
struct rte_dma_fp_object {
/** PMD-specific private data. The driver should copy
*/
struct rte_dma_fp_object {
/** PMD-specific private data. The driver should copy
- * rte_dma_dev.dev_private to this field during initialization.
+ * rte_dma_dev.d
ata->d
ev_private to this field during initialization.
*/
void *dev_private;
rte_dma_copy_t copy;
*/
void *dev_private;
rte_dma_copy_t copy;
@@
-69,6
+72,7
@@
struct rte_dma_fp_object {
rte_dma_submit_t submit;
rte_dma_completed_t completed;
rte_dma_completed_status_t completed_status;
rte_dma_submit_t submit;
rte_dma_completed_t completed;
rte_dma_completed_status_t completed_status;
+ rte_dma_burst_capacity_t burst_capacity;
} __rte_aligned(128);
extern struct rte_dma_fp_object *rte_dma_fp_objs;
} __rte_aligned(128);
extern struct rte_dma_fp_object *rte_dma_fp_objs;