From patchwork Tue Jul 13 12:53:18 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1504589 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=2605:bc80:3010::138; helo=smtp1.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) 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=Eawg7C5s; dkim-atps=neutral Received: from smtp1.osuosl.org (smtp1.osuosl.org [IPv6:2605:bc80:3010::138]) (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 ozlabs.org (Postfix) with ESMTPS id 4GPLDF6mXdz9sWd for ; Tue, 13 Jul 2021 22:53:49 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B38468376D; Tue, 13 Jul 2021 12:53:44 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id pASSpNSoMEbg; Tue, 13 Jul 2021 12:53:44 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp1.osuosl.org (Postfix) with ESMTPS id 05F448345D; Tue, 13 Jul 2021 12:53:43 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id CDEDBC001A; Tue, 13 Jul 2021 12:53:42 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [140.211.166.133]) by lists.linuxfoundation.org (Postfix) with ESMTP id CA62EC000E for ; Tue, 13 Jul 2021 12:53:41 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id B84BE4015C for ; Tue, 13 Jul 2021 12:53:41 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (1024-bit key) header.d=redhat.com Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Efow0T_QfD7c for ; Tue, 13 Jul 2021 12:53:41 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.8.0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id E226B400F3 for ; Tue, 13 Jul 2021 12:53:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1626180819; 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=3RT4tNa7YqXv7uIgp7LXEcs950sP31LzQ5GT9DtGmR0=; b=Eawg7C5sK4p2Jq67RmRpRQnP6N+op9Le/jNHgl4+K7f9fuTk+VkGHgeZg65w0EeAApQhUf DRaqki+UJk8A2AmZTlZ3Sr+hFnTMaMmmppYjOzmI43ky4CP9QSwlpjJUD9gql7bgv5pTeF OsahRrNlXvXAQk/Ux7nFzAq3DwSJ8ls= Received: from mail-ed1-f69.google.com (mail-ed1-f69.google.com [209.85.208.69]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-138-a6b-aQWfOpmC6KWsQVXV9Q-1; Tue, 13 Jul 2021 08:53:38 -0400 X-MC-Unique: a6b-aQWfOpmC6KWsQVXV9Q-1 Received: by mail-ed1-f69.google.com with SMTP id f20-20020a0564020054b0290395573bbc17so11846278edu.19 for ; Tue, 13 Jul 2021 05:53:38 -0700 (PDT) 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=3RT4tNa7YqXv7uIgp7LXEcs950sP31LzQ5GT9DtGmR0=; b=n+JrYmNvUlwrBV74+n29ODFQuB/fiqiIsdo/X3LtHhu1N/NXwO+5GKp6TcD08UHmeQ GvlWUw6nwja7MP02++yBNcZRBfXfxm9IUV0ofE/TQY+HNDNtT9aDgrrrym9ufTSrgsEw 4WkvxPpcXu+Exm69vY9DB9pzl+TLdTHM9AL1RiFX5/zFOolVgkRJdLTDnGOMtaZWWLH6 svt1mi3oBOfbKs/bBxhd1ctFOEICuJc3uzoEPTZw458Vuc5ZmlEk2B+Nj9Y2i1jCGSf8 bmyur08xmffDOd+XXhnk5351pUSgNgiKZmAn3JJrnnBV6L27ISEDM2Dg7URhlOr3p+yC cQdw== X-Gm-Message-State: AOAM533RK8UYiRXck2Io0+0hRM5QfH6VkSWhtMk0ry3thf7viGkd143a quwe5XKZ7OIhDe6Nm/Cat9qcrvsuBaMu68127y/mNpDDCo7Su5Roc7GM2T7BYjtEFbwtRrRRLro x6MnwiT0BJ2mNKtrptqKSNvB9SMm0sZR0uj0x0uTnKBaoPONtTg0/V5t2inDcOtkewt0jkpCq2Z U= X-Received: by 2002:a05:6402:312d:: with SMTP id dd13mr5533145edb.348.1626180817173; Tue, 13 Jul 2021 05:53:37 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzU1pFMrssHLMEVEB/QXIUusb3/ni7/0TGpSBA5mG2JiWwrNg4RV6co83vr5KJRVEeNMQuD7Q== X-Received: by 2002:a05:6402:312d:: with SMTP id dd13mr5533119edb.348.1626180816946; Tue, 13 Jul 2021 05:53:36 -0700 (PDT) Received: from localhost.localdomain (net-188-216-29-9.cust.vodafonedsl.it. [188.216.29.9]) by smtp.gmail.com with ESMTPSA id s16sm2774114eju.57.2021.07.13.05.53.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 13 Jul 2021 05:53:36 -0700 (PDT) From: Lorenzo Bianconi To: dev@openvswitch.org Date: Tue, 13 Jul 2021 14:53:18 +0200 Message-Id: X-Mailer: git-send-email 2.31.1 MIME-Version: 1.0 Authentication-Results: relay.mimecast.com; auth=pass smtp.auth=CUSA124A263 smtp.mailfrom=lorenzo.bianconi@redhat.com X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Cc: dceara@redhat.com Subject: [ovs-dev] [PATCH v4 ovn 0/2] incrementally process ras-ipv6 pd router ports 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" https://bugzilla.redhat.com/show_bug.cgi?id=1944220 Changes since v3: - fix memory leaks Changes since v2: - use smap_get_bool instead of smap_get in update_active_pb_ras_pd routine Changes since v1: - use shash instead of hamp - always remove the entry from shash if the user removed the ipv6_pd/ras info in port_binding option column Lorenzo Bianconi (2): controller: incrementally create ipv6 prefix delegation port_binding list controller: incrementally create ras port_binding list controller/binding.c | 41 ++++++++ controller/binding.h | 2 + controller/ovn-controller.c | 19 +++- controller/ovn-controller.h | 6 ++ controller/pinctrl.c | 198 ++++++++++++++++++------------------ controller/pinctrl.h | 5 +- 6 files changed, 171 insertions(+), 100 deletions(-)