From patchwork Thu Sep 19 17:08:25 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lorenzo Bianconi X-Patchwork-Id: 1987523 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.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=evnKPOt0; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4X8hnM0w1Yz1y1m for ; Fri, 20 Sep 2024 03:08:55 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id B791984B26; Thu, 19 Sep 2024 17:08:51 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp1.osuosl.org ([127.0.0.1]) by localhost (smtp1.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id Bta4YrA2vqdu; Thu, 19 Sep 2024 17:08:50 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=2605:bc80:3010:104::8cd3:938; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver= DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org A696384B1F Authentication-Results: smtp1.osuosl.org; dkim=fail reason="signature verification failed" (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=evnKPOt0 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp1.osuosl.org (Postfix) with ESMTPS id A696384B1F; Thu, 19 Sep 2024 17:08:50 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 5AFF7C0012; Thu, 19 Sep 2024 17:08:50 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp2.osuosl.org (smtp2.osuosl.org [IPv6:2605:bc80:3010::133]) by lists.linuxfoundation.org (Postfix) with ESMTP id 643EEC0011 for ; Thu, 19 Sep 2024 17:08:48 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 4A6FE40436 for ; Thu, 19 Sep 2024 17:08:48 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp2.osuosl.org ([127.0.0.1]) by localhost (smtp2.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id c8pSQyLh38X6 for ; Thu, 19 Sep 2024 17:08:47 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=170.10.129.124; helo=us-smtp-delivery-124.mimecast.com; envelope-from=lorenzo.bianconi@redhat.com; receiver= DMARC-Filter: OpenDMARC Filter v1.4.2 smtp2.osuosl.org 33A39402CE Authentication-Results: smtp2.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp2.osuosl.org 33A39402CE Authentication-Results: smtp2.osuosl.org; dkim=pass (1024-bit key) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=evnKPOt0 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp2.osuosl.org (Postfix) with ESMTPS id 33A39402CE for ; Thu, 19 Sep 2024 17:08:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1726765724; 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=4CLKwOBh8326etut8kWATVB/qC8L05s3kUXZ/QVVHFQ=; b=evnKPOt0dnDFrW6VJAz8ruIyrm2Zc0OAMCc+Q0qmtDDES+omENl8f2m3dpgs4KSxZtznnV hK8RTkiENxyAqW3ss+7+Q1ZELu+HTzdatv4BMiYOpuzr+R8igdbGwl2GTDBopEUzskC4Sv ATJPZ8w9h3ZQ2pVSPwCqC8rYzXgBGAs= Received: from mail-lj1-f200.google.com (mail-lj1-f200.google.com [209.85.208.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-569-QrWMxbw_MmG6VVhkI67m4w-1; Thu, 19 Sep 2024 13:08:43 -0400 X-MC-Unique: QrWMxbw_MmG6VVhkI67m4w-1 Received: by mail-lj1-f200.google.com with SMTP id 38308e7fff4ca-2f5086e692cso8665061fa.2 for ; Thu, 19 Sep 2024 10:08:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1726765722; x=1727370522; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=4CLKwOBh8326etut8kWATVB/qC8L05s3kUXZ/QVVHFQ=; b=YhafF07eku6w+H/Nld1aLXqKuzLT+Fwx5La3s1ekfFU09L0QGnOeZg8vVTk7bYSTPi Gh7f5f1Nc4lBAlKtBtL/gpp6gSQVCgBJeCVwm83xkHUtqmmXnefqRfchwx9qakLWux6S SysEQfsUuwlh1D/8GB4PT4Ty3ykTAzZLZghJWgz+7q0aeW7mnlM0Nkn7DETrjKXxDWD0 zwnwO4COaIT7TGF7OMYTrw4hKjJ+aR6WJBolaPagI92HdsEkcgKkpQmw9qwFTpsVprEe idu0ty0+EPZy8E/oAgBJEMAZoYsfEFeepdCc3DoQh8/bJYTeYPgIZpt0m4X6K0rpmVVC 3GEg== X-Gm-Message-State: AOJu0Yx774ik/l2oCrDoB3N9WTqvDOe9XdoHUdOLCB/ke9nIsi3SbzQd eV11kFV1eQrCLYIoC1KEfozx4MsjGp5Psn2OdXVO+is5i2mST+oqeK3YidY7DUjwp98qq3lD6/p tLL58wU6cQh+S1r2hkLe6l18+TeexMqpMqnIMmDHk0lYs75xFpi8c35iQ8+EsE9TDwKmdgxfGx1 vg7OfvM+odq4Cf5k06dIeUZJ3cAYywnxSHwHmWfrqm0UqX3r0a0g== X-Received: by 2002:a05:651c:b07:b0:2f7:b71b:595a with SMTP id 38308e7fff4ca-2f7cb31cfd3mr1771851fa.24.1726765721847; Thu, 19 Sep 2024 10:08:41 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEUxJ2GuA3jQtDnn7NknpEY8yoADZrIBuJKE+MATtvh+3LYzFWBA2i/Fu2wbru0Mx/uj4+3Ww== X-Received: by 2002:a05:651c:b07:b0:2f7:b71b:595a with SMTP id 38308e7fff4ca-2f7cb31cfd3mr1771611fa.24.1726765721259; Thu, 19 Sep 2024 10:08:41 -0700 (PDT) Received: from localhost (net-37-182-8-79.cust.vodafonedsl.it. [37.182.8.79]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-42e7ae5fcb4sm570415e9.5.2024.09.19.10.08.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 19 Sep 2024 10:08:40 -0700 (PDT) From: Lorenzo Bianconi To: ovs-dev@openvswitch.org Date: Thu, 19 Sep 2024 19:08:25 +0200 Message-ID: X-Mailer: git-send-email 2.46.1 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [RFC v2 ovn 0/4] Introduce ECMP_nexthop monitor in ovn-controller X-BeenThere: ovs-dev@openvswitch.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: dceara@redhat.com Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" With respect to the previous implementation, OVN is now tracking and flushing ECMP next-hop ct entries with the next-hop mac address instead of using an identification number committed by ovn-northd since the previous approach had some limitations when the traffic is initialized from outside the ovn cluster. This series is introducing a way to periodically resolve L2 address of the configured next-hops. Please note IPv6 is not currently supported and it will be added before posting a formal series. The goal of this series is just to collect feedbacks about the proposed approach. Changes in v2: - add IPv6 support Lorenzo Bianconi (4): northd: Introduce ECMP_Nexthop table in SB db. pinctrl: Send periodic arp/nd to ecmp next-hops. pinctrl: Update ecmp-nexthop mac resolving L2 address. ofctrl: Introduce ecmp_nexthop_monitor. controller/ofctrl.c | 73 ++++++ controller/ofctrl.h | 2 + controller/ovn-controller.8.xml | 11 + controller/ovn-controller.c | 8 + controller/pinctrl.c | 319 ++++++++++++++++++++++++--- controller/pinctrl.h | 3 + northd/en-northd.c | 31 +++ northd/en-northd.h | 4 + northd/inc-proc-northd.c | 14 +- northd/northd.c | 70 +++++- northd/northd.h | 5 + ovn-sb.ovsschema | 17 +- ovn-sb.xml | 34 +++ tests/ovn-northd.at | 18 +- tests/system-ovn.at | 378 ++++++++++++++++++++++++++++++++ 15 files changed, 942 insertions(+), 45 deletions(-)