eal/freebsd: fix use of newer cpuset macros
authorDavid Marchand <david.marchand@redhat.com>
Fri, 20 May 2022 18:10:50 +0000 (19:10 +0100)
committerDavid Marchand <david.marchand@redhat.com>
Tue, 24 May 2022 10:48:11 +0000 (12:48 +0200)
commit2f51bc9c27a4f1da674d66499667155663dcc419
tree9a7d397b06d66211c8ab75f4106a0c31289151a7
parent981a025741f80b4036f994ed30b04e757299ab19
eal/freebsd: fix use of newer cpuset macros

FreeBSD has updated its CPU macros to align more with the definitions
used on Linux[1]. Unfortunately, while this makes compatibility better
in future, it means we need to have both legacy and newer definition
support. Use a meson check to determine which set of macros are used.

[1] https://cgit.freebsd.org/src/commit/?id=e2650af157bc

Bugzilla ID: 1014
Fixes: c3568ea37670 ("eal: restrict control threads to startup CPU affinity")
Fixes: b6be16acfeb1 ("eal: fix control thread affinity with --lcores")
Cc: stable@dpdk.org
Signed-off-by: David Marchand <david.marchand@redhat.com>
Signed-off-by: Bruce Richardson <bruce.richardson@intel.com>
Tested-by: Daxue Gao <daxuex.gao@intel.com>
lib/eal/freebsd/include/rte_os.h
lib/eal/freebsd/meson.build