+7
−4
Loading
This patch adds suport for 'detect' option in SPDK's ./configure, allowing configuring of DPDK to detect current number of cores during SPDK compilation. This is done by providing --max-lcores=detect as a parameter to ./configure, which triggers setting of '-Dmax_lcores=detect' in DPDK_OPTS passed to dpdkbuild/Makefile. DPDK then do detection of number of cores in the system during compilation, and sets RTE_MAX_LCORE to that value. Meson build system also generates a message displaying information about number of cores detected. E.g. for my system: " Message: Found 72 cores " Example usages: 1) use default value for RTE_MAX_LCORE: ./configure 2) detect the core number: ./configure --max-lcores=detect 3) Set RTE_MAX_LCORE to 256: ./configure --max-lcores=256 Change-Id: I2103c2d917f210aee4d1ef43584b1bd40dbfe43b Signed-off-by:Marcin Spiewak <marcin.spiewak@intel.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/17555 Community-CI: Mellanox Build Bot Reviewed-by:
Konrad Sztyber <konrad.sztyber@intel.com> Tested-by:
SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by:
Jim Harris <james.r.harris@intel.com>