diff options
author | Benoît Ganne <bganne@cisco.com> | 2024-02-08 17:06:22 +0100 |
---|---|---|
committer | Damjan Marion <dmarion@0xa5.net> | 2024-02-15 08:34:58 +0000 |
commit | a421d564cd113a63a677521a89dc16f184ccee11 (patch) | |
tree | 89289ee843a0908f45cb558852336af3995f8740 | |
parent | 7c675471e87c72be272c078fd481844e4efa64d0 (diff) |
build: add fib configuring option
Allow to select 8-8-8-8 or 16-8-8 mtrie FIB implementation.
Type: improvement
Change-Id: I2f4aec8bfec987d3f3d9f9cc5a16fabf4b6cc2ac
Signed-off-by: Benoît Ganne <bganne@cisco.com>
-rwxr-xr-x | configure | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/configure b/configure index 7db7726ddc6..19b5ecd9d0d 100755 --- a/configure +++ b/configure @@ -33,6 +33,7 @@ OPTIONS: --wipe, -w Wipe whole repo (except startup.* files) --sanitize, -s Enable sanitizer (mem) --platform, -p Specify target platform + --option, -o Enable specific VPP options (fib8, fib16) __EOF__ } @@ -104,6 +105,19 @@ while (( "$#" )); do ;; esac ;; + -o|--option) + shift 1 + case "$1" in + fib8) + shift 1 + args+=("-DVPP_IP_FIB_MTRIE_16=OFF") + ;; + fib16) + shift 1 + args+=("-DVPP_IP_FIB_MTRIE_16=ON") + ;; + esac + ;; -*|--*=) # unsupported flags echo "Error: Unsupported flag $1" >&2 exit 1 |