diff mbox

[3/4] dpdk: add shared memory reserve flag

Message ID 1410995157-6905-4-git-send-email-maxim.uvarov@linaro.org
State Accepted
Commit 8c341b87ebeae1431c74e920db6aa0d45402b12c
Headers show

Commit Message

Maxim Uvarov Sept. 17, 2014, 11:05 p.m. UTC
dpdk shares same headers with linux-generic for
odp_shm_reserve(), add also flag to function calls.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>
---
 platform/linux-dpdk/odp_buffer_pool.c | 3 ++-
 platform/linux-dpdk/odp_packet_io.c   | 2 +-
 platform/linux-dpdk/odp_queue.c       | 2 +-
 3 files changed, 4 insertions(+), 3 deletions(-)
diff mbox

Patch

diff --git a/platform/linux-dpdk/odp_buffer_pool.c b/platform/linux-dpdk/odp_buffer_pool.c
index 805ce68..894f8dd 100644
--- a/platform/linux-dpdk/odp_buffer_pool.c
+++ b/platform/linux-dpdk/odp_buffer_pool.c
@@ -72,7 +72,8 @@  int odp_buffer_pool_init_global(void)
 
 	pool_tbl = odp_shm_reserve("odp_buffer_pools",
 				   sizeof(pool_table_t),
-				   sizeof(pool_entry_t));
+				   sizeof(pool_entry_t),
+				   0);
 
 	if (pool_tbl == NULL)
 		return -1;
diff --git a/platform/linux-dpdk/odp_packet_io.c b/platform/linux-dpdk/odp_packet_io.c
index 3124175..ea06520 100644
--- a/platform/linux-dpdk/odp_packet_io.c
+++ b/platform/linux-dpdk/odp_packet_io.c
@@ -55,7 +55,7 @@  int odp_pktio_init_global(void)
 
 	pktio_tbl = odp_shm_reserve("odp_pktio_entries",
 				    sizeof(pktio_table_t),
-				    sizeof(pktio_entry_t));
+				    sizeof(pktio_entry_t), 0);
 	if (pktio_tbl == NULL)
 		return -1;
 
diff --git a/platform/linux-dpdk/odp_queue.c b/platform/linux-dpdk/odp_queue.c
index 554b8ea..5d4522a 100644
--- a/platform/linux-dpdk/odp_queue.c
+++ b/platform/linux-dpdk/odp_queue.c
@@ -98,7 +98,7 @@  int odp_queue_init_global(void)
 
 	queue_tbl = odp_shm_reserve("odp_queues",
 				    sizeof(queue_table_t),
-				    sizeof(queue_entry_t));
+				    sizeof(queue_entry_t), 0);
 
 	if (queue_tbl == NULL)
 		return -1;