Only set the thread affinity back to the pre rte_eal_init() value when the user has not specified a coremask.
Fixes: 88964e6428dc("netdev-dpdk: Autofill lcore coremask if absent") CC: Aaron Conole <acon...@redhat.com> Signed-off-by: Kevin Traynor <kevin.tray...@intel.com> --- lib/netdev-dpdk.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/lib/netdev-dpdk.c b/lib/netdev-dpdk.c index af86d19..79fcd1a 100644 --- a/lib/netdev-dpdk.c +++ b/lib/netdev-dpdk.c @@ -3188,7 +3188,7 @@ dpdk_init__(const struct smap *ovs_other_config) } /* Set the main thread affinity back to pre rte_eal_init() value */ - if (!auto_determine) { + if (auto_determine) { err = pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset); if (err) { -- 1.7.4.1 _______________________________________________ dev mailing list dev@openvswitch.org http://openvswitch.org/mailman/listinfo/dev