Code Review
/
vpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
tcp: separate active and passive establish timers
[vpp.git]
/
src
/
svm
/
test_svm_message_queue.c
diff --git
a/src/svm/test_svm_message_queue.c
b/src/svm/test_svm_message_queue.c
index
69ffd13
..
d512527
100644
(file)
--- a/
src/svm/test_svm_message_queue.c
+++ b/
src/svm/test_svm_message_queue.c
@@
-35,7
+35,7
@@
test1 (int verbose)
void *oldheap;
int i;
void *oldheap;
int i;
- memset (ssvm, 0, sizeof (*ssvm));
+
clib_
memset (ssvm, 0, sizeof (*ssvm));
ssvm->ssvm_size = 1 << 20;
ssvm->i_am_master = 1;
ssvm->ssvm_size = 1 << 20;
ssvm->i_am_master = 1;
@@
-88,9
+88,9
@@
test1 (int verbose)
test1_error ("failed: msg alloc3");
*(u32 *)svm_msg_q_msg_data (mq, &msg2) = 123;
test1_error ("failed: msg alloc3");
*(u32 *)svm_msg_q_msg_data (mq, &msg2) = 123;
- svm_msg_q_add (mq, msg2, SVM_Q_NOWAIT);
+ svm_msg_q_add (mq,
&
msg2, SVM_Q_NOWAIT);
for (i = 0; i < 12; i++)
for (i = 0; i < 12; i++)
- svm_msg_q_add (mq, msg[i], SVM_Q_NOWAIT);
+ svm_msg_q_add (mq,
&
msg[i], SVM_Q_NOWAIT);
if (svm_msg_q_sub (mq, &msg2, SVM_Q_NOWAIT, 0))
test1_error ("failed: dequeue1");
if (svm_msg_q_sub (mq, &msg2, SVM_Q_NOWAIT, 0))
test1_error ("failed: dequeue1");
@@
-169,6
+169,7
@@
main (int argc, char *argv[])
unformat_input_t i;
int r;
unformat_input_t i;
int r;
+ clib_mem_init_thread_safe (0, 256 << 20);
unformat_init_command_line (&i, argv);
r = test_svm_message_queue (&i);
unformat_free (&i);
unformat_init_command_line (&i, argv);
r = test_svm_message_queue (&i);
unformat_free (&i);