[Buildroot] [git commit] package/frr: make ECMP max configurable

Julien Olivain ju.o at free.fr
Mon Sep 8 14:16:23 UTC 2025


commit: https://git.buildroot.net/buildroot/commit/?id=9007673de7b57c5e83c5e077f35d6948b8aa8954
branch: https://git.buildroot.net/buildroot/commit/?id=refs/heads/master

Upstream FRR accepts --enable-multipath=N in the range 1-999. Buildroot
previously hardcoded 256.

Add a config integer to set the maximum ECMP paths at build time, keeping
256 as the default. Lower values help match hardware limits or reduce
memory; higher values are useful for software routing or lab testing.

Signed-off-by: Maxime Leroy <maxime at leroys.fr>
Signed-off-by: Julien Olivain <ju.o at free.fr>
---
 package/frr/Config.in | 8 ++++++++
 package/frr/frr.mk    | 2 +-
 2 files changed, 9 insertions(+), 1 deletion(-)

diff --git a/package/frr/Config.in b/package/frr/Config.in
index feb1aef05a..6c26b6d2e1 100644
--- a/package/frr/Config.in
+++ b/package/frr/Config.in
@@ -33,6 +33,14 @@ config BR2_PACKAGE_FRR_BMP
 	help
 	  Build BGP Monitoring Protocol daemon.
 
+config BR2_PACKAGE_FRR_MULTIPATH_MAX
+	int "maximum ECMP paths"
+	default 256
+	range 1 999
+	help
+	  Compile FRR with support for up to this many equal-cost
+	  next-hops (ECMP).
+
 config BR2_PACKAGE_FRR_NHRPD
 	bool "NHRPD protocol"
 	select BR2_PACKAGE_C_ARES
diff --git a/package/frr/frr.mk b/package/frr/frr.mk
index fb7477a211..e41ee33caa 100644
--- a/package/frr/frr.mk
+++ b/package/frr/frr.mk
@@ -40,7 +40,7 @@ FRR_CONF_OPTS = --with-clippy=$(HOST_DIR)/bin/clippy \
 	--with-moduledir=/usr/lib/frr/modules \
 	--enable-configfile-mask=0640 \
 	--enable-logfile-mask=0640 \
-	--enable-multipath=256 \
+	--enable-multipath=$(BR2_PACKAGE_FRR_MULTIPATH_MAX) \
 	--disable-ospfclient \
 	--enable-user=frr \
 	--enable-group=frr \


More information about the buildroot mailing list