From cf8283928e65f88a4e0b394f153f14ccb62d5df4 Mon Sep 17 00:00:00 2001
From: Bartosz Bezak <bartosz@stackhpc.com>
Date: Fri, 25 Aug 2023 12:55:51 +0200
Subject: [PATCH] Configure OVN to emit "need to frag" packets in case of MTU
 mismatch

It is useful when external network's MTU is lower then internal
geneve networks.
Host kernel needs to be in version >= 5.2 for this option to work.
All Kolla supported host operating systems have higher kernel version.

Change-Id: Id64e99b07e2bb5e6c97b784f4ffedafc7e7de188
---
 ansible/roles/neutron/templates/ml2_conf.ini.j2            | 1 +
 .../notes/ovn-emit-need-to-frag-2d6695596042db18.yaml      | 7 +++++++
 2 files changed, 8 insertions(+)
 create mode 100644 releasenotes/notes/ovn-emit-need-to-frag-2d6695596042db18.yaml

diff --git a/ansible/roles/neutron/templates/ml2_conf.ini.j2 b/ansible/roles/neutron/templates/ml2_conf.ini.j2
index e55423e33..9c70eb898 100644
--- a/ansible/roles/neutron/templates/ml2_conf.ini.j2
+++ b/ansible/roles/neutron/templates/ml2_conf.ini.j2
@@ -40,4 +40,5 @@ ovn_nb_connection = {{ ovn_nb_connection }}
 ovn_sb_connection = {{ ovn_sb_connection }}
 ovn_metadata_enabled = True
 enable_distributed_floating_ip = {{ neutron_ovn_distributed_fip | bool }}
+ovn_emit_need_to_frag = True
 {% endif %}
diff --git a/releasenotes/notes/ovn-emit-need-to-frag-2d6695596042db18.yaml b/releasenotes/notes/ovn-emit-need-to-frag-2d6695596042db18.yaml
new file mode 100644
index 000000000..5292574b8
--- /dev/null
+++ b/releasenotes/notes/ovn-emit-need-to-frag-2d6695596042db18.yaml
@@ -0,0 +1,7 @@
+---
+upgrade:
+  - |
+    Enabled ``ovn_emit_need_to_frag`` setting by default. It is useful when
+    external network's MTU is lower then internal geneve networks.
+    Host kernel needs to be in version >= 5.2 for this option to work.
+    All Kolla supported host operating systems have higher kernel version.
-- 
GitLab