eal/bsd: fix core detection
authorDavid Marchand <david.marchand@6wind.com>
Wed, 8 Oct 2014 08:43:31 +0000 (10:43 +0200)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Thu, 9 Oct 2014 15:52:06 +0000 (17:52 +0200)
commitb1a3e0f773db45007717027d03d08fd41818b816
tree2d9335348916a0b44d5435548637c2de42312254
parent17c696b4ff3ee6327f037a1412d779c5f2b948f2
eal/bsd: fix core detection

Following "options parsing" patchset (commit d7cb626f and 489a9d6c), core
detection is not working correctly on bsd.

./x86_64-native-bsdapp-gcc/app/test -c f -n 4 -- -i
[...]
EAL: lcore 0 unavailable
EAL: invalid coremask

Align bsd to linux:
- commit f563a372 "eal: fix recording of detected/enabled logical cores"
- commit 4f04db8b "eal: check coremask against detected lcores"

Reported-by: Zhan, Zhaochen <zhaochen.zhan@intel.com>
Signed-off-by: David Marchand <david.marchand@6wind.com>
Acked-by: Bruce Richardson <bruce.richardson@intel.com>
Acked-by: Neil Horman <nhorman@tuxdriver.com>
Tested-by: Zhaochen Zhan <zhaochen.zhan@intel.com>
lib/librte_eal/bsdapp/eal/eal.c
lib/librte_eal/bsdapp/eal/eal_lcore.c