Add dpdk per-interface startup config parameter to specify worker threads 33/1533/3
authorDamjan Marion <damarion@cisco.com>
Mon, 13 Jun 2016 22:36:09 +0000 (00:36 +0200)
committerDamjan Marion <damarion@cisco.com>
Tue, 14 Jun 2016 18:15:43 +0000 (18:15 +0000)
commit0b14072b6925c83d371657058a4b2922aa6541da
treea0143d1f53d3e0655ed1cee13e2f3a69673e313e
parentd61b4393584836332ceb4696cfd45233c08df9a8
Add dpdk per-interface startup config parameter to specify worker threads

New parameter allows specifying which worker threads will process rx
queues. Parameter arguments is list of cores and number of worker specified
must be equal to the number of rx queues configured (num-rx-queues). If
num-rx-queues is not specified, it will be automatically set to
number of workers.

Sample config:

dpdk {
  dev 0000:86:00.0 {
    workers 2,3
    num-rx-queues 2
  }
}

Change-Id: I88bc381e0e542eb02def09a726c6f04de3e1ae17
Signed-off-by: Damjan Marion <damarion@cisco.com>
vnet/vnet/devices/dpdk/dpdk.h
vnet/vnet/devices/dpdk/init.c
vppinfra/vppinfra/bitmap.h