diff options
author | Florin Coras <fcoras@cisco.com> | 2020-10-19 18:36:48 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2020-10-20 16:12:43 +0000 |
commit | 6c3b2187229c3a685c073ae0909729ed4dffb66d (patch) | |
tree | 4e7ae7a741074af041668a00cb3ca64c8a7a7e5b /src/vcl/vcl_locked.c | |
parent | 637c51fc40667dbfa968b225fff73b48e79b6df3 (diff) |
vcl: convert vep variables into flags
Type: improvement
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Ief017abc4879bc928746d9f5b9d2cfe04da89bd3
Diffstat (limited to 'src/vcl/vcl_locked.c')
-rw-r--r-- | src/vcl/vcl_locked.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/vcl/vcl_locked.c b/src/vcl/vcl_locked.c index 5758dc4b12d..d7f16a50de9 100644 --- a/src/vcl/vcl_locked.c +++ b/src/vcl/vcl_locked.c @@ -896,14 +896,15 @@ vls_mt_session_migrate (vcl_locked_session_t * vls) VDBG (1, "migrate session of worker (session): %u (%u) -> %u (%u)", vls->owner_vcl_wrk_index, src_sid, wrk_index, sid); - if (PREDICT_FALSE (session->is_vep && session->vep.next_sh != ~0)) + if (PREDICT_FALSE ((session->flags & VCL_SESSION_F_IS_VEP) + && session->vep.next_sh != ~0)) { /* TODO: rollback? */ VERR ("can't migrate nonempty epoll session"); ASSERT (0); return; } - else if (PREDICT_FALSE (!session->is_vep && + else if (PREDICT_FALSE (!(session->flags & VCL_SESSION_F_IS_VEP) && session->session_state != VCL_STATE_CLOSED)) { /* TODO: rollback? */ |