summaryrefslogtreecommitdiffstats
path: root/src/vnet
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2021-03-25 11:24:33 -0700
committerDave Barach <openvpp@barachs.net>2021-03-25 23:50:14 +0000
commit89c98a4bff101ad4270724bde7ca6f21ba4c8482 (patch)
tree95178e327777d4112e6034ebcf18bab7a0fd1001 /src/vnet
parent22af286a2976339b25e11c23ac273e1781138fb7 (diff)
svm: add producer wait function
Type: refactor Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I9488ad7e045c908b60b5821d9c48583f6d513c2f
Diffstat (limited to 'src/vnet')
-rw-r--r--src/vnet/session/application_interface.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vnet/session/application_interface.h b/src/vnet/session/application_interface.h
index 87bcd902254..2683e356716 100644
--- a/src/vnet/session/application_interface.h
+++ b/src/vnet/session/application_interface.h
@@ -600,7 +600,7 @@ app_send_io_evt_to_vpp (svm_msg_q_t * mq, u32 session_index, u8 evt_type,
svm_msg_q_lock (mq);
while (svm_msg_q_ring_is_full (mq, SESSION_MQ_IO_EVT_RING)
|| svm_msg_q_is_full (mq))
- svm_msg_q_wait (mq, SVM_MQ_WAIT_FULL);
+ svm_msg_q_wait_prod (mq);
msg = svm_msg_q_alloc_msg_w_ring (mq, SESSION_MQ_IO_EVT_RING);
evt = (session_event_t *) svm_msg_q_msg_data (mq, &msg);
evt->session_index = session_index;