ovs-numa: Introduce function to set current thread affinity.
authorDaniele Di Proietto <diproiettod@vmware.com>
Tue, 7 Jun 2016 00:05:49 +0000 (17:05 -0700)
committerDaniele Di Proietto <diproiettod@vmware.com>
Tue, 7 Jun 2016 18:15:01 +0000 (11:15 -0700)
commit6930c7e01c3f4ee8f4a9360d293d065f35588bf0
tree1b98ea52b1686ee452a75acc59c43a85b41fc109
parent93ce57623f67547d4873889c77ec5250728b304f
ovs-numa: Introduce function to set current thread affinity.

This commit moves the code that sets the pmd threads affinity from
netdev-dpdk to ovs-numa.  There's one small part left in netdev-dpdk, to
set the lcore_id.

Now dpif-netdev will call both modules (ovs-numa and netdev-dpdk) when
starting a pmd thread.

This change will allow having a dummy implementation of the set affinity
call, for testing purposes.

Signed-off-by: Daniele Di Proietto <diproiettod@vmware.com>
Acked-by: Ilya Maximets <i.maximets@samsung.com>
lib/dpif-netdev.c
lib/netdev-dpdk.c
lib/netdev-dpdk.h
lib/ovs-numa.c
lib/ovs-numa.h