summaryrefslogtreecommitdiff
path: root/mk
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 /mk
parent721ac9f9e063f55570c1c3a2f07cf5a7b5e15aab (diff)
downloaddpdk-05d3b5283cc1a61b2e204ddd6bc30b6f3053f280.zip
dpdk-05d3b5283cc1a61b2e204ddd6bc30b6f3053f280.tar.gz
dpdk-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 'mk')
-rw-r--r--mk/rte.app.mk1
1 files changed, 1 insertions, 0 deletions
diff --git a/mk/rte.app.mk b/mk/rte.app.mk
index e13f247..6c6bb4b 100644
--- a/mk/rte.app.mk
+++ b/mk/rte.app.mk
@@ -89,6 +89,7 @@ _LDLIBS-$(CONFIG_RTE_LIBRTE_EVENTDEV) += -lrte_eventdev
_LDLIBS-$(CONFIG_RTE_LIBRTE_RAWDEV) += -lrte_rawdev
_LDLIBS-$(CONFIG_RTE_LIBRTE_TIMER) += -lrte_timer
_LDLIBS-$(CONFIG_RTE_LIBRTE_MEMPOOL) += -lrte_mempool
+_LDLIBS-$(CONFIG_RTE_LIBRTE_STACK) += -lrte_stack
_LDLIBS-$(CONFIG_RTE_DRIVER_MEMPOOL_RING) += -lrte_mempool_ring
_LDLIBS-$(CONFIG_RTE_LIBRTE_RING) += -lrte_ring
_LDLIBS-$(CONFIG_RTE_LIBRTE_PCI) += -lrte_pci