| Message ID | cover.1731342268.git.lorenzo.bianconi@redhat.com |
|---|---|
| Headers | show
Return-Path: <ovs-dev-bounces@openvswitch.org> 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=Qy8fxrp8; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=2605:bc80:3010::137; helo=smtp4.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org) Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) (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 4XnFRS747Pz1xyG for <incoming@patchwork.ozlabs.org>; Tue, 12 Nov 2024 03:31:15 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id D0DAB40653; Mon, 11 Nov 2024 16:31:12 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id oxFwu8Dpg6L9; Mon, 11 Nov 2024 16:31:11 +0000 (UTC) X-Comment: SPF check N/A for local connections - client-ip=140.211.9.56; helo=lists.linuxfoundation.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=<UNKNOWN> DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org A4EA84064D Authentication-Results: smtp4.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=Qy8fxrp8 Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp4.osuosl.org (Postfix) with ESMTPS id A4EA84064D; Mon, 11 Nov 2024 16:31:11 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 58A07C0889; Mon, 11 Nov 2024 16:31:11 +0000 (UTC) X-Original-To: ovs-dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp4.osuosl.org (smtp4.osuosl.org [IPv6:2605:bc80:3010::137]) by lists.linuxfoundation.org (Postfix) with ESMTP id 40178C087D for <ovs-dev@openvswitch.org>; Mon, 11 Nov 2024 16:31:10 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id 2FAC34064C for <ovs-dev@openvswitch.org>; Mon, 11 Nov 2024 16:31:10 +0000 (UTC) X-Virus-Scanned: amavis at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavis, port 10024) with ESMTP id QZlJxlCN4_At for <ovs-dev@openvswitch.org>; Mon, 11 Nov 2024 16:31:07 +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=<UNKNOWN> DMARC-Filter: OpenDMARC Filter v1.4.2 smtp4.osuosl.org B63D240631 Authentication-Results: smtp4.osuosl.org; dmarc=pass (p=none dis=none) header.from=redhat.com DKIM-Filter: OpenDKIM Filter v2.11.0 smtp4.osuosl.org B63D240631 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by smtp4.osuosl.org (Postfix) with ESMTPS id B63D240631 for <ovs-dev@openvswitch.org>; Mon, 11 Nov 2024 16:31:05 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1731342664; 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=rb8cCZgeYtzlYV6iLpaZ5GRvQNDlMR8TGN9UuRI34fs=; b=Qy8fxrp8wIUzJjOCm3XDsGne8kxf9d0WIFmU/XZnG3u9ce6DzDngTPsA96iyCYKh0NERua TIoCNT4IU0kYjmQDkT/arIeBq4I4K4d0u090a4Hlebk8kSYRDviVH/1/6kSm+AYt/GVieU yIfU3j9dJagAs6OakVJ6KfJbzeDmutc= Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-153-atNgVWSVPi-Md-bERf_BPA-1; Mon, 11 Nov 2024 11:31:02 -0500 X-MC-Unique: atNgVWSVPi-Md-bERf_BPA-1 X-Mimecast-MFC-AGG-ID: atNgVWSVPi-Md-bERf_BPA Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-43159603c92so33181645e9.2 for <ovs-dev@openvswitch.org>; Mon, 11 Nov 2024 08:31:01 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1731342660; x=1731947460; 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=rb8cCZgeYtzlYV6iLpaZ5GRvQNDlMR8TGN9UuRI34fs=; b=TMdnirbjm5C9Bx80QIlwJ79FnS+7p6+a4AlCAQuUo6pTojk6iZSCn5t0vrJG5Nyfsx 7Wrxy+OXkRmzo3xG4MPST8HYxoqcIhbX0e2EB/NHI4qVoZq/9fzOpoJ0OIliZv2tHsnb sFLBOwq0Mum6TeHBSrxqTayGROeesqtpE55VvQmIDcDpPNK7aBnNEHepWvTp8cy80m36 KZ80Z8lYUIhdxbQs7mtOCVFrw37GMcEwbM+mP5xLghy5Oc76wZEAglBPsOmZgdu1KFg0 vDc++ojCOFxkhAdNpz0QEWyAUIDAnogeUNsUB0aYXqXtN3vHiLmNjLLL1ZxmluvRvohd GMcQ== X-Gm-Message-State: AOJu0Yw698AgUlkwiNocW5wUFfyobqGZKbdH9t+9JArJbtCP2RBP4OfD vsArkb+upFYs7yxXtfgZ/hNP5JtnW8q3+LkxDpmkd3eMQ74QjJnpVKIkhxECpDxc+/0M0v9bh86 TYBE2rKBMFwvbE8yApKa/YYnTmtuLbqjKi6WILuJLzPRQ/FmWtkiGuo1ZuCK/Zcwq+xO+oKyBCh m+LD7J7LCjZwCzHtcXnpf4Pz/5kKCzAO8dY7cqrWukpZthXTY3nQ== X-Received: by 2002:a05:600c:46c8:b0:431:44fe:fd9f with SMTP id 5b1f17b1804b1-432b7517a83mr106822655e9.23.1731342660143; Mon, 11 Nov 2024 08:31:00 -0800 (PST) X-Google-Smtp-Source: AGHT+IEIfBEtGOZ/V9bRZD7FM85HUSqxStzzu82DQyrddnS75UacCp6Xm7XA0BdbA6P3V1GtEGkO1w== X-Received: by 2002:a05:600c:46c8:b0:431:44fe:fd9f with SMTP id 5b1f17b1804b1-432b7517a83mr106822365e9.23.1731342659695; Mon, 11 Nov 2024 08:30:59 -0800 (PST) Received: from localhost (net-93-146-37-148.cust.vodafonedsl.it. [93.146.37.148]) by smtp.gmail.com with ESMTPSA id 5b1f17b1804b1-432b0566544sm176403765e9.24.2024.11.11.08.30.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 11 Nov 2024 08:30:59 -0800 (PST) From: Lorenzo Bianconi <lorenzo.bianconi@redhat.com> To: ovs-dev@openvswitch.org Date: Mon, 11 Nov 2024 17:30:45 +0100 Message-ID: <cover.1731342268.git.lorenzo.bianconi@redhat.com> X-Mailer: git-send-email 2.47.0 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: CC4tsZrRyUQVE0gpsT2Nnc82ah7lOXrN1gmfDxVXIOY_1731342660 X-Mimecast-Originator: redhat.com Subject: [ovs-dev] [RFC v3 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: <ovs-dev.openvswitch.org> List-Unsubscribe: <https://mail.openvswitch.org/mailman/options/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=unsubscribe> List-Archive: <http://mail.openvswitch.org/pipermail/ovs-dev/> List-Post: <mailto:ovs-dev@openvswitch.org> List-Help: <mailto:ovs-dev-request@openvswitch.org?subject=help> List-Subscribe: <https://mail.openvswitch.org/mailman/listinfo/ovs-dev>, <mailto:ovs-dev-request@openvswitch.org?subject=subscribe> Cc: dceara@redhat.com Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: ovs-dev-bounces@openvswitch.org Sender: "dev" <ovs-dev-bounces@openvswitch.org> |
| Series |
Introduce ECMP_nexthop monitor in ovn-controller
|
expand
|
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 RFC v3: - move ecmp-next-hop-monitor code in controller/ecmp-next-hop-monitor.{c,h} - use a hamp for send_arp_nd_data since the same nexthop can be used by multiple ports/routes - add new system-ovn test to check when a given next-hop is used by multiple ovn-routers/ecmp routes - use a Port_Binding reference in ECMP_Nexthop - use nexthop and port as ECMP_Nexthop table index - move ECMP_Nexthop mac binding update in mac_binding_add_to_sb() - cosmetics Changes in RFC 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. NEWS | 7 + controller/automake.mk | 4 +- controller/ecmp-next-hop-monitor.c | 102 ++++++ controller/ecmp-next-hop-monitor.h | 24 ++ controller/ofctrl.c | 6 + controller/ofctrl.h | 2 + controller/ovn-controller.8.xml | 10 + controller/ovn-controller.c | 8 + controller/pinctrl.c | 365 ++++++++++++++++++- controller/pinctrl.h | 3 + include/ovn/logical-fields.h | 3 + northd/en-northd.c | 29 ++ northd/en-northd.h | 4 + northd/inc-proc-northd.c | 9 +- northd/northd.c | 58 ++- northd/northd.h | 6 + ovn-sb.ovsschema | 17 +- ovn-sb.xml | 31 ++ tests/ovn-northd.at | 33 +- tests/system-ovn.at | 544 +++++++++++++++++++++++++++++ 20 files changed, 1237 insertions(+), 28 deletions(-) create mode 100644 controller/ecmp-next-hop-monitor.c create mode 100644 controller/ecmp-next-hop-monitor.h