vlib: disable cpu pinning if not configured 07/34707/13
authorBenoît Ganne <bganne@cisco.com>
Thu, 9 Dec 2021 17:24:21 +0000 (18:24 +0100)
committerDamjan Marion <dmarion@me.com>
Thu, 14 Apr 2022 19:20:43 +0000 (19:20 +0000)
commit8b153de6cdd8d87ae38447487565b346e735dc86
tree1d1a77b6e3949815abee01668cba360372293078
parentaad4298df0d31abe15ac40d0560b0bf196d6c1b5
vlib: disable cpu pinning if not configured

In some environment like when running a lot of functional tests, it can
be useful to run more VPP instances than CPU and let the Linux scheduler
decide what to do. This change disable cpu pinning altogether in the
single-threaded case, provided that no main-core is explicitely
specified in the config

Type: improvement

Change-Id: I8c2f36fdd49c00f9adaaeb4c81aefb27c3420a9b
Signed-off-by: Benoît Ganne <bganne@cisco.com>
Signed-off-by: Mohammed Hawari <mohammed@hawari.fr>
src/vlib/threads.c
src/vlib/threads_cli.c
src/vpp/vnet/main.c