From patchwork Tue Jan 14 11:07:12 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1222688 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=silver.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=redhat.com Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=em5qQLZZ; dkim-atps=neutral Received: from silver.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47xnjr1cT7z9sP6 for ; Tue, 14 Jan 2020 22:07:43 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by silver.osuosl.org (Postfix) with ESMTP id E9827204CA; Tue, 14 Jan 2020 11:07:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from silver.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id VGqlfAct9y4N; Tue, 14 Jan 2020 11:07:37 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by silver.osuosl.org (Postfix) with ESMTP id B9D4F204C6; Tue, 14 Jan 2020 11:07:37 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id ACE0BC1D83; Tue, 14 Jan 2020 11:07:37 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from whitealder.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 05648C077D for ; Tue, 14 Jan 2020 11:07:37 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by whitealder.osuosl.org (Postfix) with ESMTP id E38A686091 for ; Tue, 14 Jan 2020 11:07:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from whitealder.osuosl.org ([127.0.0.1]) by localhost (.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Lqc2cg6OVjBv for ; Tue, 14 Jan 2020 11:07:32 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by whitealder.osuosl.org (Postfix) with ESMTPS id 8BD8585A90 for ; Tue, 14 Jan 2020 11:07:32 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1579000051; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=lr/dg2sTs0Buzkd3u2oYXab3CRvrmbMK0LYkTGsP6XY=; b=em5qQLZZXIPLoE3+Mhi8KqIghWzU7Ejn+UW7BRbr91xxHCP3kklqq7+/vTj5XGvE1SDh5m tOmGoF9Ke6NiIQf8XYXP/JhP/cYlYvB9ZuhURAn0dklgzPYonvayIeB5z6JRkuOKjpKsQe mls3mH0jwAjgca2vrmc7gpddutNeglM= Received: from mail-wm1-f72.google.com (mail-wm1-f72.google.com [209.85.128.72]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-45-inT2Cd3wPNCV8MA1ZSLw8g-1; Tue, 14 Jan 2020 06:07:24 -0500 Received: by mail-wm1-f72.google.com with SMTP id 18so3410462wmp.0 for ; Tue, 14 Jan 2020 03:07:24 -0800 (PST) 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=jVNUkH+upSV9lxXqtH0nktRKdwIXNZ7/XiyC7DbgRxg=; b=cvSph4OkQRORttIbyrgkf2J9WXebi+x6hZY8haPvpF8u3ZAkSAMHUlg0662KkwvbnB ElCcSlJE+h9Xf89Ao0jX0kzEzjnTy7Mf0EU60f8PpCIrl9362l2oE7iNu+3qt2TCE56w YHtZAaD814Y35OLSlx4BaoOKii9tOOzA8VVC0dRSPWeHn3Vuy9j/GN4Krdmm7AN2hejr Kwc54ZVoMMt0G6GliPS5bGk2os/REI6BQHJ3bOFHN1z0bdM/Jv4ZhPIURure1ODpruYX hsb9NhHnAhv9URg5HIHazfd3x4j3a5dFYMS/3KKUocX7MXSTJCUIoGUC6NY9/b1Nn3zF OfYA== X-Gm-Message-State: APjAAAW0VwQfs8ee1xqgN17k658M49pqsUkiw11/24K9lRJRSm3+Z52Z wJYm/93SsMfrn4g7h4NsEOe+8a2cJpYbTslabubOPJ6fWGWLSV2Duibv6as+kjLuziZQlrbgBNE liPza7KlxaKKH X-Received: by 2002:a5d:610a:: with SMTP id v10mr24925563wrt.267.1579000043524; Tue, 14 Jan 2020 03:07:23 -0800 (PST) X-Google-Smtp-Source: APXvYqxUmnonchjRKbmdw41Omp8NvBufIn2aqYYVROJoj/w6kyY8Y2SB7MNCv323C3f9aBHleggTQA== X-Received: by 2002:a5d:610a:: with SMTP id v10mr24925529wrt.267.1579000043108; Tue, 14 Jan 2020 03:07:23 -0800 (PST) Received: from localhost.localdomain.com (nat-pool-mxp-t.redhat.com. [149.6.153.186]) by smtp.gmail.com with ESMTPSA id y6sm18853729wrl.17.2020.01.14.03.07.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Jan 2020 03:07:22 -0800 (PST) From: Lorenzo Bianconi To: dev@openvswitch.org Date: Tue, 14 Jan 2020 12:07:12 +0100 Message-Id: X-Mailer: git-send-email 2.21.1 MIME-Version: 1.0 X-MC-Unique: inT2Cd3wPNCV8MA1ZSLw8g-1 X-Mimecast-Spam-Score: 0 Subject: [ovs-dev] [PATCH v6 ovn 0/2] Add IPv6 Prefix delegation (RFC3633) 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" Introduce IPv6 Prefix delegation state machine according to RFC 3633 https://tools.ietf.org/html/rfc3633. Add handle_dhcpv6_reply controller action to parse advertise/reply from IPv6 delegation server. Introduce logical flows in ovn router pipeline in order to parse dhcpv6 advertise/reply from IPv6 prefix delegation router. This series relies on the following OVS commit: https://github.com/openvswitch/ovs/commit/cec89046f72cb044b068ba6a4e30dbcc4292c4c1 Changes since v5: - introduce ipv6_prefix column in logical_router_port table to save ipv6 prefix received from delegation router Changes since v4: - improve unit test support - fix ovn-controller crash - confifure prefixes received from delegation router in RA - allow the requesting router to rely on lla address for PD protocol Changes since v3: - cosmetics - add a provider bridge in the unit-test deployment and add a localnet port to the deployment to access the underlay network - request IPv6 prefix even for bar router logical port in the unit-test deployment Changes since v2: - add unitest support in system-ovn.at Changes since v1: - rebase on top of ovn master branch - request an IPv6 prefix for each 'downstream' logical router port marked with prefix set to true - add missing documentation - rename dhcp6_server_pkt in handle_dhcpv6_reply Lorenzo Bianconi (2): controller: add ipv6 prefix delegation state machine northd: add logical flows for dhcpv6 pfd parsing controller/ovn-controller.c | 1 + controller/pinctrl.c | 612 +++++++++++++++++++++++++++++++++++- controller/pinctrl.h | 2 + include/ovn/actions.h | 8 +- lib/actions.c | 22 ++ lib/ovn-l7.h | 19 ++ northd/ovn-northd.c | 99 +++++- ovn-nb.ovsschema | 5 +- ovn-nb.xml | 22 ++ ovn-sb.xml | 8 + tests/atlocal.in | 5 +- tests/ovn.at | 6 + tests/system-ovn.at | 127 ++++++++ utilities/ovn-trace.c | 3 + 14 files changed, 928 insertions(+), 11 deletions(-)