diff options
author | Florin Coras <fcoras@cisco.com> | 2019-04-02 17:06:05 -0700 |
---|---|---|
committer | Florin Coras <florin.coras@gmail.com> | 2019-04-03 02:10:04 +0000 |
commit | 6575a9a5ac10a2359ffbdb6eb61ec10f62e47de4 (patch) | |
tree | 00d8d8fc2b5b6ea9540011e526f557afe0cac65a /src/vnet/session | |
parent | fe269f3c6f350444a17e4829311ac64dd0175641 (diff) |
session: do not enable pre-input node with 0 workers
Change-Id: I5c9e27b664ff1a8a74a6c1388f98af63571db7a5
Signed-off-by: Florin Coras <fcoras@cisco.com>
Diffstat (limited to 'src/vnet/session')
-rw-r--r-- | src/vnet/session/application_local.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/vnet/session/application_local.c b/src/vnet/session/application_local.c index d1df657229d..856f7489f38 100644 --- a/src/vnet/session/application_local.c +++ b/src/vnet/session/application_local.c @@ -23,6 +23,9 @@ ct_enable_disable_main_pre_input_node (u8 is_add) { u32 n_conns; + if (!vlib_num_workers ()) + return; + n_conns = pool_elts (connections); if (n_conns > 2) return; |