Message ID | 1468874578-4123-1-git-send-email-maxim.uvarov@linaro.org |
---|---|
State | Accepted |
Commit | 2c80ef58dba783bfbf11060cab273e57ba6d0e62 |
Headers | show |
diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c index ec6d86a..419f03f 100644 --- a/platform/linux-generic/odp_pool.c +++ b/platform/linux-generic/odp_pool.c @@ -462,10 +462,11 @@ odp_pool_t odp_pool_create(const char *name, odp_pool_param_t *params) { #ifdef _ODP_PKTIO_IPC - return _pool_create(name, params, ODP_SHM_PROC); -#else + if (params && (params->type == ODP_POOL_PACKET)) + return _pool_create(name, params, ODP_SHM_PROC); +#endif return _pool_create(name, params, 0); -#endif + } odp_pool_t odp_pool_lookup(const char *name)
Instead of placing all allocation to shared memory, place only packets pool. Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org> --- platform/linux-generic/odp_pool.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) -- 2.7.1.250.gff4ea60