diff mbox

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

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

Commit Message

Bill Fischofer Jan. 29, 2016, 2:44 a.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 include/odp/api/pool.h | 8 ++++++++
 1 file changed, 8 insertions(+)
diff mbox

Patch

diff --git a/include/odp/api/pool.h b/include/odp/api/pool.h
index 2e79a55..4ea0193 100644
--- a/include/odp/api/pool.h
+++ b/include/odp/api/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
 
@@ -88,6 +93,9 @@  typedef struct odp_pool_param_t {
 			uint32_t num;
 		} tmo;
 	};
+
+	/** Socket ID for this pool for NUMA support */
+	uint32_t socket_id;
 } odp_pool_param_t;
 
 /** Packet pool*/