diff options
author | Bill Fischofer <bill.fischofer@linaro.org> | 2015-06-02 09:44:35 -0500 |
---|---|---|
committer | Maxim Uvarov <maxim.uvarov@linaro.org> | 2015-06-10 14:03:28 +0300 |
commit | d5f0c396007be841392caf6dbc001f722bad7537 (patch) | |
tree | e2533a1acb988c89715ff2618d33caf4021961e2 /example/packet | |
parent | e73de4025dab72a77616afd5488bd17c6ccd1398 (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.c | 2 |
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, ¶ms); + pool = odp_pool_create("packet_pool", ¶ms); if (pool == ODP_POOL_INVALID) { EXAMPLE_ERR("Error: packet pool create failed.\n"); |