aboutsummaryrefslogtreecommitdiff
path: root/test/performance
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 /test/performance
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 'test/performance')
-rw-r--r--test/performance/odp_l2fwd.c2
-rw-r--r--test/performance/odp_pktio_perf.c5
-rw-r--r--test/performance/odp_scheduling.c2
3 files changed, 4 insertions, 5 deletions
diff --git a/test/performance/odp_l2fwd.c b/test/performance/odp_l2fwd.c
index a408c7d78..01cb077b0 100644
--- a/test/performance/odp_l2fwd.c
+++ b/test/performance/odp_l2fwd.c
@@ -428,7 +428,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) {
LOG_ERR("Error: packet pool create failed.\n");
diff --git a/test/performance/odp_pktio_perf.c b/test/performance/odp_pktio_perf.c
index fe575ff64..3c5e35e34 100644
--- a/test/performance/odp_pktio_perf.c
+++ b/test/performance/odp_pktio_perf.c
@@ -695,7 +695,7 @@ static odp_pktio_t create_pktio(const char *iface)
params.type = ODP_POOL_PACKET;
snprintf(pool_name, sizeof(pool_name), "pkt_pool_%s", iface);
- pool = odp_pool_create(pool_name, ODP_SHM_NULL, &params);
+ pool = odp_pool_create(pool_name, &params);
if (pool == ODP_POOL_INVALID)
return ODP_PKTIO_INVALID;
@@ -717,8 +717,7 @@ static int test_init(void)
params.pkt.num = PKT_BUF_NUM;
params.type = ODP_POOL_PACKET;
- transmit_pkt_pool = odp_pool_create("pkt_pool_transmit",
- ODP_SHM_NULL, &params);
+ transmit_pkt_pool = odp_pool_create("pkt_pool_transmit", &params);
if (transmit_pkt_pool == ODP_POOL_INVALID)
LOG_ABORT("Failed to create transmit pool\n");
diff --git a/test/performance/odp_scheduling.c b/test/performance/odp_scheduling.c
index 42b21cfff..4492742c3 100644
--- a/test/performance/odp_scheduling.c
+++ b/test/performance/odp_scheduling.c
@@ -927,7 +927,7 @@ int main(int argc, char *argv[])
params.buf.num = MSG_POOL_SIZE/sizeof(test_message_t);
params.type = ODP_POOL_BUFFER;
- pool = odp_pool_create("msg_pool", ODP_SHM_NULL, &params);
+ pool = odp_pool_create("msg_pool", &params);
if (pool == ODP_POOL_INVALID) {
LOG_ERR("Pool create failed.\n");