From patchwork Fri Oct 26 16:25:57 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 989660 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=redhat.com 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 42hTry14jCz9s0t for ; Sat, 27 Oct 2018 03:26:26 +1100 (AEDT) Received: from mail.linux-foundation.org (localhost [127.0.0.1]) by mail.linuxfoundation.org (Postfix) with ESMTP id 22F0029B6; Fri, 26 Oct 2018 16:26:23 +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 4624229AE for ; Fri, 26 Oct 2018 16:26:08 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.7.6 Received: from mail-wr1-f52.google.com (mail-wr1-f52.google.com [209.85.221.52]) by smtp1.linuxfoundation.org (Postfix) with ESMTPS id E1D957F8 for ; Fri, 26 Oct 2018 16:26:06 +0000 (UTC) Received: by mail-wr1-f52.google.com with SMTP id d17-v6so1662120wre.11 for ; Fri, 26 Oct 2018 09:26:06 -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:subject:date:message-id; bh=Ql9jwI5xjwOkDZjLqyNkOprouZnaTNDuZmkhjvwHKpw=; b=AAcyRC9CxYfskYY/Ab+2LFDofy2A10g26nrJpipo+dc6/+mt88/vAnjd/oNfAX2SaP TqcHDvMzfG1ZvtAY4w9jYMxy+LyIgs+74nBznFgFm7d9Fz2ez24BidF9YXizF9oQvBVo q7T8Nl7ze7ytXN3i2tNMcUMejwoUQIB7CUJRhA3ip0USOBQZDNZ/VUAPITX6H51ehxcx ldaze696qzlt1Vh5c8krRJauf1PBQlMB0B9qi2523z8cRtkHJr8ewKZL+c16Ua1KlIm6 aIE4sTFPxU0bt8v2W0Q0U2xGNuRpimSbaMCb4bxmoXLfBVfLiTJUSOUGtadbmxgJ8MLw eEiw== X-Gm-Message-State: AGRZ1gIlqgDTYnytKwqvYKZUaVsj977IJRphsTpOz6xnuStEIE813Rig rTXDLPWHVRLYuh/jjNqqOJpNmk/m7jo= X-Google-Smtp-Source: AJdET5c2J4yK79rT2SAVcunSnjLZMM1eb0/T56VIWYe40oHiehTWCwGTzh+xrlIMTt44Uq6eNPJftg== X-Received: by 2002:adf:e0ce:: with SMTP id e14-v6mr6530808wri.199.1540571165115; Fri, 26 Oct 2018 09:26:05 -0700 (PDT) Received: from localhost.localdomain.com ([151.66.52.234]) by smtp.gmail.com with ESMTPSA id e142-v6sm11779507wmf.20.2018.10.26.09.26.04 for (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Fri, 26 Oct 2018 09:26:04 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Fri, 26 Oct 2018 18:25:57 +0200 Message-Id: X-Mailer: git-send-email 2.17.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_NONE 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 0/2] configure mac address according to IP address 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: , MIME-Version: 1.0 Sender: ovs-dev-bounces@openvswitch.org Errors-To: ovs-dev-bounces@openvswitch.org When dynamic IPAM is used configure L2 address according to the used IPv4 address. Moreover visit all ovn datapaths before adding new dynamic addresses to the system in order to avoid possible L2 address duplication This patchset is based on top of 'OVN: introduce mac_prefix support to IPAM' https://mail.openvswitch.org/pipermail/ovs-dev/2018-October/353327.html Lorenzo Bianconi (2): OVN: assign new addresses at the end of build_ipam routine OVN: configure L2 address according to the used IP address ovn/northd/ovn-northd.c | 80 ++++++++++++++--------------- tests/ovn.at | 110 ++++++++++++++++++++-------------------- 2 files changed, 95 insertions(+), 95 deletions(-)