From patchwork Fri Sep 3 10:34:35 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1524199 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: 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=E+ZSsVpl; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 ozlabs.org (Postfix) with ESMTPS id 4H1DhG6Tm9z9s5R for ; Fri, 3 Sep 2021 20:35:10 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id CE6648348C; Fri, 3 Sep 2021 10:35:07 +0000 (UTC) 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 vCCN5xY0prod; Fri, 3 Sep 2021 10:35:06 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 066B980BEA; Fri, 3 Sep 2021 10:35:06 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id CED62C0010; Fri, 3 Sep 2021 10:35:05 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [140.211.166.137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 9A359C000E for ; Fri, 3 Sep 2021 10:35:04 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 7D01042636 for ; Fri, 3 Sep 2021 10:35:04 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp4.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 81whEMP2ylnz for ; Fri, 3 Sep 2021 10:35:03 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x52d.google.com (mail-ed1-x52d.google.com [IPv6:2a00:1450:4864:20::52d]) by smtp4.osuosl.org (Postfix) with ESMTPS id 2F53B42635 for ; Fri, 3 Sep 2021 10:35:03 +0000 (UTC) Received: by mail-ed1-x52d.google.com with SMTP id l6so7353198edb.7 for ; Fri, 03 Sep 2021 03:35: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=zeqvEvCOA0CeSxVdah9guMxqsTEMGjlT6jVZBewYIFs=; b=E+ZSsVplNoAa38c1RCzeRg4F5QKBj0wfPasuaqoepsn2UitjvkqRKDIPYBMQR2Zrtp p1xjXgnDpwQocalxpry3ODezSeOgMZ+PTIcLJOB4zmHoTFeEwZgM/Aq8S+RBfRIlDHoG EGrM7NCfHYtG5A1aYpG/EoFII4U9mRd4MYqxmLGnLJmt1V2uZrf7CdtFkZncjMVnAxVx 8tG3I0f2x9m0imc2ZL7SlGCaOubx6huflu4gl1UTi40yDvSKSNKtlguUxecgm/zbihKK 2kwS8FWGhdDEEHS6CmQlRKQ1syvzQ6moch3ASH2UTbH++RrkGHxntfuO8qhQ89kEUmsR 8B8g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=zeqvEvCOA0CeSxVdah9guMxqsTEMGjlT6jVZBewYIFs=; b=gzRsW++Bi8mddr6KGcXWS3P4jTRRsL5HW57LC/LVXJXpVcM+ZvMx6t5o62zviBxNTP YaTmpe9i9+vtbPN00R4sap1CKjH3Pb+2iWuolcg7NRl7/Z85XkNtzfmC+V870Di/WX7s rI+/33UUaSWM3zgof1JQgrzFad6fZwXyhQ+E2zFXfBf2XKpONox7xTh0ibOxfgzjOYvg 3qmT8NBkKVmiR3E0SnsLpXA5Vw36Yi08K5JnCA5j4VPAsx7TXaUSVS2ejlnPkdg9Z2aS BCecQbLXPEEF40aN/vWh57+SYu+cDkI/5QD4MvB2R8WRySmAHVlLqsx/rd6D6sPmyCPG L8+A== X-Gm-Message-State: AOAM532/ruH0ejYc9HFp93d3eFFt7FPVnNVK/I26Y+lbibBmDOcCqgXN TAqa+9lBemgL5Dsl6RxF2Z8xrApWwts= X-Google-Smtp-Source: ABdhPJwILZVMj6BTbGFrvgDWapGnapWnambaXV5VQHSMcNnKu6pjpRFrMXhgIsS+w9vIevylBi/tVA== X-Received: by 2002:a05:6402:895:: with SMTP id e21mr3387582edy.54.1630665301330; Fri, 03 Sep 2021 03:35:01 -0700 (PDT) Received: from localhost.localdomain ([85.187.18.127]) by smtp.gmail.com with ESMTPSA id d22sm2609897ejj.47.2021.09.03.03.35.00 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 03 Sep 2021 03:35:01 -0700 (PDT) From: Vladislav Odintsov To: dev@openvswitch.org Date: Fri, 3 Sep 2021 13:34:35 +0300 Message-Id: <20210903103441.33178-1-odivlad@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn v2 0/6] 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" This patch series extends Logical Router's routing functionality. Now user may create multiple routing tables within a Logical Router and assign them to Logical Router Ports. Traffic coming from Logical Router Port with assigned route_table is checked against global routes if any (Logical_Router_Static_Routes whith empty route_table field), next against directly connected routes and then Logical_Router_Static_Routes with same route_table value as in Logical_Router_Port options:route_table field. This series doesn't have ddlog support yet. It will take too much time for me to deal to ddlog language and specifics. I've got draft, but help 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 (6): ic: remove port_binding on ts deletion ic: process only local port_bindings tests: remove strict check for table=N for N > 9 northd,utils: support for RouteTables in LRs ic: add support for routing tables in adv/learn routes Update Authors list AUTHORS.rst | 1 + NEWS | 4 + ic/ovn-ic.c | 579 ++++++++++++++++++++++++++-------------- northd/ovn-northd.8.xml | 63 ++++- northd/ovn-northd.c | 198 +++++++++++--- ovn-ic-sb.ovsschema | 5 +- ovn-ic-sb.xml | 18 ++ ovn-nb.ovsschema | 5 +- ovn-nb.xml | 30 +++ tests/ovn-ic.at | 496 ++++++++++++++++++++++++++++++++++ tests/ovn-nbctl.at | 196 +++++++++++++- tests/ovn-northd.at | 80 +++++- tests/ovn.at | 441 +++++++++++++++++++++++++++++- utilities/ovn-nbctl.c | 134 +++++++++- 14 files changed, 1983 insertions(+), 267 deletions(-)