aboutsummaryrefslogtreecommitdiff
path: root/platform/linux-dpdk/include
diff options
context:
space:
mode:
authorJere Leppänen <jere.leppanen@nokia.com>2021-08-04 13:56:18 +0300
committerMatias Elo <matias.elo@nokia.com>2021-09-09 13:57:48 +0300
commit1a6d1c154934d3d6475b54e6a2d665ebbf387909 (patch)
treeca2f7509da196686b8f6b7e12b0d5effd8f15c33 /platform/linux-dpdk/include
parent9df71b41d68c5c0aad6e4161c53798a5a1246959 (diff)
linux-dpdk: pool: implement external memory pool
Implement new external memory pool API using DPDK empty mempool. Signed-off-by: Jere Leppänen <jere.leppanen@nokia.com> Reviewed-by: Matias Elo <matias.elo@nokia.com>
Diffstat (limited to 'platform/linux-dpdk/include')
-rw-r--r--platform/linux-dpdk/include/odp_pool_internal.h10
1 files changed, 7 insertions, 3 deletions
diff --git a/platform/linux-dpdk/include/odp_pool_internal.h b/platform/linux-dpdk/include/odp_pool_internal.h
index b5ce4cdd9..f95a44440 100644
--- a/platform/linux-dpdk/include/odp_pool_internal.h
+++ b/platform/linux-dpdk/include/odp_pool_internal.h
@@ -67,12 +67,16 @@ typedef struct ODP_ALIGNED_CACHE {
/* Everything under this mark is memset() to zero on pool create */
uint8_t memset_mark;
+ struct rte_mempool *rte_mempool;
+ uint32_t seg_len;
+ uint32_t hdr_size;
+ uint32_t num;
+ uint32_t num_populated;
uint8_t type;
uint8_t pool_ext;
- char name[ODP_POOL_NAME_LEN];
odp_pool_param_t params;
- struct rte_mempool *rte_mempool;
- uint32_t seg_len;
+ odp_pool_ext_param_t ext_param;
+ char name[ODP_POOL_NAME_LEN];
} pool_t;