From: Florin Coras Date: Mon, 28 Oct 2019 20:22:37 +0000 (-0700) Subject: vcl: handle rx notifications on reused sessions X-Git-Tag: v19.08.2~138 X-Git-Url: https://gerrit.fd.io/r/gitweb?a=commitdiff_plain;h=2172c35eb4738e5dd147fc1205f2719eeb3072d0;p=vpp.git vcl: handle rx notifications on reused sessions Type: fix Ignore events on sessions that have been reused but not fully initialized. Change-Id: Ided020eb5245d665d0a2e4a9e1f8a6dddebae009 Signed-off-by: Florin Coras (cherry picked from commit bd52e46fe8193182cce150292e9df1c517795011) --- diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 72ec4f4b966..70df75010c4 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -1971,6 +1971,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)) \