diff options
author | Florin Coras <fcoras@cisco.com> | 2021-10-01 14:57:03 -0700 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2021-10-04 18:26:06 +0000 |
commit | 41bc8615096b8a7d92707792dfd2b14ded40773e (patch) | |
tree | 6440b24921d7fae155a27ecb05c60246b8ad1434 /src/vcl/vppcom.c | |
parent | 4223ff14b21bcac6fb9e6409a80a164e4b517c46 (diff) |
vcl: remove unsed configs
Type: refactor
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: If755cf38e6b30e8757f2c6fb4cf5e6642fa87e52
Diffstat (limited to 'src/vcl/vppcom.c')
-rw-r--r-- | src/vcl/vppcom.c | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/vcl/vppcom.c b/src/vcl/vppcom.c index 987a19c896a..b91c3a3bff4 100644 --- a/src/vcl/vppcom.c +++ b/src/vcl/vppcom.c @@ -1368,8 +1368,8 @@ vppcom_app_create (const char *app_name) vcm->main_cpu = pthread_self (); vcm->main_pid = getpid (); vcm->app_name = format (0, "%s", app_name); - fifo_segment_main_init (&vcm->segment_main, vcl_cfg->segment_baseva, - 20 /* timeout in secs */ ); + fifo_segment_main_init (&vcm->segment_main, (uword) ~0, + 20 /* timeout in secs */); pool_alloc (vcm->workers, vcl_cfg->max_workers); clib_spinlock_init (&vcm->workers_lock); clib_rwlock_init (&vcm->segment_table_lock); @@ -1645,9 +1645,6 @@ vppcom_session_listen (uint32_t listen_sh, uint32_t q_len) if (!listen_session || (listen_session->flags & VCL_SESSION_F_IS_VEP)) return VPPCOM_EBADFD; - if (q_len == 0 || q_len == ~0) - q_len = vcm->cfg.listen_queue_size; - listen_vpp_handle = listen_session->vpp_handle; if (listen_session->session_state == VCL_STATE_LISTEN) { |