package/frr: make ECMP max configurable

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@leroys.fr>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
Maxime Leroy
2025-08-11 18:11:07 +02:00
committed by Julien Olivain
parent da8587d2db
commit 9007673de7
2 changed files with 9 additions and 1 deletions

View File

@@ -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

View File

@@ -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 \