[ovs-dev] [PATCH v2 1/2] netdev-dpdk: Fix coremask logic.

Kevin Traynor kevin.traynor at intel.com
Tue May 10 13:40:43 UTC 2016


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 <aconole at redhat.com>
Signed-off-by: Kevin Traynor <kevin.traynor at 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




More information about the dev mailing list