Code Review
/
vpp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
review
|
tree
raw
|
patch
| inline |
side by side
(parent:
67a6dcb
)
vcl: handle rx notifications on reused sessions
43/23043/3
author
Florin Coras
<fcoras@cisco.com>
Mon, 28 Oct 2019 20:22:37 +0000
(13:22 -0700)
committer
Dave Barach
<openvpp@barachs.net>
Tue, 29 Oct 2019 20:09:55 +0000
(20:09 +0000)
Type: fix
Ignore events on sessions that have been reused but not fully
initialized.
Change-Id: Ided020eb5245d665d0a2e4a9e1f8a6dddebae009
Signed-off-by: Florin Coras <fcoras@cisco.com>
src/vcl/vppcom.c
patch
|
blob
|
history
diff --git
a/src/vcl/vppcom.c
b/src/vcl/vppcom.c
index
a827399
..
47ea7a4
100644
(file)
--- a/
src/vcl/vppcom.c
+++ b/
src/vcl/vppcom.c
@@
-1988,6
+1988,8
@@
vppcom_session_write_msg (uint32_t session_handle, void *buf, size_t n)
}
#define vcl_fifo_rx_evt_valid_or_break(_s) \
+if (PREDICT_FALSE (!_s->rx_fifo)) \
+ break; \
if (PREDICT_FALSE (svm_fifo_is_empty (_s->rx_fifo))) \
{ \
if (!vcl_session_is_ct (_s)) \