From patchwork Sat Mar 16 01:58:38 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ankur Sharma X-Patchwork-Id: 1057299 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="l5r+bzVA"; 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 44Llwn6pXzz9s47 for ; Sat, 16 Mar 2019 12:58:49 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id E685E1635; Sat, 16 Mar 2019 01:58:43 +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 4C5C8161E for ; Sat, 16 Mar 2019 01:58:42 +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 4D45112E for ; Sat, 16 Mar 2019 01:58:41 +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 x2G1t5PX016889 for ; Fri, 15 Mar 2019 18:58:40 -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=3hBS9g0fBkFW2ATiqyN8Q6op419+xar0EronpPZGjzs=; b=l5r+bzVAaaGYqEBcXpgmtR2IH9+/rQUJ7cUZ8843pKdC4s3i3spW34//SliGlNet2SYr Hendk22FXq3feRWUHIAy8uxbKtA9vW9iRxE/XZ+73yAmW+IkgnYS9FDx3JqhaRFnebjm t/2eQr/bZqDVWuPcZehxM1vk3hYwCurRIRQQib6AbmokfBYap1KQ6fSh6s5FYBP0ooq+ TMoYJWKoDiDq21YGIgCvuHQkl8sb77rmrRfWFTPf5UseB7jqYueyKcFyX2LiSOePbU0O F52nnGJhu2lArNkbNXuioC4QAFJH5ieigTN5otfjq77TB3DbEBpdKFmXEcMrpl5TCH7H Dw== Received: from nam05-by2-obe.outbound.protection.outlook.com (mail-by2nam05lp2053.outbound.protection.outlook.com [104.47.50.53]) by mx0a-002c1b01.pphosted.com with ESMTP id 2r69tkfxqx-1 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT) for ; Fri, 15 Mar 2019 18:58:40 -0700 Received: from MW2PR02MB3899.namprd02.prod.outlook.com (52.132.178.28) by MW2PR02MB3803.namprd02.prod.outlook.com (52.132.177.156) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.1709.14; Sat, 16 Mar 2019 01:58:39 +0000 Received: from MW2PR02MB3899.namprd02.prod.outlook.com ([fe80::e06f:12fc:62b0:3c30]) by MW2PR02MB3899.namprd02.prod.outlook.com ([fe80::e06f:12fc:62b0:3c30%3]) with mapi id 15.20.1709.011; Sat, 16 Mar 2019 01:58:38 +0000 From: Ankur Sharma To: "ovs-dev@openvswitch.org" Thread-Topic: [RFC PATCH v2 0/4] OVN: Distributed Virtual Router for Vlan Backed Networks Thread-Index: AQHU25vFsLb+CLJHIkOkhQC6vvxkbg== Date: Sat, 16 Mar 2019 01:58:38 +0000 Message-ID: <1552701563-91687-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: BYAPR03CA0004.namprd03.prod.outlook.com (2603:10b6:a02:a8::17) 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: b012dd57-ef0c-4490-fce8-08d6a9b2e7cd x-microsoft-antispam: BCL:0; PCL:0; RULEID:(2390118)(7020095)(4652040)(8989299)(4534185)(4627221)(201703031133081)(201702281549075)(8990200)(5600127)(711020)(4605104)(2017052603328)(7153060)(7193020); SRVR:MW2PR02MB3803; x-ms-traffictypediagnostic: MW2PR02MB3803: x-ms-exchange-purlcount: 2 x-proofpoint-crosstenant: true x-microsoft-antispam-prvs: x-forefront-prvs: 09781D4C35 x-forefront-antispam-report: SFV:NSPM; SFS:(10019020)(136003)(366004)(39860400002)(396003)(346002)(376002)(199004)(189003)(5660300002)(6116002)(3846002)(97736004)(305945005)(2906002)(2351001)(68736007)(106356001)(86362001)(105586002)(50226002)(71190400001)(71200400001)(256004)(410100003)(316002)(44832011)(8936002)(2501003)(6916009)(99286004)(14454004)(26005)(107886003)(476003)(2616005)(186003)(66066001)(6512007)(8676002)(6306002)(36756003)(7736002)(966005)(81166006)(81156014)(478600001)(5640700003)(6486002)(4326008)(52116002)(25786009)(102836004)(66574012)(6506007)(386003)(6436002)(561944003)(4720700003)(53936002)(486006)(64030200001); DIR:OUT; SFP:1102; SCL:1; SRVR:MW2PR02MB3803; H:MW2PR02MB3899.namprd02.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; A:1; MX: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: x2wachwRDLtIJf9lR3K7sCfjbMcZdKvt7bjiNl4Ifd9z5j/dU2ojKYv6PPEEN6zzusBsNs1V9NSwSjJT6TUejk/W2VK3zZLtVjiz7BDDvBJE4YJYBhZHVRNiajrglEZwvmWfSkwacXZgHV8ELL4i6v2+bYIynvB2yvVN03n2LO2GBDUcrhqehxu86Eww9zZvmVYvwKtIdcEbA5NfbO7vmqLW7GetzVlsTlc/thD1vihelMYFj6futrc+x8LMBeXPh1Te8Ex4AOaA0PubLkbI31mnKtmpLau+cMeaHQPFrEnxYaTroKswjJfCwZwFRsDxfGkTxCYDoa2598Ovp2WY0R0l06cTiT0V2QE2HzaXEG/oi8WjtsQfWIxKmlhmxpXyGZPpdWdxjpMsG5+d3jKeGpfG0ETFUAwHJjp/7bkCONo= MIME-Version: 1.0 X-OriginatorOrg: nutanix.com X-MS-Exchange-CrossTenant-Network-Message-Id: b012dd57-ef0c-4490-fce8-08d6a9b2e7cd X-MS-Exchange-CrossTenant-originalarrivaltime: 16 Mar 2019 01:58:38.8460 (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: MW2PR02MB3803 X-Proofpoint-Virus-Version: vendor=fsecure engine=2.50.10434:, , definitions=2019-03-16_02:, , signatures=0 X-Proofpoint-Spam-Reason: safe X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, KHOP_DYNAMIC, RCVD_IN_DNSWL_LOW autolearn=no version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on smtp1.linux-foundation.org Subject: [ovs-dev] [RFC PATCH v2 0/4] 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 overlay. 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. Ankur Sharma (4): L3 E-W Support in ovn, replace router port mac with chassis mac. L3 N-S support in ovn, advertise router port mac from gateway chassis L3 N-S support in ovn, do not replace router port mac on gateway chassis L3 N-S support in ovn, avoid chassis redirection as default for vlan backed networks ovn/controller/bfd.c | 5 +- ovn/controller/binding.c | 12 +- ovn/controller/chassis.c | 66 ++++- ovn/controller/chassis.h | 4 + ovn/controller/ovn-controller.8.xml | 7 + ovn/controller/ovn-controller.c | 2 +- ovn/controller/ovn-controller.h | 5 +- ovn/controller/physical.c | 120 +++++++++ ovn/controller/pinctrl.c | 216 +++++++++++++--- ovn/controller/pinctrl.h | 6 + ovn/lib/ovn-util.c | 31 +++ ovn/lib/ovn-util.h | 6 + ovn/northd/ovn-northd.c | 83 +++++- ovn/ovn-architecture.7.xml | 12 + ovn/ovn-nb.ovsschema | 8 +- ovn/ovn-nb.xml | 9 + ovn/ovn-sb.xml | 15 ++ ovn/utilities/ovn-nbctl.c | 45 +++- tests/ovn-nbctl.at | 48 +++- tests/ovn-northd.at | 22 ++ tests/ovn.at | 502 ++++++++++++++++++++++++++++++++++++ 21 files changed, 1144 insertions(+), 80 deletions(-)