X-Git-Url: http://git.droids-corp.org/?a=blobdiff_plain;f=lib%2Fdmadev%2Frte_dmadev_core.h;h=064785686f7fee2a07b210dff50645eff375b184;hb=6e858b4d9244cf53505589673755ab18ac2a4a83;hp=236d9d38e5fbe3f10750f63757f611513fc92529;hpb=2ece65f00f71c383c12c567502840ac1584757d5;p=dpdk.git diff --git a/lib/dmadev/rte_dmadev_core.h b/lib/dmadev/rte_dmadev_core.h index 236d9d38e5..064785686f 100644 --- 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); +/** @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. @@ -56,7 +59,7 @@ 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 - * 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 @@ -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_burst_capacity_t burst_capacity; } __rte_aligned(128); extern struct rte_dma_fp_object *rte_dma_fp_objs;