aboutsummaryrefslogtreecommitdiff
path: root/helper
diff options
context:
space:
mode:
authorBill Fischofer <bill.fischofer@linaro.org>2015-07-09 16:46:24 +0300
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-07-21 18:02:36 +0300
commit5be42d9a8508a4e45786c59bd6bd0e058059540f (patch)
treece3c7d2a39a6887cb2355dced95e650896b3dc14 /helper
parent207142018cfd228f95bb5b124f9562ed3fa82312 (diff)
api: pool: remove shm paramter from odp_pool_create()
This patch removes the 2nd parameter to odp_pool_create() because it has two major issues: 1. Applications have no way to know how big a shm area is required for a given pool since that information is implementation specific. So there's no portable means of using this parameter. 2. Some implementations (e.g., odp-dpdk) cannot accept an external memory area for pool creation since they need to control the memory themselves. Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org> Reviewed-by: Petri Savolainen <petri.savolainen@nokia.com> Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> Conflicts: test/validation/pktio/pktio.c test/validation/pool/pool.c helper/test/odp_chksum.c
Diffstat (limited to 'helper')
-rw-r--r--helper/test/odp_chksum.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/test/odp_chksum.c b/helper/test/odp_chksum.c
index dae2a5b..f3c2059 100644
--- a/helper/test/odp_chksum.c
+++ b/helper/test/odp_chksum.c
@@ -131,7 +131,7 @@ int main(int argc TEST_UNUSED, char *argv[] TEST_UNUSED)
exit(EXIT_FAILURE);
}
- packet_pool = odp_pool_create("packet_pool", ODP_SHM_INVALID, &params);
+ packet_pool = odp_pool_create("packet_pool", &params);
if (packet_pool == ODP_POOL_INVALID)
return -1;