In current versions of DPDK (at least as of 24.11), max
amount of cores available determined at compile_time.
Unless machine type 'native' is used, it is statically set
per platform and for most of them equals to 128.
Add a new option to allow user to redefine max amount of
lcores available to DPDK.
Type: make
Change-Id: Ic4356e12ca75a5c84aeb3bee72de432a23aa6f8a
Signed-off-by: Vladimir Smirnov <[email protected]>
DPDK_FAILSAFE_PMD ?= n
DPDK_MACHINE ?= default
DPDK_MLX_IBV_LINK ?= static
+# On most of the systems, default value for max lcores is 128
+DPDK_MAX_LCORES ?=
dpdk_version ?= 24.07
dpdk_base_url ?= http://fast.dpdk.org/rel
DPDK_BUILD_TYPE:=debug
endif
+DPDK_MAX_LCORES_FLAG :=
+ifneq ($(DPDK_MAX_LCORES),)
+DPDK_MAX_LCORES_FLAG := "-Dmax_lcores=$(DPDK_MAX_LCORES)"
+endif
+
DPDK_DRIVERS_DISABLED := baseband/\*, \
bus/dpaa, \
bus/ifpga, \
"-Ddisable_libs=$(DPDK_LIBS_DISABLED)" \
-Db_pie=true \
-Dmachine=$(DPDK_MACHINE) \
- --buildtype=$(DPDK_BUILD_TYPE) \
+ $(DPDK_MAX_LCORES_FLAG) \
+ --buildtype=$(DPDK_BUILD_TYPE) \
-Denable_kmods=false \
${DPDK_MLX_CONFIG_FLAG}