summaryrefslogtreecommitdiff
path: root/fpm
diff options
context:
space:
mode:
authorDonald Sharp <sharpd@nvidia.com>2024-10-11 09:33:35 -0400
committerDonald Sharp <sharpd@nvidia.com>2024-10-11 09:37:37 -0400
commitcf2624a993fd6992fbbce75434a5aefe22ce0bc2 (patch)
tree057e63d23964791502a333436fea694327e51e94 /fpm
parent8aa97a439fc21c66132fdaf8ce0113e16801be04 (diff)
fpm: Allow max fpm message size to float based on ecmp
Currently the max message size is 4k. With a 256 way ecmp FRR is seeing message sizes that are in the 6k size. There is desire to allow this to increase as well to 512. Since the multipath size directly effects how big the message may be when sending the routes ecmp let's give a bit of headroom for this value when compiling FRR at greater sizes. Additionally since we know not everyone is using such large ecmp, allow them to build as appropriate for their use cases. Signed-off-by: Donald Sharp <sharpd@nvidia.com>
Diffstat (limited to 'fpm')
-rw-r--r--fpm/fpm.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/fpm/fpm.h b/fpm/fpm.h
index 70c0df5715..9003c643b0 100644
--- a/fpm/fpm.h
+++ b/fpm/fpm.h
@@ -65,7 +65,7 @@
/*
* Largest message that can be sent to or received from the FPM.
*/
-#define FPM_MAX_MSG_LEN 4096
+#define FPM_MAX_MSG_LEN MAX(MULTIPATH_NUM * 32, 4096)
#ifdef __SUNPRO_C
#pragma pack(1)