aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_private.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-01-15 01:30:46 +0000
committerDave Barach <openvpp@barachs.net>2020-01-16 15:18:32 +0000
commit6e3c1f8ec3faa8f0cad591fada32ad2f506ec0a0 (patch)
tree005715df713ab91b9c142a9563900cbdbf299590 /src/vcl/vcl_private.h
parentff2fad1701d8274d602cc46f3f2323154d96dc9f (diff)
vcl: add rx event on epoll ctl if needed
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ib6d0387076a4bb0b52e4cdfdcd62b6060b704fe6
Diffstat (limited to 'src/vcl/vcl_private.h')
-rw-r--r--src/vcl/vcl_private.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index db4bcd315b6..30d3774fa93 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -518,6 +518,14 @@ vcl_session_is_ct (vcl_session_t * s)
}
static inline u8
+vcl_session_is_cl (vcl_session_t * s)
+{
+ if (s->session_type == VPPCOM_PROTO_UDP)
+ return 1;
+ return 0;
+}
+
+static inline u8
vcl_session_is_open (vcl_session_t * s)
{
return ((s->session_state & STATE_OPEN)