diff options
author | Florin Coras <fcoras@cisco.com> | 2017-11-30 16:07:39 -0500 |
---|---|---|
committer | Dave Wallace <dwallacelf@gmail.com> | 2017-12-01 17:50:54 +0000 |
commit | 7a2e1bd6c7137552399d7e0cfb414e0d59b3f98f (patch) | |
tree | 55fbffa431362434228436c7712ae19731774df3 /src/vlibmemory/memory_shared.c | |
parent | 7a64019a768438cfca4cc9e34d9d8e4c34f54d47 (diff) |
session: allocate cb messages from client ring
Change-Id: Ib644a1840c5f24203b6968561f467fbe5e255055
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vlibmemory/memory_shared.c')
-rw-r--r-- | src/vlibmemory/memory_shared.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/vlibmemory/memory_shared.c b/src/vlibmemory/memory_shared.c index 021c54ef953..7af2433b44e 100644 --- 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"); |