Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
session: allocate cb messages from client ring
[vpp.git]
/
src
/
vlibmemory
/
memory_shared.c
diff --git
a/src/vlibmemory/memory_shared.c
b/src/vlibmemory/memory_shared.c
index
021c54e
..
7af2433
100644
(file)
--- a/
src/vlibmemory/memory_shared.c
+++ b/
src/vlibmemory/memory_shared.c
@@
-60,6
+60,8
@@
vl_msg_api_alloc_internal (int nbytes, int pool, int may_return_null)
nbytes += 4;
#endif
+ ASSERT (pool == 0 || vlib_get_thread_index () == 0);
+
if (shmem_hdr == 0)
{
clib_warning ("shared memory header NULL");