From patchwork Fri Nov 18 16:20:49 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1705697 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: legolas.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kKNz7acr; dkim-atps=neutral Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature ECDSA (P-384) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4NDMVF08NDz23mH for ; Sat, 19 Nov 2022 03:21:25 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id C025841A65; Fri, 18 Nov 2022 16:21:22 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org C025841A65 Authentication-Results: smtp4.osuosl.org; dkim=fail reason="signature verification failed" (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kKNz7acr X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id BKzYrZeRwrw4; Fri, 18 Nov 2022 16:21:21 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id 5B512419F7; Fri, 18 Nov 2022 16:21:19 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org 5B512419F7 Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id A4B60C0032; Fri, 18 Nov 2022 16:21:17 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 033BCC0071 for ; Fri, 18 Nov 2022 16:21:12 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id A53B38221C for ; Fri, 18 Nov 2022 16:21:12 +0000 (UTC) DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A53B38221C Authentication-Results: smtp1.osuosl.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=kKNz7acr X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 68-m_yP8IH6l for ; Fri, 18 Nov 2022 16:21:12 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D3B4482244 Received: from mail-lj1-x233.google.com (mail-lj1-x233.google.com [IPv6:2a00:1450:4864:20::233]) by smtp1.osuosl.org (Postfix) with ESMTPS id D3B4482244 for ; Fri, 18 Nov 2022 16:21:11 +0000 (UTC) Received: by mail-lj1-x233.google.com with SMTP id z24so7387037ljn.4 for ; Fri, 18 Nov 2022 08:21:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=+bSxNDx1/9Svnf57Ff65t7ILJjLnaOySLhnpDJZwDrE=; b=kKNz7acrsiXFJBCq0gJLd8EBSm9yDkcZeMA0xp/uSWZoG/EtBP0HCDVixBgT6vc7s4 qT+O5ubT3wpU0L3ftgd8Zh99T1rQ+IW05TlhVt91GCC4/SCs3zlXEt4SBB9KeTzTFy7C EciFL/xEgChMQRN/iFZongws8/Msi+Dy15JDpkndw5rTRAjBwuBB8TpxhpNl9I6V2V3e f0Q/gInIRNqK4wceOkpZMVPjCE5uvbpE+/FSsVsvuuSucYg3QComSIvjzA/M1tqeCJAW fJIRVJ19R3JKkRYkmXaXJY0fOt0URulMlFFmGbkzpaHMzGUe3hIB+n01bnbHG/9azH5F v7Tg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=+bSxNDx1/9Svnf57Ff65t7ILJjLnaOySLhnpDJZwDrE=; b=lGn7mcMb/I/3Cd9fpc/F+e2wG4JZEW6jbaU29FDhYJNUXShSN+CB4SdzH5dNJXnI9/ gGXwnXiMLTRepPzQuerk4PZZk1fl+I3sslGtl80aZoBsjB49aCWmMECWnTMiRvxFuUmJ gT0t1mkeQM7NK2Ee0+etzfJfnd1f8fVV3De1LJ9cw4ce2BZMW0yFqtNYL7smXNZ3U0Hf aDLJLzvueBfnPAQgcGga8RTNtF9KfrwQDvWLgMYZDwJlmcPiz7cci1YNAyEieLP5xWxA 8RU2QI0tCqpyS0LXNdaPj+F677G/tXvyFxpTAf/Mt5uOwaIfUMFGLzu8dBQ5lJ8TJs7U 2dcA== X-Gm-Message-State: ANoB5pkXiK84LAp4VYzrnPn85KWcI5CXhzzMuQXSQCZzAsQ6Y0iTPcPf RINwAmP/szf6ENW3mHhDMQGr7vohpAhp6g== X-Google-Smtp-Source: AA0mqf5vniR5rdtlTc6fbR8iDXVjxz6p62DsTbkdU0h73S7z4Epq1xnJvd+Rd+NlPwdv8/JidkoN3Q== X-Received: by 2002:a2e:22c4:0:b0:277:515b:3db6 with SMTP id i187-20020a2e22c4000000b00277515b3db6mr2599937lji.497.1668788469334; Fri, 18 Nov 2022 08:21:09 -0800 (PST) Received: from ip-10-70-112-12.vpc-1e810be1.internal (c2-178-216-98-9.elastic.cloud.croc.ru. [178.216.98.9]) by smtp.gmail.com with ESMTPSA id o16-20020ac25e30000000b0049465afdd38sm717538lfg.108.2022.11.18.08.21.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Nov 2022 08:21:09 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Fri, 18 Nov 2022 19:20:49 +0300 Message-Id: <20221118162050.3019353-7-odivlad@gmail.com> X-Mailer: git-send-email 2.36.1 In-Reply-To: <20221118162050.3019353-1-odivlad@gmail.com> References: <20221118162050.3019353-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [OVN RFC 6/7] northd: limit ECMP group by 1024 members X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" This patch is intended to show that currently it's possible to build ECMP group of 65k buckets. Signed-off-by: Vladislav Odintsov --- northd/northd.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;