diff options
author | 2025-01-03 21:47:26 +0100 | |
---|---|---|
committer | 2025-01-08 09:59:13 +0000 | |
commit | 6082665d44d35a5fc244ff760a9ec773a8c37048 (patch) | |
tree | 5e8a1e4c0d81bf96b347d2042aca08859180f49b | |
parent | 379a454aa71facbffd3d4c45537809401e43fcd8 (diff) |
build: allow to redefine max_lcores for DPDK
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 <civil.over@gmail.com>
-rw-r--r-- | build/external/packages/dpdk.mk | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/build/external/packages/dpdk.mk b/build/external/packages/dpdk.mk index 6a2fac4545c..88051da8851 100644 --- a/build/external/packages/dpdk.mk +++ b/build/external/packages/dpdk.mk @@ -18,6 +18,8 @@ DPDK_TAP_PMD ?= n 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 @@ -46,6 +48,11 @@ ifeq ($(DPDK_DEBUG), y) 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, \ @@ -177,7 +184,8 @@ DPDK_MESON_ARGS = \ "-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} |