eal: fix control threads pinnning
authorDavid Marchand <david.marchand@redhat.com>
Tue, 19 Feb 2019 20:41:10 +0000 (21:41 +0100)
committerThomas Monjalon <thomas@monjalon.net>
Thu, 7 Mar 2019 18:13:48 +0000 (19:13 +0100)
commit759b9be661222768356ee50d8d15dc4d33646432
tree237267cdacfddfef78b885e8f5b1c60bfbeacbe6
parentb206376438f1cb2ccd389f3be4e6b2e459c99ea9
eal: fix control threads pinnning

pthread_setaffinity_np returns a >0 value on error.
We could end up letting the ctrl threads on the current process cpu
affinity.

Fixes: d651ee4919cd ("eal: set affinity for control threads")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Reviewed-by: Anatoly Burakov <anatoly.burakov@intel.com>
Reviewed-by: Olivier Matz <olivier.matz@6wind.com>
lib/librte_eal/common/eal_common_thread.c