diff options
author | Jon Loeliger <jdl@netgate.com> | 2020-01-31 13:34:56 -0600 |
---|---|---|
committer | Damjan Marion <dmarion@me.com> | 2020-02-11 13:53:09 +0000 |
commit | 4a06846dd668d7f687e6770215c38e8feb5f1740 (patch) | |
tree | e7f92b20469ab32f7da5028b9e5a5f29aa5e277a /src/vnet/vxlan/vxlan.c | |
parent | deb6f784edbaddd2e60e0d6ac9927f17c4214ad2 (diff) |
vlib: Skip core 0 if workers are configured.
According to the description in the startup.conf, the assignment
of worker threads starts with the lcore following the main_lcore.
A non-zero skip_cores will correctly achieve this assignment.
However, prior to this patch when workers are assigned, the code
picks up and assigns core 0 even thought it shouldn't.
This patch determins if a non-zero number of workers are desired
and if so, marks CPU unavailable for a worker assignment.
Type: fix
Change-Id: I1fdf73a6f218dcbf146fda2efc90c553f7cd6d20
Signed-off-by: Jon Loeliger <jdl@netgate.com>
Diffstat (limited to 'src/vnet/vxlan/vxlan.c')
0 files changed, 0 insertions, 0 deletions