diff mbox

[API-NEXT,1/4] linux-gen: pktio ipc: ring changes

Message ID 1481313005-9281-2-git-send-email-maxim.uvarov@linaro.org
State Superseded
Headers show

Commit Message

Maxim Uvarov Dec. 9, 2016, 7:50 p.m. UTC
Make rings visible by other processes.

Signed-off-by: Maxim Uvarov <maxim.uvarov@linaro.org>

---
 platform/linux-generic/pktio/ring.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

-- 
2.7.1.250.gff4ea60
diff mbox

Patch

diff --git a/platform/linux-generic/pktio/ring.c b/platform/linux-generic/pktio/ring.c
index cc84e8a..aeda04b 100644
--- a/platform/linux-generic/pktio/ring.c
+++ b/platform/linux-generic/pktio/ring.c
@@ -160,7 +160,7 @@  _ring_create(const char *name, unsigned count, unsigned flags)
 	odp_shm_t shm;
 
 	if (flags & _RING_SHM_PROC)
-		shm_flag = ODP_SHM_PROC;
+		shm_flag = ODP_SHM_PROC | ODP_SHM_EXPORT;
 	else
 		shm_flag = 0;