vlib: complain if workers are configured twice 44/25944/2
authorVladimir Isaev <visaev@netgate.com>
Tue, 17 Mar 2020 09:30:11 +0000 (12:30 +0300)
committerDamjan Marion <dmarion@me.com>
Sat, 21 Mar 2020 12:09:38 +0000 (12:09 +0000)
commit18a4a371646bccfd299e6a509e801a524aeb4c92
treea72cda0acabefbbd850d51f650d833c43289204c
parent2d822818210f7783244ea6b4343566cf0cd7c9e2
vlib: complain if workers are configured twice

Right now following configuration leads to crash:
cpu {
    corelist-workers 2
    workers 2
}

because threads count will be set to 2, but we have only
one core in coremask.

Type: fix
Signed-off-by: Vladimir Isaev <visaev@netgate.com>
Change-Id: Ia93b892733971e7c8ddfceaaec5f4eb8bf9063ac
src/vlib/threads.c