vnet: add device-input threadplacement infra 87/5787/3
authorDamjan Marion <damarion@cisco.com>
Mon, 20 Mar 2017 15:34:15 +0000 (16:34 +0100)
committerDamjan Marion <damarion@cisco.com>
Mon, 20 Mar 2017 15:34:15 +0000 (16:34 +0100)
commiteb743fad56b32cb20ad2d2cadc4760f9c25be5e1
tree4e5b6cd7b7635ee7269ab33300188de7fd42595d
parent95475a3661b95150c8d1e60a3942b91c2b5d06bc
vnet: add device-input threadplacement infra

This change adds two new debug CLI command:

- "show interface placmenet" to display which
thread (main or worker) is responsible for processing
interface rx queue

vpp# show interface placement
Thread 0 (vpp_main):
  node af-packet-input:
    host-vpp1 queue 0
Thread 1 (vpp_wk_0):
  node af-packet-input:
    host-virbr0 queue 0
Thread 2 (vpp_wk_1):
  node af-packet-input:
    host-vpp2 queue 0
    host-lxcbr0 queue 0

- "set interface placmenet" to assign thread (main or worker)
which process specific interface rx queue

vpp# set interface placement host-vpp1 queue 0 main

Change-Id: Id4dd00cf2b05e10fae2125ac7cb4411b446c5e9c
Signed-off-by: Damjan Marion <damarion@cisco.com>
src/vlib/threads.c
src/vnet/devices/af_packet/af_packet.c
src/vnet/devices/af_packet/af_packet.h
src/vnet/devices/af_packet/node.c
src/vnet/devices/devices.c
src/vnet/devices/devices.h
src/vnet/interface.h