From patchwork Wed Nov 17 20:35:45 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Vladislav Odintsov X-Patchwork-Id: 1556376 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=puY4z74m; dkim-atps=neutral Authentication-Results: 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=) 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 RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by bilbo.ozlabs.org (Postfix) with ESMTPS id 4HvZSt5j0vz9sPf for ; Thu, 18 Nov 2021 07:35:57 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by smtp4.osuosl.org (Postfix) with ESMTP id CB2B2405F9; Wed, 17 Nov 2021 20:35:53 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Received: from smtp4.osuosl.org ([127.0.0.1]) by localhost (smtp4.osuosl.org [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id aZhYYp-bLrRs; Wed, 17 Nov 2021 20:35:52 +0000 (UTC) Received: from lists.linuxfoundation.org (lf-lists.osuosl.org [IPv6:2605:bc80:3010:104::8cd3:938]) by smtp4.osuosl.org (Postfix) with ESMTPS id 012174015C; Wed, 17 Nov 2021 20:35:51 +0000 (UTC) Received: from lf-lists.osuosl.org (localhost [127.0.0.1]) by lists.linuxfoundation.org (Postfix) with ESMTP id C3A5DC001E; Wed, 17 Nov 2021 20:35:51 +0000 (UTC) X-Original-To: dev@openvswitch.org Delivered-To: ovs-dev@lists.linuxfoundation.org Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.138]) by lists.linuxfoundation.org (Postfix) with ESMTP id 97DE3C0012 for ; Wed, 17 Nov 2021 20:35:50 +0000 (UTC) Received: from localhost (localhost [127.0.0.1]) by smtp1.osuosl.org (Postfix) with ESMTP id 7A51C81008 for ; Wed, 17 Nov 2021 20:35:50 +0000 (UTC) X-Virus-Scanned: amavisd-new at osuosl.org Authentication-Results: smtp1.osuosl.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com 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 z1HxNQJmnxZu for ; Wed, 17 Nov 2021 20:35:49 +0000 (UTC) X-Greylist: whitelisted by SQLgrey-1.8.0 Received: from mail-lf1-x134.google.com (mail-lf1-x134.google.com [IPv6:2a00:1450:4864:20::134]) by smtp1.osuosl.org (Postfix) with ESMTPS id B552281007 for ; Wed, 17 Nov 2021 20:35:49 +0000 (UTC) Received: by mail-lf1-x134.google.com with SMTP id l22so14274465lfg.7 for ; Wed, 17 Nov 2021 12:35:49 -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:mime-version :content-transfer-encoding; bh=1sx5nPHDujBUkVZjdyWL0YWLor0QvXSx/TSGQ/mXLbU=; b=puY4z74mWbVicYdw6Bl87LrbrHvJhAwfKEwdeLImaeujdU3XjuBBXujB1SAJh9tLNO SZmKO+N3NGsDZm2gaklZxd51Op/buG1CdQ7UPZVifTs8jPrgz4TOfStO/lYYnLFZQHVx ncEOJW2F5nyZycncyDaxXa1fTY2GMBdWhgsOsSUj3QFCwBwpqST5MDaQ53JF9rZk4jGi B9Ig+QbtqdZNGUXaG2P/dQPGjHR7IpXhetbAe1quWw3aThd9jiioCQJHUCHHPZcv3DUz 54lB4V2RHz6Jm4d1F7DKpJPRq/HIez9zJobUVbOUJs6fXxTgz+bwyqXQrP7s2Za+lB9O ra+Q== 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:mime-version :content-transfer-encoding; bh=1sx5nPHDujBUkVZjdyWL0YWLor0QvXSx/TSGQ/mXLbU=; b=gMDHM1z0zBWb8kR0BztDH9GEOEtWumiH6LXjfwLET3bstKJO4HuLPoyoDfLWZ63svs YrJF3siGO64GzF+RnFz/EKwLNsXk3Ktb81+sigM4pEeNMMEY60cyPKlJ0suNIaq4mjyz ET/Ut146X63KumWnUCvy+CjSCDYjlkuPHII83t+klLAXiMx1Rlhf4FljWVg0mdwe9XtO VMOTFHbMlwhQji3OiYZ9Ml7Pyw2rhSEemc/BIePQo6Eh+eguOIAU3CFeHertFvuofOov fW6ufaXIF8jp3j4u2avYe0CxuP/d6Mg0gn208EXvoZKC/Xiwdagp/navhuHWU1v/UU2Y MFsg== X-Gm-Message-State: AOAM532O5JPGAOSiV9g+w4j4Sp0iQH7MejrmsueNvyblP3Oa1vtJVKY3 Lr2FWzAoS57oSr42yYkodZvXEsEomVQ= X-Google-Smtp-Source: ABdhPJz4t+/NuuJGLrrrDzOMaphDeGSqcl2ANcztyLt8SBgAEl7Pyqh741/xtWKdnb9Jo+jopgf3Uw== X-Received: by 2002:a05:6512:2348:: with SMTP id p8mr18806957lfu.428.1637181347352; Wed, 17 Nov 2021 12:35:47 -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 h18sm91662ljh.133.2021.11.17.12.35.46 (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128); Wed, 17 Nov 2021 12:35:47 -0800 (PST) From: Vladislav Odintsov To: dev@openvswitch.org Date: Wed, 17 Nov 2021 23:35:45 +0300 Message-Id: <20211117203545.46142-1-odivlad@gmail.com> X-Mailer: git-send-email 2.30.0 MIME-Version: 1.0 Cc: Vladislav Odintsov Subject: [ovs-dev] [PATCH ovn] 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.