From patchwork Fri Nov 19 16:07:16 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1557234 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: bilbo.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20210112 header.b=bjR6vQZk; dkim-atps=neutral Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org (client-ip=140.211.166.136; helo=smtp3.osuosl.org; envelope-from=ovs-dev-bounces@openvswitch.org; receiver=) Received: from smtp3.osuosl.org (smtp3.osuosl.org [140.211.166.136]) (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 bilbo.ozlabs.org (Postfix) with ESMTPS id 4HwhQN3Zhvz9sWJ for ; Sat, 20 Nov 2021 03:07:40 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp3.osuosl.org (Postfix) with ESMTP id EFD0061C21; Fri, 19 Nov 2021 16:07:36 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp3.osuosl.org ([127.0.0.1]) by localhost (smtp3.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id AFRviQx_ouTr; Fri, 19 Nov 2021 16:07:35 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [140.211.9.56]) by smtp3.osuosl.org (Postfix) with ESMTPS id C0AEE61C29; Fri, 19 Nov 2021 16:07:34 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id 14A54C0038; Fri, 19 Nov 2021 16:07:33 +0000 (UTC) X-Original-To: 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 4366EC0031 for ; Fri, 19 Nov 2021 16:07:32 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp2.osuosl.org (Postfix) with ESMTP id 13FFD4094E for ; Fri, 19 Nov 2021 16:07:32 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp2.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.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 YKoYUN28q4GT for ; Fri, 19 Nov 2021 16:07:31 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-ed1-x532.google.com (mail-ed1-x532.google.com [IPv6:2a00:1450:4864:20::532]) by smtp2.osuosl.org (Postfix) with ESMTPS id 00A8F401E4 for ; Fri, 19 Nov 2021 16:07:30 +0000 (UTC) Received: by mail-ed1-x532.google.com with SMTP id o20so233740eds.10 for ; Fri, 19 Nov 2021 08:07:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=1sx5nPHDujBUkVZjdyWL0YWLor0QvXSx/TSGQ/mXLbU=; b=bjR6vQZkIxf2mHuvvE1n/B/nBJ6XmT0iv5xdsulNetNO9XwqefNprWZsD3xdRfDbUP ApU36ak+j1zPpMI3/W7E6kSqY4hqE/G7ePexdBjWg/l5Y/q7911bmnWnuxtFASIQkLzJ mCym8AE1JL0WkT22wlsBbm3M2tLj/c1lm3oKJnfslMqN8A450IHgrFRJ1rqwYdidkum+ yUXAPy3aB+8wKkMxH3jK1qt4FT5udbRr2lcGYaKp4N1HVpnyp7m66dJUWk988gsIdTHq GFpi87aQ2AGKl33sdEelgfzLXgXQ7fJzRSQMYAIAnx+iqSyIE8k199pwd43n4ElxJCEH MZxQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=1sx5nPHDujBUkVZjdyWL0YWLor0QvXSx/TSGQ/mXLbU=; b=FKYpbcwKu9+6qAA+xiHUrwjK5D9viqf6PiE3DrQ0jaL2fHynr9n1vZ0zWPuLYFFStf 2+XIO/rd0/xFyGD/nr0UdsPhRkNjFqXJfoXzmYg6GFbhLW/v66N7ZN13KUXMDw/U7igw nIsND/Fgws6qc2ppaYJZq9IHUXZGyLTma2RtdsadUzDOukvkhvnOIOIaJRFUACeqQZLH 5j45313VG1u1lFp8O+48hoULMfGJSZITmmQL81HAaC63RcM+/+7j5JpbeVhVKxpUGs+r wZfcf6aZahxhtCGBUMH5wz9q0hUzg0cBSUJozmLTQzk2UfI/FpjJF8jdJvs1hltUduYo VyEA== X-Gm-Message-State: AOAM532O8tZSMNpev6OpbOK4BBdjam8GQPyB27SshvEuxCc3YkpKE06C ZccX8KTu7Bazdc3N+ggMZkbYQ40Bm/2/KQ== X-Google-Smtp-Source: ABdhPJwDoZOoOSgbjNmE6lkMjuH41zVkJyf2ICUDJCk+M6V1nbB12QOXD9L6zJCqNA6Wf449tff7jw== X-Received: by 2002:a05:6402:34c1:: with SMTP id w1mr26548166edc.179.1637338048426; Fri, 19 Nov 2021 08:07:28 -0800 (PST) Received: from localhost.localdomain (109-252-131-59.dynamic.spd-mgts.ru. [109.252.131.59]) by smtp.gmail.com with ESMTPSA id z6sm121427edc.76.2021.11.19.08.07.27 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Fri, 19 Nov 2021 08:07:28 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Fri, 19 Nov 2021 19:07:16 +0300 Message-Id: <20211119160721.60612-2-odivlad@gmail.com> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20211119160721.60612-1-odivlad@gmail.com> References: <20211119160721.60612-1-odivlad@gmail.com> MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn v9 1/6] northd: fix symmetric ECMP reply flows documentation 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" This patch fixes a flow priority which is added in IP Defrag table and adds priority value for symmetric ECMP reply flow in IP Routing table. Fixes: 384a7c6 (northd: Refactor Logical Flows for routers with DNAT/Load Balancers) Signed-off-by: Vladislav Odintsov --- northd/ovn-northd.8.xml | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/northd/ovn-northd.8.xml b/northd/ovn-northd.8.xml index 21d83718c..a56a54955 100644 --- a/northd/ovn-northd.8.xml +++ b/northd/ovn-northd.8.xml @@ -2945,7 +2945,7 @@ icmp6 {

If ECMP routes with symmetric reply are configured in the - OVN_Northbound database for a gateway router, a priority-300 + OVN_Northbound database for a gateway router, a priority-100 flow is added for each router port on which symmetric replies are configured. The matching logic for these ports essentially reverses the configured logic of the ECMP route. So for instance, a route with a @@ -3313,14 +3313,14 @@ output; table. This table, instead, is responsible for determine the ECMP group id and select a member id within the group based on 5-tuple hashing. It stores group id in reg8[0..15] and member id in - reg8[16..31]. This step is skipped if the traffic going - out the ECMP route is reply traffic, and the ECMP route was configured - to use symmetric replies. Instead, the stored ct_label value - is used to choose the destination. The least significant 48 bits of the - ct_label tell the destination MAC address to which the - packet should be sent. The next 16 bits tell the logical router port on - which the packet should be sent. These values in the - ct_label are set when the initial ingress traffic is + reg8[16..31]. This step is skipped with a priority-300 rule + if the traffic going out the ECMP route is reply traffic, and the ECMP + route was configured to use symmetric replies. Instead, the stored + ct_label value is used to choose the destination. The least + significant 48 bits of the ct_label tell the destination MAC + address to which the packet should be sent. The next 16 bits tell the + logical router port on which the packet should be sent. These values in + the ct_label are set when the initial ingress traffic is received over the ECMP route.