summaryrefslogtreecommitdiff
path: root/lib/librte_bbdev
diff options
context:
space:
mode:
authorKamil Chalupnik <kamilx.chalupnik@intel.com>2018-12-07 16:15:31 +0100
committerAkhil Goyal <akhil.goyal@nxp.com>2018-12-19 11:19:10 +0100
commit9fa6ebde8e6391e567eec16a652ae33aa64cb800 (patch)
treeaf0d5760b8dc354bff0b4e10cbb578f6a6eabf69 /lib/librte_bbdev
parent9d3e1cb1355db3b6593862e12d4304fbc4b2240d (diff)
downloaddpdk-9fa6ebde8e6391e567eec16a652ae33aa64cb800.zip
dpdk-9fa6ebde8e6391e567eec16a652ae33aa64cb800.tar.gz
dpdk-9fa6ebde8e6391e567eec16a652ae33aa64cb800.tar.xz
bbdev: enhance offload cost test
Offload cost test was improved in order to collect more accurate results. Signed-off-by: Kamil Chalupnik <kamilx.chalupnik@intel.com> Acked-by: Amr Mokhtar <amr.mokhtar@intel.com>
Diffstat (limited to 'lib/librte_bbdev')
-rw-r--r--lib/librte_bbdev/rte_bbdev.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/lib/librte_bbdev/rte_bbdev.h b/lib/librte_bbdev/rte_bbdev.h
index 25ef409..da8cf07 100644
--- a/lib/librte_bbdev/rte_bbdev.h
+++ b/lib/librte_bbdev/rte_bbdev.h
@@ -239,8 +239,13 @@ struct rte_bbdev_stats {
uint64_t enqueue_err_count;
/** Total error count on operations dequeued */
uint64_t dequeue_err_count;
- /** Offload time */
- uint64_t offload_time;
+ /** CPU cycles consumed by the (HW/SW) accelerator device to offload
+ * the enqueue request to its internal queues.
+ * - For a HW device this is the cycles consumed in MMIO write
+ * - For a SW (vdev) device, this is the processing time of the
+ * bbdev operation
+ */
+ uint64_t acc_offload_cycles;
};
/**