commit | 6575a9a5ac10a2359ffbdb6eb61ec10f62e47de4 | [log] [tgz] |
---|---|---|
author | Florin Coras <fcoras@cisco.com> | Tue Apr 02 17:06:05 2019 -0700 |
committer | Florin Coras <florin.coras@gmail.com> | Wed Apr 03 02:10:04 2019 +0000 |
tree | 00d8d8fc2b5b6ea9540011e526f557afe0cac65a | |
parent | fe269f3c6f350444a17e4829311ac64dd0175641 [diff] |
session: do not enable pre-input node with 0 workers Change-Id: I5c9e27b664ff1a8a74a6c1388f98af63571db7a5 Signed-off-by: Florin Coras <fcoras@cisco.com>
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c index d1df657..856f748 100644 --- a/src/vnet/session/application_local.c +++ b/src/vnet/session/application_local.c
@@ -23,6 +23,9 @@ { u32 n_conns; + if (!vlib_num_workers ()) + return; + n_conns = pool_elts (connections); if (n_conns > 2) return;