From patchwork Sat Nov 13 09:43:48 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1554663 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=olHCiNFO; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [IPv6:2605:bc80:3010::136]) (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 4HrrBf503Dz9sPf for ; Sat, 13 Nov 2021 20:44:09 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id 8868A607B6; Sat, 13 Nov 2021 09:44:06 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org 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 J0Vk7DeHvcBh; Sat, 13 Nov 2021 09:44:04 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id D7F6E600C9; Sat, 13 Nov 2021 09:44:03 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id AB1E7C002E; Sat, 13 Nov 2021 09:44:03 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 8DD64C0012 for ; Sat, 13 Nov 2021 09:44:02 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 76D11402C9 for ; Sat, 13 Nov 2021 09:44:02 +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 b_gowgyBisQF for ; Sat, 13 Nov 2021 09:44:01 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by smtp4.osuosl.org (Postfix) with ESMTPS id E41DC402C8 for ; Sat, 13 Nov 2021 09:44:00 +0000 (UTC) Received: by mail-lf1-x131.google.com with SMTP id f18so28669128lfv.6 for ; Sat, 13 Nov 2021 01:44:00 -0800 (PST) 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=itN6Gm2U2inb9zwJotHhuRv4l0LUJTUpJAJ99KBof0c=; b=olHCiNFOnCF4u4rz3Q9xXCa1j2hctW0GxBY6qjSWHI94UQkcdSOLZx1Ia5A/j7JKrC 1vJigSa1DuNevM6f8nILouU0iG5wsqpbxRhvKiJINDadcKR89KY/19aEdn4SBXLF+Spd I5ovUrEJN8ETHB6d/cSAoJyrFsmKLAvXFF/066DIUhX4C3QGIiq4owEafMOPD2fZkIj/ OkdufsswUxA1T187D8yevLpYF7cHCWHhe1hHqMC5Jfm9vw94dD8j2B0/WzwfQUuzOxSX fm825LvPubkfRh/UInMPcNwWXBepIMOxueT0E9DIJ+kD9GHJux68YeoEuYn5fnXJPVAU Rp4g== 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=itN6Gm2U2inb9zwJotHhuRv4l0LUJTUpJAJ99KBof0c=; b=XO/B+9QB56HcQIsGrx5Jd95m/R+CmmaumiqNH1j79854DnEexbWPMnIBFxZYGVEPjX JpZ2V5mzbsBWYg44UYg1x/EOR7eE7DZ1BYAF+B9A23ZZKUr6+5f42N8TDPM03jj/WQnK QRTEjwxakNs4CvSSN4/P4qKjH9vupBhdM7yBvC6EI9LNgJ5D7EepRYkgdW1B8cJ+2/EY 86o43F/ovkDoM3mMykSJHb8rMeN+aJ6tRPa6S2NH58TSUc4tNIiJCgBJ/n2fl3NxHOcb +sMVtTeqSG0Br3nbOgq+I6MTfByRUoiBRZEXGsDSCoTlmS8bxNVIwKAL2fJ/ozOVj/uS OMig== X-Gm-Message-State: AOAM533cnom8hxhopv5xHEFYoJSFbZDqoZXA2gOaOirc1OivFqN43Seg jYG+BAAWRjCnbce9S80ckKGiSo49rpJw3A== X-Google-Smtp-Source: ABdhPJytltOJyVb8gKtnZ4Fwg66blViVS77j98FUynWIpKyLlyHoNX9AQRaiZQkO0y4oyFqb6V0IQw== X-Received: by 2002:a05:6512:a95:: with SMTP id m21mr9178380lfu.574.1636796638641; Sat, 13 Nov 2021 01:43:58 -0800 (PST) Received: from localhost.localdomain (109-252-131-59.dynamic.spd-mgts.ru. [109.252.131.59]) by smtp.gmail.com with ESMTPSA id h1sm818725lfu.277.2021.11.13.01.43.57 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Sat, 13 Nov 2021 01:43:58 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Sat, 13 Nov 2021 12:43:48 +0300 Message-Id: <20211113094353.17690-1-odivlad@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn v8 0/5] 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" v7 -> v8: - Updated manpages with and commit messages according to latest changes. - Small fixes. v6 -> v7: - Addressed Han's comments regarding saving same behaviour for route-tables static routes as for static routes from 'global' table. To address this 2 new patches were added (1, 2). - "global" table terminology was replaced with '
'. 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 (5): ic: maintain route origin - connected/static northd: make connected routes have higher priority than static 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 | 592 ++++++++++++++++++++++++++-------------- lib/ovn-util.h | 3 + northd/northd.c | 192 ++++++++++--- northd/ovn-northd.8.xml | 94 +++++-- ovn-ic-sb.ovsschema | 8 +- ovn-ic-sb.xml | 30 ++ ovn-nb.ovsschema | 5 +- ovn-nb.xml | 30 ++ tests/ovn-ic.at | 550 +++++++++++++++++++++++++++++++++++++ tests/ovn-nbctl.at | 196 ++++++++++++- tests/ovn-northd.at | 74 ++++- tests/ovn.at | 546 +++++++++++++++++++++++++++++++++++- utilities/ovn-nbctl.c | 138 +++++++++- 14 files changed, 2174 insertions(+), 288 deletions(-)