aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaxim Uvarov <maxim.uvarov@linaro.org>2017-07-19 16:15:23 +0000
committerMaxim Uvarov <maxim.uvarov@linaro.org>2017-07-21 14:58:45 +0300
commitfa9550ca8f4f0a77baf6d156b441fa2d703bbdf8 (patch)
tree347ea077d53fe7689fa178c9841f533338936a10
parent063d713d0c167c56b4497be566b2310a5a2daf42 (diff)
downloadodp-master.tar.gz
helper: add missing pool param initsHEADmaster
Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Reviewed-by: Bill Fischofer <bill.fischofer@linaro.org>
-rw-r--r--helper/cuckootable.c1
-rw-r--r--helper/iplookuptable.c1
2 files changed, 2 insertions, 0 deletions
diff --git a/helper/cuckootable.c b/helper/cuckootable.c
index 0d46300..3280091 100644
--- a/helper/cuckootable.c
+++ b/helper/cuckootable.c
@@ -240,6 +240,7 @@ odph_cuckoo_table_create(
if (pool != ODP_POOL_INVALID)
odp_pool_destroy(pool);
+ odp_pool_param_init(&param);
param.type = ODP_POOL_BUFFER;
param.buf.size = kv_entry_size;
param.buf.align = ODP_CACHE_LINE_SIZE;
diff --git a/helper/iplookuptable.c b/helper/iplookuptable.c
index 37d31e3..ac7d058 100644
--- a/helper/iplookuptable.c
+++ b/helper/iplookuptable.c
@@ -192,6 +192,7 @@ cache_alloc_new_pool(
uint32_t size = 0, num = 0;
/* Create new pool (new free buffers). */
+ odp_pool_param_init(&param);
param.type = ODP_POOL_BUFFER;
param.buf.align = ODP_CACHE_LINE_SIZE;
if (type == CACHE_TYPE_SUBTREE) {