summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2019-04-09 11:05:13 -0700
committerDamjan Marion <dmarion@me.com>2019-04-09 23:46:13 +0000
commited1d872a8c2e3c2ed2cc5b36aa90ded599cf91c4 (patch)
tree10336a4de4b56de0dcc7287a3bfe60b6dea8faa7 /src
parentaf86c6396b36968a081cc1ed5a9f5ee37ff544fa (diff)
session: fix session flags
Change-Id: I681169b82c661b7f0bf19f09d07d76ac1d3ed173 Signed-off-by: Aloys Augustin <aloaugus@cisco.com> Signed-off-by: Nathan Skrzypczak <nathan.skrzypczak@gmail.com> Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src')
-rw-r--r--src/vnet/session/session.c3
-rw-r--r--src/vnet/session/session_types.h4
2 files changed, 2 insertions, 5 deletions
diff --git a/src/vnet/session/session.c b/src/vnet/session/session.c
index 9dc35238795..31539dfd6c3 100644
--- a/src/vnet/session/session.c
+++ b/src/vnet/session/session.c
@@ -574,9 +574,6 @@ session_main_flush_enqueue_events (u8 transport_proto, u32 thread_index)
continue;
}
- if (svm_fifo_has_event (s->rx_fifo) || svm_fifo_is_empty (s->rx_fifo))
- continue;
-
if (PREDICT_FALSE (session_enqueue_notify_inline (s)))
errors++;
}
diff --git a/src/vnet/session/session_types.h b/src/vnet/session/session_types.h
index 0845f023ad9..02dc40ab0cf 100644
--- a/src/vnet/session/session_types.h
+++ b/src/vnet/session/session_types.h
@@ -130,8 +130,8 @@ typedef enum
typedef enum session_flags_
{
- SESSION_F_RX_EVT,
- SESSION_F_PROXY
+ SESSION_F_RX_EVT = 1,
+ SESSION_F_PROXY = (1 << 1),
} session_flags_t;
typedef struct session_