diff mbox series

[ovs-dev,RFC,6/7] northd: limit ECMP group by 1024 members

Message ID 20221118162050.3019353-7-odivlad@gmail.com
State RFC
Headers show
Series OVN IC bugfixes & proposals/questions | expand

Commit Message

Vladislav Odintsov Nov. 18, 2022, 4:20 p.m. UTC
This patch is intended to show that currently it's possible to build
ECMP group of 65k buckets.

Signed-off-by: Vladislav Odintsov <odivlad@gmail.com>
---
 northd/northd.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/northd/northd.c b/northd/northd.c
index e1f3bace8..f8f7977ae 100644
--- a/northd/northd.c
+++ b/northd/northd.c
@@ -9271,7 +9271,7 @@  static void
 ecmp_groups_add_route(struct ecmp_groups_node *group,
                       const struct parsed_route *route)
 {
-    if (group->route_count == UINT16_MAX) {
+    if (group->route_count == 1024) {
         static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(5, 1);
         VLOG_WARN_RL(&rl, "too many routes in a single ecmp group.");
         return;