From patchwork Thu Dec 5 01:27:43 2024
Content-Type: text/plain; charset="utf-8"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
X-Patchwork-Submitter: Ilya Maximets
X-Patchwork-Id: 2018749
Return-Path:
X-Original-To: incoming@patchwork.ozlabs.org
Delivered-To: patchwork-incoming@legolas.ozlabs.org
Authentication-Results: legolas.ozlabs.org;
spf=pass (sender SPF authorized) smtp.mailfrom=openvswitch.org
(client-ip=140.211.166.138; helo=smtp1.osuosl.org;
envelope-from=ovs-dev-bounces@openvswitch.org; receiver=patchwork.ozlabs.org)
Received: from smtp1.osuosl.org (smtp1.osuosl.org [140.211.166.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 4Y3tvm4LG0z1yQl
for ; Thu, 5 Dec 2024 23:28:04 +1100 (AEDT)
Received: from localhost (localhost [127.0.0.1])
by smtp1.osuosl.org (Postfix) with ESMTP id 1085B82032;
Thu, 5 Dec 2024 12:28:03 +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 GU2i1grpLY6f; Thu, 5 Dec 2024 12:28:02 +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 E140481F4B
Received: from lists.linuxfoundation.org (lf-lists.osuosl.org
[IPv6:2605:bc80:3010:104::8cd3:938])
by smtp1.osuosl.org (Postfix) with ESMTPS id E140481F4B;
Thu, 5 Dec 2024 12:28:01 +0000 (UTC)
Received: from lf-lists.osuosl.org (localhost [127.0.0.1])
by lists.linuxfoundation.org (Postfix) with ESMTP id 94457C07E7;
Thu, 5 Dec 2024 12:28:01 +0000 (UTC)
X-Original-To: ovs-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 78BDFC07E6
for ; Thu, 5 Dec 2024 12:28:00 +0000 (UTC)
Received: from localhost (localhost [127.0.0.1])
by smtp1.osuosl.org (Postfix) with ESMTP id 5B42B81F64
for ; Thu, 5 Dec 2024 12:28:00 +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 MlT_-O7hFIIt for ;
Thu, 5 Dec 2024 12:27:59 +0000 (UTC)
Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=209.85.167.66;
helo=mail-lf1-f66.google.com; envelope-from=i.maximets.ovn@gmail.com;
receiver=
DMARC-Filter: OpenDMARC Filter v1.4.2 smtp1.osuosl.org D680F81F4B
Authentication-Results: smtp1.osuosl.org;
dmarc=none (p=none dis=none) header.from=ovn.org
DKIM-Filter: OpenDKIM Filter v2.11.0 smtp1.osuosl.org D680F81F4B
Received: from mail-lf1-f66.google.com (mail-lf1-f66.google.com
[209.85.167.66])
by smtp1.osuosl.org (Postfix) with ESMTPS id D680F81F4B
for ; Thu, 5 Dec 2024 12:27:58 +0000 (UTC)
Received: by mail-lf1-f66.google.com with SMTP id
2adb3069b0e04-53e224bbaccso835606e87.3
for ; Thu, 05 Dec 2024 04:27:58 -0800 (PST)
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1733401676; x=1734006476;
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=5o9Pj5ruRt/D6UsL5UiIRk/5ordEjGIN5AZtBXwO3JQ=;
b=Ai8Bq8+TB+uIuehebHItoyppMb5QP6fSezZfnTyPEn9xm7kaIhycNVJEb6uve3RVDJ
uJny+LcQ/Uyy4qqcJ2BLVhYvQkFqrCiIe7mZRbC7hAl4uTmXrgjUfKOjaCjxisPn/0dv
7RRvKfrVUA/SCmLhBAF7dm2wiZC1j8hwLZsgYFfKNXAssorECdGE2tuRNkBQbr+3TKqr
tnAg0T5Mt1ARQEBmCBXQA9p3GYVipzY9JWIkxyRb+S0n3OGGPrNFSHzV+XJzFauOm8Kh
Pc6rMjv1a7X6VIl5TjPJxX9QlcFVfUEzfZdYm+Ksk9n3dZsB6K4E5rSJXipHKJSi2OG2
iMZw==
X-Gm-Message-State: AOJu0YyldSGSrtPVW42igccaLOzXHaooV0cHbBiGCqEeVA46rWBnbv+5
s8M0/QH2OO5HpH2zgoPCnIZlgYTxMwJq14DReUVHlr00c+8JgAWuk15O3mWu
X-Gm-Gg: ASbGncthON89EGQWm8ZMJpWv//M3ID9hGqE5ewAFi6iGRESLnozntTViazPW+PVPH/e
ruu2ilm09XFj/+ZF9SHjJaF2NM7utdmoZdMeDRp92db72xd2q3KvA4QtCHg8hi0qwxlWF1BBVq2
fk2bYOjqQJeLu0NpMMlR43cfImp808UrzoKGqEQ5pZgRDv6eIPf6ueK/p22LeTNu2gETrutzKv7
oe+6Sxq3pXD+IUpz709uKjqYRCIH7692v6rPPpycgDEB3DQYNnAkzNcPggWnzcKAYE7Bdw5UC8k
8UwE0mDgr0Qv
X-Google-Smtp-Source:
AGHT+IHLagX8b+IXqMKE1Jc2BOPvPZVca3uaJ6XHXzg2LBWqWjgevAoulBmvDPGTUt4zurCaRgrKhQ==
X-Received: by 2002:a05:6512:1149:b0:53e:2724:636f with SMTP id
2adb3069b0e04-53e272463d1mr859371e87.28.1733401676172;
Thu, 05 Dec 2024 04:27:56 -0800 (PST)
Received: from im-t490s.redhat.com (ip-86-49-44-151.bb.vodafone.cz.
[86.49.44.151]) by smtp.gmail.com with ESMTPSA id
a640c23a62f3a-aa62602d40csm84481966b.116.2024.12.05.04.27.55
(version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);
Thu, 05 Dec 2024 04:27:55 -0800 (PST)
From: Ilya Maximets
To: ovs-dev@openvswitch.org
Cc: Dumitru Ceara , Vladislav Odintsov ,
Ilya Maximets
Date: Thu, 5 Dec 2024 13:27:43 +0100
Message-ID: <20241205122751.3309292-1-i.maximets@ovn.org>
X-Mailer: git-send-email 2.47.0
MIME-Version: 1.0
Subject: [ovs-dev] [PATCH ovn] chassis: Deprecate support for STT
encapsulation.
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: ,
Errors-To: ovs-dev-bounces@openvswitch.org
Sender: "dev"
STT tunnel support will be deprecated in upcoming OVS 3.5 release and
planned for removal in OVS 3.6.
The main reasons are:
STT tunnel implementation was rejected in the upstream Linux kernel
long time ago and will probably never be there, because it is
not considered safe for use, as it can confuse parts of the network
mistaking it for normal TCP.
The only available implementation for Linux is an OOT openvswitch
kernel module shipped with OVS 2.17. This module is deprecated and
2.17 reaches EoL in Feb 2025. At that point there will be no
supported implementation for Linux.
The standard draft for the protocol itself is also expired and
archived with the latest update made in 2016:
https://datatracker.ietf.org/doc/draft-davie-stt/
Modern network interface cards support various hardware offload
features with UDP tunnels, diminishing the main selling point of
STT - the ability to reuse hardware offload features meant for TCP.
Deprecate the STT encapsulation type in OVN as well, so support can
be removed in 25.06.
Signed-off-by: Ilya Maximets
Acked-by: Ales Musil
---
The corresponding OVS patch:
https://patchwork.ozlabs.org/project/openvswitch/patch/20241204204518.3250827-3-i.maximets@ovn.org/
The OVS change is not applied yet, so maybe wait for it to be in ovs/main
before applying this deprecation patch.
Documentation/faq/general.rst | 3 +++
NEWS | 2 ++
controller/chassis.c | 8 ++++++--
controller/ovn-controller.8.xml | 4 ++++
ovn-architecture.7.xml | 7 +++----
ovn-sb.xml | 3 ++-
tests/ovn-ic.at | 2 +-
7 files changed, 21 insertions(+), 8 deletions(-)
diff --git a/Documentation/faq/general.rst b/Documentation/faq/general.rst
index df4952ef5..63f5c4cbe 100644
--- a/Documentation/faq/general.rst
+++ b/Documentation/faq/general.rst
@@ -88,6 +88,9 @@ Q: Why does OVN use STT and Geneve instead of VLANs or VXLAN (or GRE)?
See ``ovn-architecture(7)``, under "Tunnel Encapsulations", for details.
+ Note: Support for STT tunnels is deprecated and will be removed in OVN
+ 25.09 release.
+
Together, these metadata require 24 + 15 + 16 = 55 bits. GRE provides 32
bits, VXLAN provides 24, and VLAN only provides 12. Most notably, if
logical egress pipelines do not match on the logical ingress port, thereby
diff --git a/NEWS b/NEWS
index da3aba739..c9eb8ede8 100644
--- a/NEWS
+++ b/NEWS
@@ -4,6 +4,8 @@ Post v24.09.0
hash (with specified hash fields) for ECMP routes
while choosing nexthop.
- ovn-ic: Add support for route tag to prevent route learning.
+ - Support for STT tunnels in ovn-encap-type is deprecated and will be
+ removed in the next release.
OVN v24.09.0 - 13 Sep 2024
--------------------------
diff --git a/controller/chassis.c b/controller/chassis.c
index 8b1964c54..19a251f26 100644
--- a/controller/chassis.c
+++ b/controller/chassis.c
@@ -243,12 +243,16 @@ chassis_parse_ovs_encap_type(const char *encap_type,
{
sset_from_delimited_string(encap_type_set, encap_type, ",");
+ static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
const char *type;
SSET_FOR_EACH (type, encap_type_set) {
- if (!get_tunnel_type(type)) {
- static struct vlog_rate_limit rl = VLOG_RATE_LIMIT_INIT(1, 5);
+ uint32_t tun_type = get_tunnel_type(type);
+
+ if (!tun_type) {
VLOG_INFO_RL(&rl, "Unknown tunnel type: %s", type);
+ } else if (tun_type == STT) {
+ VLOG_WARN_RL(&rl, "STT encapsulation type is deprecated");
}
}
}
diff --git a/controller/ovn-controller.8.xml b/controller/ovn-controller.8.xml
index aeaa374c1..6a7d676af 100644
--- a/controller/ovn-controller.8.xml
+++ b/controller/ovn-controller.8.xml
@@ -168,6 +168,10 @@
are geneve, vxlan, and stt.
+
+ stt tunnel type is deprecated.
+
+
Due to the limited amount of metadata in vxlan,
the capabilities and performance of connected gateways and
diff --git a/ovn-architecture.7.xml b/ovn-architecture.7.xml
index 640944faf..b11277bb9 100644
--- a/ovn-architecture.7.xml
+++ b/ovn-architecture.7.xml
@@ -2897,10 +2897,9 @@
- Environments whose NICs lack Geneve offload may prefer STT encapsulation
- for performance reasons. For STT encapsulation, OVN encodes all three
- pieces of logical metadata in the STT 64-bit tunnel ID as follows, from MSB
- to LSB:
+ Support for STT encapsulation is deprecated. While using STT on setups
+ that didn't migrate to Geneve yet, OVN encodes all three pieces of logical
+ metadata in the STT 64-bit tunnel ID as follows, from MSB to LSB:
diff --git a/ovn-sb.xml b/ovn-sb.xml
index ea4adc1c3..9394bb5f4 100644
--- a/ovn-sb.xml
+++ b/ovn-sb.xml
@@ -479,7 +479,8 @@
The encapsulation to use to transmit packets to this chassis.
Hypervisors and gateways must use one of: geneve,
- vxlan, or stt.
+ vxlan, or stt. stt is
+ deprecated.
diff --git a/tests/ovn-ic.at b/tests/ovn-ic.at
index 1ba65fd9f..13150a453 100644
--- a/tests/ovn-ic.at
+++ b/tests/ovn-ic.at
@@ -333,7 +333,7 @@ OVS_WAIT_UNTIL([ovn_as az2 ovn-sbctl show | grep "192.168.0.2"])
ovs-vsctl set open . external_ids:ovn-encap-type="geneve,stt"
OVS_WAIT_UNTIL([ovn_as az2 ovn-sbctl show | grep stt])
-OVN_CLEANUP_SBOX(gw2)
+OVN_CLEANUP_SBOX([gw2], ["/STT encapsulation type is deprecated/d"])
OVN_CLEANUP_IC([az1], [az2])
AT_CLEANUP