aboutsummaryrefslogtreecommitdiff
path: root/example/packet
diff options
context:
space:
mode:
authorBill Fischofer <bill.fischofer@linaro.org>2015-06-02 09:44:35 -0500
committerMaxim Uvarov <maxim.uvarov@linaro.org>2015-06-10 14:03:28 +0300
commitd5f0c396007be841392caf6dbc001f722bad7537 (patch)
treee2533a1acb988c89715ff2618d33caf4021961e2 /example/packet
parente73de4025dab72a77616afd5488bd17c6ccd1398 (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>
Diffstat (limited to 'example/packet')
-rw-r--r--example/packet/odp_pktio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/packet/odp_pktio.c b/example/packet/odp_pktio.c
index a281d69..79a3f6b 100644
--- a/example/packet/odp_pktio.c
+++ b/example/packet/odp_pktio.c
@@ -385,7 +385,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");