mirror of
https://github.com/openvswitch/ovs
synced 2025-08-31 14:25:26 +00:00
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>
This commit is contained in:
@@ -2839,7 +2839,8 @@ pmd_thread_main(void *f_)
|
||||
|
||||
/* Stores the pmd thread's 'pmd' to 'per_pmd_key'. */
|
||||
ovsthread_setspecific(pmd->dp->per_pmd_key, pmd);
|
||||
pmd_thread_setaffinity_cpu(pmd->core_id);
|
||||
ovs_numa_thread_setaffinity_core(pmd->core_id);
|
||||
dpdk_set_lcore_id(pmd->core_id);
|
||||
poll_cnt = pmd_load_queues_and_ports(pmd, &poll_list);
|
||||
reload:
|
||||
emc_cache_init(&pmd->flow_cache);
|
||||
|
Reference in New Issue
Block a user