From patchwork Tue Oct 5 20:24:38 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1536910 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.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=GT1ACxij; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HP8GF4npfz9sPB for ; Wed, 6 Oct 2021 07:25:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 6B74A4089C; Tue, 5 Oct 2021 20:25:07 +0000 (UTC) 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 oeBNpBDV482d; Tue, 5 Oct 2021 20:25:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 90E9D402C3; Tue, 5 Oct 2021 20:25:05 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 6E384C0011; Tue, 5 Oct 2021 20:25:05 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) by lists.linuxfoundation.org (Postfix) with ESMTP id 0C73AC000D for ; Tue, 5 Oct 2021 20:25:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id D6E0960D55 for ; Tue, 5 Oct 2021 20:25:03 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp3.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id C-OLP1n0G1hg for ; Tue, 5 Oct 2021 20:25:02 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-lf1-x12d.google.com (mail-lf1-x12d.google.com [IPv6:2a00:1450:4864:20::12d]) by smtp3.osuosl.org (Postfix) with ESMTPS id A579A60D54 for ; Tue, 5 Oct 2021 20:25:02 +0000 (UTC) Received: by mail-lf1-x12d.google.com with SMTP id m3so1051825lfu.2 for ; Tue, 05 Oct 2021 13:25:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ITsA9gdpkz0ObFtEgi4gS79IS5OAvN9cRTr/uW+EbwQ=; b=GT1ACxijojEQ9HRT5c0OvhXHV5PKwc5SZ+xcUWekuhccGYkhYk6zaD7uKOgCilUaxD ibRrI9SEkSQWS+s3eNtZHnrUtZpEfZjkpD1sGvV9EVUDiZwbqnKQvjnHFQnO0AOavo16 NGzfbwG1oODKmSXJ+7rYVtcYWEI/rtApmBF5ZowN3Rk8sozYmSlKQahgIHqu3qlBuumD RUUT+rKc4roOETKpNO411d00ylVt5FjbPZj3KgiRqEDGgpJpqA2o6d/xsl0ldR3VQ2VX 91juXjV1pPDtKz6nAJBbgi+yv9PhyHUdjF3ntqj5g1NrJWtFJ5W16Eic2n12x1XEEzCU 3z9A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=ITsA9gdpkz0ObFtEgi4gS79IS5OAvN9cRTr/uW+EbwQ=; b=3m9piXDHTpeo+hgYcCVJ8/WWVdpCyju6HJoVjcjEL3PYMkpUGtuItqwWCAC2T7Fipu nucGiRKHXG883YxdfXdQSssHY+t3nmCyhLk2f6scFBnnqpErPVBfxUOIO8t1EB8Jbg0c aHEHXhKiLUE9s28TtQphzCQ38XiTzfcizQ7I64//v2VnADI8jZSfljoF1PRrY6cCIOoI oHzwEiElauNkWmN1rkgRwqvcfVDK4sVqQtB+8malu//7+2tK45t9eDXW5ctnU7wwoKlx Ru/OzFV7tNfHYtZ0kXQ7TXLOOj1Dvn5t0BsQTVdJ7fRxQEXyaWIpozZxFvZOEZPdgWkH lA9A== X-Gm-Message-State: AOAM530yE1KSDJR/FubxuXWrlLZz1BcaOuWohhc4YsI89N2amaPDTuAj cl8AJEtA61CRJvgaMJR2LNZ9/PFwq4A= X-Google-Smtp-Source: ABdhPJwOF1HD+p0mpBnvBDhhLdZdaR8fn+jKkydkYQe+69jgOmlN0o5NSv5vZHZhLBd0RhjX1cOpSg== X-Received: by 2002:a2e:7d12:: with SMTP id y18mr286688ljc.120.1633465500304; Tue, 05 Oct 2021 13:25:00 -0700 (PDT) Received: from localhost.localdomain (109-252-131-59.dynamic.spd-mgts.ru. [109.252.131.59]) by smtp.gmail.com with ESMTPSA id 12sm2058870lfz.259.2021.10.05.13.24.59 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Tue, 05 Oct 2021 13:24:59 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Tue, 5 Oct 2021 23:24:38 +0300 Message-Id: <20211005202442.85322-1-odivlad@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn v6 0/4] Add multiple routing tables support to Logical Routers 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" v5 -> v6: - 2 memory leak bugs were fixed in ovn-ic code, which were introduced in previous versions of #3 patch. v4 -> v5: - Addressed Numan's review comments. v3 -> v4: - Minor logging typo fixes. - Added patch with ovn-ic routes learning bugfix. v2 -> v3: - Rebased on split northd changes. - Replaced route_tables HMAP with SIMAP as Numan suggested. - This series stil doesn't have ddlog support yet. It will take too much time for me to deal to ddlog language and specifics. Help with ddlog implementation wanted. v1 -> v2: - First patch of v1 patch series was applied, but new tests for new feature were added with strict table number check. Update this tests to be table number-independent. - Squash pathes for northd and utilities as tests don't pass without latter. - Add support for OVN IC routing table in routes advertisement/learning. - Patches `ic: remove port_binding on ts deletion` https://patchwork.ozlabs.org/project/ovn/patch/20210824184442.35063-1-odivlad@gmail.com/ and `ic: process only local port_bindings` https://patchwork.ozlabs.org/project/ovn/patch/20210830195707.98529-1-odivlad@gmail.com/ were already sent to list separately, but other changes are based on them so they're included. Once those patches are accepts, I can drop them from this series. - Added NEWS item. - Added myself to authors list. Vladislav Odintsov (4): ic: process only local port_bindings northd,utils: support for RouteTables in LRs ic: add support for routing tables in adv/learn routes ic: don't learn routes which have local GW NEWS | 4 + ic/ovn-ic.c | 576 ++++++++++++++++++++++++++-------------- northd/northd.c | 159 ++++++++--- northd/ovn-northd.8.xml | 63 ++++- ovn-ic-sb.ovsschema | 5 +- ovn-ic-sb.xml | 18 ++ ovn-nb.ovsschema | 5 +- ovn-nb.xml | 30 +++ tests/ovn-ic.at | 493 ++++++++++++++++++++++++++++++++++ tests/ovn-nbctl.at | 196 +++++++++++++- tests/ovn-northd.at | 76 +++++- tests/ovn.at | 441 +++++++++++++++++++++++++++++- utilities/ovn-nbctl.c | 138 +++++++++- 13 files changed, 1937 insertions(+), 267 deletions(-)