diff mbox

[2/4] linux-generic: pools: rename odp_buffer_pool_init_global to odp_pool_init_global

Message ID 1423859689-9536-1-git-send-email-bill.fischofer@linaro.org
State Superseded
Headers show

Commit Message

Bill Fischofer Feb. 13, 2015, 8:34 p.m. UTC
Signed-off-by: Bill Fischofer <bill.fischofer@linaro.org>
---
 platform/linux-generic/include/odp_internal.h | 2 +-
 platform/linux-generic/odp_init.c             | 4 ++--
 platform/linux-generic/odp_pool.c             | 6 +++---
 3 files changed, 6 insertions(+), 6 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-generic/include/odp_internal.h b/platform/linux-generic/include/odp_internal.h
index cd1adeb..b250ed6 100644
--- a/platform/linux-generic/include/odp_internal.h
+++ b/platform/linux-generic/include/odp_internal.h
@@ -38,7 +38,7 @@  int odp_thread_term_local(void);
 int odp_shm_init_global(void);
 int odp_shm_init_local(void);
 
-int odp_buffer_pool_init_global(void);
+int odp_pool_init_global(void);
 
 int odp_pktio_init_global(void);
 int odp_pktio_init_local(void);
diff --git a/platform/linux-generic/odp_init.c b/platform/linux-generic/odp_init.c
index cd8dc46..b00506d 100644
--- a/platform/linux-generic/odp_init.c
+++ b/platform/linux-generic/odp_init.c
@@ -37,8 +37,8 @@  int odp_init_global(odp_init_t *params  ODP_UNUSED,
 		return -1;
 	}
 
-	if (odp_buffer_pool_init_global()) {
-		ODP_ERR("ODP buffer pool init failed.\n");
+	if (odp_pool_init_global()) {
+		ODP_ERR("ODP pool init failed.\n");
 		return -1;
 	}
 
diff --git a/platform/linux-generic/odp_pool.c b/platform/linux-generic/odp_pool.c
index 6bcb777..c07392f 100644
--- a/platform/linux-generic/odp_pool.c
+++ b/platform/linux-generic/odp_pool.c
@@ -62,12 +62,12 @@  void *pool_entry_ptr[ODP_CONFIG_POOLS];
 /* Local cache for buffer alloc/free acceleration */
 static __thread local_cache_t local_cache[ODP_CONFIG_POOLS];
 
-int odp_buffer_pool_init_global(void)
+int odp_pool_init_global(void)
 {
 	uint32_t i;
 	odp_shm_t shm;
 
-	shm = odp_shm_reserve("odp_buffer_pools",
+	shm = odp_shm_reserve("odp_pools",
 			      sizeof(pool_table_t),
 			      sizeof(pool_entry_t), 0);
 
@@ -87,7 +87,7 @@  int odp_buffer_pool_init_global(void)
 		pool_entry_ptr[i] = pool;
 	}
 
-	ODP_DBG("\nBuffer pool init global\n");
+	ODP_DBG("\nPool init global\n");
 	ODP_DBG("  pool_entry_s size     %zu\n", sizeof(struct pool_entry_s));
 	ODP_DBG("  pool_entry_t size     %zu\n", sizeof(pool_entry_t));
 	ODP_DBG("  odp_buffer_hdr_t size %zu\n", sizeof(odp_buffer_hdr_t));