From patchwork Thu May 30 00:20:21 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Sharma X-Patchwork-Id: 1107464 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="nINt4rKJ"; 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 45DpKr3d1pz9s3l for ; Thu, 30 May 2019 10:26:39 +1000 (AEST) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 6F3622D22; Thu, 30 May 2019 00:26:36 +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 4EB0B2D03 for ; Thu, 30 May 2019 00:20:24 +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 B55D9821 for ; Thu, 30 May 2019 00:20:23 +0000 (UTC) Received: from pps.filterd (m0127839.ppops.net [127.0.0.1]) by mx0a-002c1b01.pphosted.com (8.16.0.27/8.16.0.27) with SMTP id x4U0FFKV012131 for ; Wed, 29 May 2019 17:20:23 -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=8Smy9vadu7jC8qSL+1pBcyBXOamA9RfOpeeTkOJwBao=; b=nINt4rKJoPvRp5zVjQnp42zU9QIt1TeYqe2t7I4Dp3IAAF3kzcw8L73tSK7/QHOY7NO2 uQ+Lh8bsOclM7AlgJ9vgr+aawikoqc1U6/pvwARb/0zTp/0tZMn+tBN5pgkj+M1HZSw/ TZ6pd22k5zaY19kxQEu/dLCzt9w2DmtRqhbJvr6Gy4grr35kJYMS1InkZhqrcDrfE7Gc G3VFlw9IIyxCWc9FAlmnPTfNAZLZFqfBix/lFBDY1JHVyatXWtRIeH2g/QgwafPMWfNL 2r8oWSmOr68mFLp51lZ0CwH+XxHaNs/9HSEKOnCscvfIP0bNv/vp+t3FGSejyFWgW38Z mQ== Received: from nam05-co1-obe.outbound.protection.outlook.com (mail-co1nam05lp2053.outbound.protection.outlook.com [104.47.48.53]) by mx0a-002c1b01.pphosted.com with ESMTP id 2ssd3s2gek-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Wed, 29 May 2019 17:20:23 -0700 Received: from MW2PR02MB3899.namprd02.prod.outlook.com (52.132.178.28) by MW2PR02MB3850.namprd02.prod.outlook.com (52.132.178.15) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1922.15; Thu, 30 May 2019 00:20:21 +0000 Received: from MW2PR02MB3899.namprd02.prod.outlook.com ([fe80::95c1:331:992:9d85]) by MW2PR02MB3899.namprd02.prod.outlook.com ([fe80::95c1:331:992:9d85%7]) with mapi id 15.20.1922.021; Thu, 30 May 2019 00:20:21 +0000 From: Ankur Sharma To: "ovs-dev@openvswitch.org" Thread-Topic: [PATCH v9 0/2] OVN: Distributed Virtual Router for Vlan Backed Networks Thread-Index: AQHVFn13lR+X8JdrEkGnuBYcLP/h6Q== Date: Thu, 30 May 2019 00:20:21 +0000 Message-ID: <1559175728-127062-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: BYAPR08CA0042.namprd08.prod.outlook.com (2603:10b6:a03:117::19) 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: ad2d7965-13b5-4b7a-7a0f-08d6e4949a2c x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600148)(711020)(4605104)(1401327)(2017052603328)(7193020); SRVR:MW2PR02MB3850; x-ms-traffictypediagnostic: MW2PR02MB3850: x-ms-exchange-purlcount: 2 x-proofpoint-crosstenant: true x-microsoft-antispam-prvs: x-ms-oob-tlc-oobclassifiers: OLM:4502; x-forefront-prvs: 00531FAC2C x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(396003)(376002)(39860400002)(366004)(346002)(136003)(189003)(199004)(14454004)(26005)(386003)(25786009)(2616005)(71200400001)(66066001)(53936002)(7736002)(410100003)(6512007)(6916009)(81166006)(102836004)(6306002)(36756003)(186003)(8936002)(86362001)(305945005)(8676002)(486006)(44832011)(478600001)(6506007)(476003)(71190400001)(5660300002)(2906002)(2351001)(316002)(81156014)(966005)(6436002)(66946007)(50226002)(6486002)(66574012)(5640700003)(4326008)(107886003)(66556008)(64756008)(66446008)(4720700003)(99286004)(68736007)(2501003)(52116002)(6116002)(256004)(3846002)(66476007)(73956011)(561944003)(64030200001); DIR:OUT; SFP:1102; SCL:1; SRVR:MW2PR02MB3850; 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: nHaimeJxjQTbE7lxnTjhZfAEbujNXyvGja+XN1SpGHFWGVsEHMnuwnLF45h9Rzn1kQbhLAsMXhpVUC0B/+d4ulfmyX4T32P2h2IIT/qyp9Qrb048N0bNiHlz8SVW+w14+a3+isAW52i4WXUsmM977/oHNwbi/O7Gt8CYqUPsDzqPBnWMkcVifg6FG29qwxvwQ3BV/ZbOdlJ++PQTafGbDormz2LVq5+J/zilNv5WXnwV9sS/cw/ucWqZURm0WC/dhheV40n1fDgK90KwCIfEDKoS3a8gnm3vBVMy92LCaYU+YeRRjD4aWHONseQ5lZuemZdoSbvJBQF5vBoPFtjBFPFDXxRHE44rZqP0JFxNpLHS9ECOwD4FjYMj6zReW6anWBU15+VQbtkTiSbJCSLjy/LIF4DWldh2kQ7c8ZfNfvg= MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: ad2d7965-13b5-4b7a-7a0f-08d6e4949a2c X-MS-Exchange-CrossTenant-originalarrivaltime: 30 May 2019 00:20:21.5321 (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-CrossTenant-userprincipalname: ankur.sharma@nutanix.com X-MS-Exchange-Transport-CrossTenantHeadersStamped: MW2PR02MB3850 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-05-30_01:, , 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 v9 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. v8 -> v9 ---- * Added more unit tests. * Fix the mistake of adding cr-lrp checks for IPv6 rather than V4. 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 | 4 +- 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 | 19 + ovn/ovn-sb.xml | 15 + ovn/utilities/ovn-nbctl.c | 49 +- tests/ovn-nbctl.at | 48 +- tests/ovn-northd.at | 22 + tests/ovn.at | 927 ++++++++++++++++++++++++++++++++++++ 20 files changed, 1669 insertions(+), 73 deletions(-)