summaryrefslogtreecommitdiff
path: root/config
diff options
context:
space:
mode:
authorGage Eads <gage.eads@intel.com>2019-04-03 18:20:13 -0500
committerThomas Monjalon <thomas@monjalon.net>2019-04-04 22:06:16 +0200
commit05d3b5283cc1a61b2e204ddd6bc30b6f3053f280 (patch)
tree9cacc632a064a0d029d5883362aa21844fa10632 /config
parent721ac9f9e063f55570c1c3a2f07cf5a7b5e15aab (diff)
downloaddpdk-draft-windows-05d3b5283cc1a61b2e204ddd6bc30b6f3053f280.zip
dpdk-draft-windows-05d3b5283cc1a61b2e204ddd6bc30b6f3053f280.tar.gz
dpdk-draft-windows-05d3b5283cc1a61b2e204ddd6bc30b6f3053f280.tar.xz
stack: introduce stack library
The rte_stack library provides an API for configuration and use of a bounded stack of pointers. Push and pop operations are MT-safe, allowing concurrent access, and the interface supports pushing and popping multiple pointers at a time. The library's interface is modeled after another DPDK data structure, rte_ring, and its lock-based implementation is derived from the stack mempool handler. An upcoming commit will migrate the stack mempool handler to rte_stack. Signed-off-by: Gage Eads <gage.eads@intel.com> Reviewed-by: Olivier Matz <olivier.matz@6wind.com> Reviewed-by: Honnappa Nagarahalli <honnappa.nagarahalli@arm.com>
Diffstat (limited to 'config')
-rw-r--r--config/common_base5
1 files changed, 5 insertions, 0 deletions
diff --git a/config/common_base b/config/common_base
index a0a9fe0..9b4d4d5 100644
--- a/config/common_base
+++ b/config/common_base
@@ -733,6 +733,11 @@ CONFIG_RTE_LIBRTE_PMD_IFPGA_RAWDEV=y
CONFIG_RTE_LIBRTE_RING=y
#
+# Compile librte_stack
+#
+CONFIG_RTE_LIBRTE_STACK=y
+
+#
# Compile librte_mempool
#
CONFIG_RTE_LIBRTE_MEMPOOL=y