]> git.proxmox.com Git - ovs.git/commitdiff
netdev-dpdk: Fix coremask logic.
authorKevin Traynor <kevin.traynor@intel.com>
Thu, 19 May 2016 12:51:31 +0000 (13:51 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Sat, 21 May 2016 01:04:05 +0000 (18:04 -0700)
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")
Signed-off-by: Kevin Traynor <kevin.traynor@intel.com>
Acked-by: Aaron Conole <aconole@redhat.com>
Acked-by: Daniele Di Proietto <diproiettod@vmware.com>
lib/netdev-dpdk.c

index 87879d5c6e4dc11fc4268e1bf8fa62176b7cae34..5d5351d7c645e18b5428e3e76c1dba44f8627dcc 100644 (file)
@@ -3189,7 +3189,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) {