netdev-dpdk: Improve pthread_getaffinity_np() fail handling.
authorKevin Traynor <kevin.traynor@intel.com>
Thu, 19 May 2016 12:51:32 +0000 (13:51 +0100)
committerDaniele Di Proietto <diproiettod@vmware.com>
Sat, 21 May 2016 01:04:22 +0000 (18:04 -0700)
commitd8e2f4ccf26cfb81539b198f9a523a71316707ec
tree112aac96ec7fbf751265daea7487319cc05a0635
parent30149e29732468e4129da44f84ea83d6dae84411
netdev-dpdk: Improve pthread_getaffinity_np() fail handling.

Prevent pthread_setaffinity_np() being called with a potentially
invalid cpu_set_t and add a default (core 0x1).

Also, only call pthread_getaffinity_np() if no dpdk-lcore-mask specified.

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