summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFiona Trahe <fiona.trahe@intel.com>2019-01-17 17:36:23 +0000
committerAkhil Goyal <akhil.goyal@nxp.com>2019-03-22 15:54:24 +0100
commit866bc6742c5478023219d5f795d44a0254a3ee88 (patch)
treee1951c56f12e372b06a1b77b5d36135f60d023ea
parent2004a1475551bc3127e412e53f3151f1dee28431 (diff)
downloaddpdk-866bc6742c5478023219d5f795d44a0254a3ee88.zip
dpdk-866bc6742c5478023219d5f795d44a0254a3ee88.tar.gz
dpdk-866bc6742c5478023219d5f795d44a0254a3ee88.tar.xz
compressdev: add flag to specify where processing is done
A new device feature flag, RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE is added. A PMD should set this if the bulk of the processing is done during the dequeue. It should leave it cleared if the bulk of the processing is done during the enqueue (default). Applications can use this as a hint for tuning. Signed-off-by: Fiona Trahe <fiona.trahe@intel.com> Acked-by: Shally Verma <shallyv@marvell.com>
-rw-r--r--lib/librte_compressdev/rte_compressdev.c2
-rw-r--r--lib/librte_compressdev/rte_compressdev.h6
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/librte_compressdev/rte_compressdev.c b/lib/librte_compressdev/rte_compressdev.c
index 10101eb..338134b 100644
--- a/lib/librte_compressdev/rte_compressdev.c
+++ b/lib/librte_compressdev/rte_compressdev.c
@@ -66,6 +66,8 @@ rte_compressdev_get_feature_name(uint64_t flag)
return "CPU_AVX512";
case RTE_COMPDEV_FF_CPU_NEON:
return "CPU_NEON";
+ case RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE:
+ return "OP_DONE_IN_DEQ";
default:
return NULL;
}
diff --git a/lib/librte_compressdev/rte_compressdev.h b/lib/librte_compressdev/rte_compressdev.h
index 7b68170..d3c0000 100644
--- a/lib/librte_compressdev/rte_compressdev.h
+++ b/lib/librte_compressdev/rte_compressdev.h
@@ -73,6 +73,12 @@ rte_compressdev_capability_get(uint8_t dev_id,
/**< Utilises CPU SIMD AVX512 instructions */
#define RTE_COMPDEV_FF_CPU_NEON (1ULL << 5)
/**< Utilises CPU NEON instructions */
+#define RTE_COMPDEV_FF_OP_DONE_IN_DEQUEUE (1ULL << 6)
+/**< A PMD should set this if the bulk of the
+ * processing is done during the dequeue. It should leave it
+ * cleared if the processing is done during the enqueue (default).
+ * Applications can use this as a hint for tuning.
+ */
/**
* Get the name of a compress device feature flag.