From patchwork Sat May 11 01:02:24 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Sharma X-Patchwork-Id: 1098370 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=openvswitch.org (client-ip=140.211.169.12; helo=mail.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=nutanix.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=nutanix.com header.i=@nutanix.com header.b="J3fN8mcK"; dkim-atps=neutral Received: from mail.linuxfoundation.org (mail.linuxfoundation.org [140.211.169.12]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 45183N127Dz9s7h for ; Sat, 11 May 2019 11:03:44 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 36A671085; Sat, 11 May 2019 01:02:29 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@mail.linuxfoundation.org Received: from smtp1.linuxfoundation.org (smtp1.linux-foundation.org [172.17.192.35]) by mail.linuxfoundation.org (Postfix) with ESMTPS id 8DB2B1058 for ; Sat, 11 May 2019 01:02:27 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from mx0a-002c1b01.pphosted.com (mx0a-002c1b01.pphosted.com [148.163.151.68]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id D98CA7DB for ; Sat, 11 May 2019 01:02:26 +0000 (UTC) Received: from pps.filterd (m0127837.ppops.net [127.0.0.1]) by mx0a-002c1b01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4B0t3Ev023886 for ; Fri, 10 May 2019 18:02:26 -0700 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nutanix.com; h=from : to : cc : subject : date : message-id : content-type : content-transfer-encoding : mime-version; s=proofpoint20171006; bh=HBdstioZA/jW/OR5CJJU0UVmXXmblpDSZAGjQgVg7gM=; b=J3fN8mcKll8/Y8pWPkBi2q5LbwGYU1+rnSG9nJLUgxtEwH5jQUeiQL/ubNQSQBQ9KN9P BVVPzHCg14y0Cp6y8Q6DfG3k4wdzlTcXuqRyJzQ1KuUBlQmUPmJ65rte2kde2iYuyusP FB6Y399QfyMaQVBU/hx8Cf74gPqtmkyVkbyO8ctoDU5fBPEjfeJ5ejZ2mIALomj1eE9c uVB0OWgP1AmOOl89c699dVOq5/wVrrhjaXdXPpPvJWBv8DiMf2sTTuOGr7nBHeLpE0r1 ItWU20Gq29KatxA3ifDLrLfTYyqln+apZvlVdjEWXtYwH+Vvg1DyTktqkgQd4tzIN2dl gQ== Received: from nam03-by2-obe.outbound.protection.outlook.com (mail-by2nam03lp2057.outbound.protection.outlook.com [104.47.42.57]) by mx0a-002c1b01.pphosted.com with ESMTP id 2sders0has-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 10 May 2019 18:02:26 -0700 Received: from MW2PR02MB3899.namprd02.prod.outlook.com (52.132.178.28) by MW2PR02MB3657.namprd02.prod.outlook.com (52.132.177.14) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1856.11; Sat, 11 May 2019 01:02:25 +0000 Received: from MW2PR02MB3899.namprd02.prod.outlook.com ([fe80::908f:c38c:a9ee:651c]) by MW2PR02MB3899.namprd02.prod.outlook.com ([fe80::908f:c38c:a9ee:651c%2]) with mapi id 15.20.1856.012; Sat, 11 May 2019 01:02:25 +0000 From: Ankur Sharma To: "ovs-dev@openvswitch.org" Thread-Topic: [PATCH v8 0/2] OVN: Distributed Virtual Router for Vlan Backed Networks Thread-Index: AQHVB5Uy+06/vhJSzkq4ClbbciU54Q== Date: Sat, 11 May 2019 01:02:24 +0000 Message-ID: <1557536637-80347-1-git-send-email-ankur.sharma@nutanix.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-clientproxiedby: BYAPR02CA0049.namprd02.prod.outlook.com (2603:10b6:a03:54::26) To MW2PR02MB3899.namprd02.prod.outlook.com (2603:10b6:907:4::28) x-ms-exchange-messagesentrepresentingtype: 1 x-mailer: git-send-email 1.8.3.1 x-originating-ip: [192.146.154.1] x-ms-publictraffictype: Email x-ms-office365-filtering-correlation-id: 59e7c712-e45f-4ec2-53d4-08d6d5ac5450 x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600141)(711020)(4605104)(2017052603328)(7193020); SRVR:MW2PR02MB3657; x-ms-traffictypediagnostic: MW2PR02MB3657: x-ms-exchange-purlcount: 2 x-proofpoint-crosstenant: true x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 00342DD5BC x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(366004)(396003)(376002)(346002)(136003)(39860400002)(189003)(199004)(2351001)(26005)(99286004)(561944003)(36756003)(6506007)(256004)(186003)(386003)(52116002)(8936002)(81156014)(8676002)(2906002)(3846002)(81166006)(6116002)(50226002)(305945005)(68736007)(6916009)(7736002)(64756008)(66556008)(66476007)(14454004)(86362001)(4720700003)(66946007)(73956011)(66446008)(486006)(2501003)(966005)(102836004)(107886003)(44832011)(476003)(4326008)(25786009)(478600001)(2616005)(66066001)(6306002)(6486002)(6436002)(5640700003)(6512007)(5660300002)(53936002)(316002)(66574012)(410100003)(71200400001)(71190400001)(64030200001); DIR:OUT; SFP:1102; SCL:1; SRVR:MW2PR02MB3657; H:MW2PR02MB3899.namprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: nutanix.com does not designate permitted sender hosts) x-ms-exchange-senderadcheck: 1 x-microsoft-antispam-message-info: dAsFTbWQROe9npKVogkvYl+6dQWwWJH3Pj5fCfCAT8wE0Doo4VRnQzG1PGK0ggPaTcd5C2kdCiVlxx72FtwxtXiVT7pH3rmGCIlW6rtWFTD/3o5mmBu+TmaQmAnnMFtPVmdevVqW4XbBx9R9ATtQ3Cb90g/bLkjwSlRLMhGXDypzu2+J0smHOnKDjw6LB7Napwiwvf9Zu8q0ebbmkHqSuJIkxXlvzkhZjLD2viAMqo5DGdmfboDScrlYdqRo/3cUYCsRDt+2ijTtBPMW3S9ILZhJqazd6lqwgHPkx6K4FrvZhQMVPp9Ae0Nfw9DQwh752sv1mfjYi23xjxUYVPcspqtjDGjvvlWDpg6ELJX23r2uGfe4wMRrEEZ30NgpOCfVtFLy6XnH6d5IAGX/vIcRVRDSFMlzdZ3JZqga1H57oj4= MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: 59e7c712-e45f-4ec2-53d4-08d6d5ac5450 X-MS-Exchange-CrossTenant-originalarrivaltime: 11 May 2019 01:02:24.9058 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: bb047546-786f-4de1-bd75-24e5b6f79043 X-MS-Exchange-CrossTenant-mailboxtype: HOSTED X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR02MB3657 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-10_17:, , signatures=0 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-2.7 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, RCVD_IN_DNSWL_LOW autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [PATCH v8 0/2] OVN: Distributed Virtual Router for Vlan Backed Networks X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org This series is about enhancing the logical router functionality in OVN to work with vlan backed logical switches. Intial proposal was discused here: [1] https://mail.openvswitch.org/pipermail/ovs-dev/2018-October/353066.html [2] https://docs.google.com/document/d/1uoQH478wM1OZ16HrxzbOUvk5LvFnfNEWbkPT6Zmm9OU/edit?usp=sharing This series covers following: a. L2: Associate a type with logical switches. Type value could be vlan or bridged. b. L3 E-W: In the absence of encapsulation, we cannot use router port mac as source mac (since it is distributed), hence replace the same with a chassis unique mac. c. L3 N-S: Use gateway-chassis construct to respond to ARP requests for router port, so that it becomes entry point for all chassis bound traffic coming from "external" network. Some additional changes, like no need to redirect south to north traffic in the absence of NAT etc. This series does not cover following: (will be sent out for review in follow up series once this series is reviewed/committed) a. Network Address Translation. b. Ensuring VMs mac is learnt in underlay network to avoid flooding of L3 flows. v7 -> v8 ---- * Handled Numan's review comments. v6 -> v7 ---- * Added packet flow details in ovn-architecture. v5 -> v6 ---- * Handled Numan's review comments. v4 -> v5 ---- * Changed the network_type value to "bridged" instead of "vlan". v3 -> v4 ---- * Improved documentation and commit message. * Converted the patchset to 2 patches. * Changes in nbctl to NOT set to network_type during logical switch create. * Fixed 3 space indentation. v2 -> v3 ----- * Rebased with TOT. v1 -> v2 ------ * Fixed unit tests and review comments. Ankur Sharma (2): OVN: Enable E-W Traffic, Vlan backed DVR OVN: Enable N-S Traffic, Vlan backed DVR ovn/controller/binding.c | 12 +- ovn/controller/chassis.c | 64 ++++- ovn/controller/chassis.h | 4 + ovn/controller/ovn-controller.8.xml | 10 + ovn/controller/ovn-controller.c | 2 +- ovn/controller/ovn-controller.h | 5 +- ovn/controller/physical.c | 113 ++++++++ ovn/controller/pinctrl.c | 205 +++++++++++++-- ovn/controller/pinctrl.h | 6 + ovn/lib/ovn-util.c | 31 +++ ovn/lib/ovn-util.h | 6 + ovn/northd/ovn-northd.c | 81 +++++- ovn/ovn-architecture.7.xml | 111 +++++++- ovn/ovn-nb.ovsschema | 10 +- ovn/ovn-nb.xml | 18 ++ ovn/ovn-sb.xml | 15 ++ ovn/utilities/ovn-nbctl.c | 49 +++- tests/ovn-nbctl.at | 48 +++- tests/ovn-northd.at | 22 ++ tests/ovn.at | 502 ++++++++++++++++++++++++++++++++++++ 20 files changed, 1242 insertions(+), 72 deletions(-)