Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
| inline |
side by side
api: fix handlers that explicitly depend on svm queue
[vpp.git]
/
src
/
vlibmemory
/
memory_shared.c
diff --git
a/src/vlibmemory/memory_shared.c
b/src/vlibmemory/memory_shared.c
index
19285df
..
c9ace1b
100644
(file)
--- a/
src/vlibmemory/memory_shared.c
+++ b/
src/vlibmemory/memory_shared.c
@@
-681,6
+681,12
@@
vl_msg_api_send_shmem (svm_queue_t * q, u8 * elem)
(void) svm_queue_add (q, elem, 0 /* nowait */ );
}
+int
+vl_mem_api_can_send (svm_queue_t * q)
+{
+ return (q->cursize < q->maxsize);
+}
+
void
vl_msg_api_send_shmem_nolock (svm_queue_t * q, u8 * elem)
{