diff mbox

[API-NEXT,PATCHv2,1/4] api: pool: add socket id parameter for numa support

Message ID 1458771569-17717-1-git-send-email-bill.fischofer@linaro.org
State New
Headers show

Commit Message

Bill Fischofer March 23, 2016, 10:19 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/spec/pool.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/spec/pool.h b/include/odp/api/spec/pool.h
index 94a302e..819016e 100644
--- a/include/odp/api/spec/pool.h
+++ b/include/odp/api/spec/pool.h
@@ -37,6 +37,11 @@  extern "C" {
  * Invalid pool
  */
 
+/**
+ * @def ODP_SOCKET_ID_ANY
+ * This pool can use any socket (NUMA support)
+ */
+
 /** Maximum queue name length in chars */
 #define ODP_POOL_NAME_LEN  32
 
@@ -51,6 +56,9 @@  typedef struct odp_pool_param_t {
 	/** Pool type */
 	int type;
 
+	/** Socket ID for this pool for NUMA support */
+	uint32_t socket_id;
+
 	union {
 		struct {
 			/** Number of buffers in the pool */