aboutsummaryrefslogtreecommitdiffstats
path: root/src/vcl/vcl_private.h
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2020-10-15 10:54:47 -0700
committerFlorin Coras <florin.coras@gmail.com>2020-10-16 18:35:40 +0000
commitdfffdd7faff2d0ff4b3a0df6f755044b68d3234a (patch)
treec791adab1e7ab3c638c03d51709829f6b3aec006 /src/vcl/vcl_private.h
parent8c1afb56b6a479d6595444238815c4ced0e754ea (diff)
vcl: remove accept state and rename connect to ready
Type: refactor Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: I57fcc6f9c154a6f83e0d59873b76c2e380e6f90a
Diffstat (limited to 'src/vcl/vcl_private.h')
-rw-r--r--src/vcl/vcl_private.h6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/vcl/vcl_private.h b/src/vcl/vcl_private.h
index e03804f6c11..8e4c229ea76 100644
--- a/src/vcl/vcl_private.h
+++ b/src/vcl/vcl_private.h
@@ -65,9 +65,8 @@ typedef enum
typedef enum vcl_session_state_
{
VCL_STATE_CLOSED,
- VCL_STATE_CONNECT,
VCL_STATE_LISTEN,
- VCL_STATE_ACCEPT,
+ VCL_STATE_READY,
VCL_STATE_VPP_CLOSING,
VCL_STATE_DISCONNECT,
VCL_STATE_DETACHED,
@@ -557,8 +556,7 @@ vcl_session_is_cl (vcl_session_t * s)
static inline u8
vcl_session_is_ready (vcl_session_t * s)
{
- return (s->session_state == VCL_STATE_ACCEPT
- || s->session_state == VCL_STATE_CONNECT
+ return (s->session_state == VCL_STATE_READY
|| s->session_state == VCL_STATE_VPP_CLOSING);
}