aboutsummaryrefslogtreecommitdiff
path: root/example/generator
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 /example/generator
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 'example/generator')
-rw-r--r--example/generator/odp_generator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/generator/odp_generator.c b/example/generator/odp_generator.c
index d35f4aa..d6bf880 100644
--- a/example/generator/odp_generator.c
+++ b/example/generator/odp_generator.c
@@ -655,7 +655,7 @@ int main(int argc, char *argv[])
params.pkt.num = SHM_PKT_POOL_SIZE/SHM_PKT_POOL_BUF_SIZE;
params.type = ODP_POOL_PACKET;
- pool = odp_pool_create("packet_pool", ODP_SHM_NULL, &params);
+ pool = odp_pool_create("packet_pool", &params);
if (pool == ODP_POOL_INVALID) {
EXAMPLE_ERR("Error: packet pool create failed.\n");
@@ -682,7 +682,7 @@ int main(int argc, char *argv[])
params.tmo.num = tparams.num_timers; /* One timeout per timer */
params.type = ODP_POOL_TIMEOUT;
- tmop = odp_pool_create("timeout_pool", ODP_SHM_NULL, &params);
+ tmop = odp_pool_create("timeout_pool", &params);
if (pool == ODP_POOL_INVALID) {
EXAMPLE_ERR("Error: packet pool create failed.\n");