diff options
author | Florin Coras <fcoras@cisco.com> | 2021-05-18 00:28:59 -0700 |
---|---|---|
committer | Dave Barach <openvpp@barachs.net> | 2021-05-18 18:14:53 +0000 |
commit | fb50bc31bfd54902231925749cacbbcd6dfccc96 (patch) | |
tree | 125bc081d141c3478ff8f3d6dad7a314726c1aeb /src/vnet/session/transport.c | |
parent | a48dffeed3d5182d1faa41f2ba64beb20bf10ea0 (diff) |
tls: fix dtls with no workers
Type: fix
Signed-off-by: Florin Coras <fcoras@cisco.com>
Change-Id: Iecc33fda7f28c037289775ffe0525a50f89a2b8c
Diffstat (limited to 'src/vnet/session/transport.c')
-rw-r--r-- | src/vnet/session/transport.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/vnet/session/transport.c b/src/vnet/session/transport.c index 2c88a4c4931..5975197609d 100644 --- a/src/vnet/session/transport.c +++ b/src/vnet/session/transport.c @@ -853,7 +853,11 @@ transport_init (void) smm->local_endpoints_table_memory); num_threads = 1 /* main thread */ + vtm->n_threads; if (num_threads > 1) - clib_spinlock_init (&local_endpoints_lock); + { + clib_spinlock_init (&local_endpoints_lock); + /* Main not polled if there are workers */ + smm->transport_cl_thread = 1; + } } /* |