aa0848
From 464a8fc4e0b218793105431cc71bf98b0dc97fb5 Mon Sep 17 00:00:00 2001
aa0848
From: Jacek Migacz <jmigacz@redhat.com>
aa0848
Date: Thu, 3 Feb 2022 23:46:09 +0100
aa0848
Subject: [PATCH] Net naming scheme for RHEL-9.0
aa0848
aa0848
RHEL-only
aa0848
aa0848
Resolves: #2052106
aa0848
---
aa0848
 man/systemd.net-naming-scheme.xml | 7 +++++++
aa0848
 src/shared/netif-naming-scheme.c  | 1 +
aa0848
 src/shared/netif-naming-scheme.h  | 1 +
aa0848
 3 files changed, 9 insertions(+)
aa0848
aa0848
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
aa0848
index 41408411fc..942ef572ff 100644
aa0848
--- a/man/systemd.net-naming-scheme.xml
aa0848
+++ b/man/systemd.net-naming-scheme.xml
aa0848
@@ -403,6 +403,13 @@
aa0848
           </listitem>
aa0848
         </varlistentry>
aa0848
 
aa0848
+        <varlistentry>
aa0848
+          <term><constant>rhel-9.0</constant></term>
aa0848
+
aa0848
+          <listitem><para>Same as naming scheme <constant>v250</constant>.</para>
aa0848
+          </listitem>
aa0848
+        </varlistentry>
aa0848
+
aa0848
       </variablelist>
aa0848
 
aa0848
     <para>Note that <constant>latest</constant> may be used to denote the latest scheme known (to this
aa0848
diff --git a/src/shared/netif-naming-scheme.c b/src/shared/netif-naming-scheme.c
aa0848
index 245466c4cb..44d011a9b7 100644
aa0848
--- a/src/shared/netif-naming-scheme.c
aa0848
+++ b/src/shared/netif-naming-scheme.c
aa0848
@@ -23,6 +23,7 @@ static const NamingScheme naming_schemes[] = {
aa0848
         { "v247", NAMING_V247 },
aa0848
         { "v249", NAMING_V249 },
aa0848
         { "v250", NAMING_V250 },
aa0848
+        { "rhel-9.0", NAMING_RHEL_9_0 },
aa0848
         /* … add more schemes here, as the logic to name devices is updated … */
aa0848
 
aa0848
         EXTRA_NET_NAMING_MAP
aa0848
diff --git a/src/shared/netif-naming-scheme.h b/src/shared/netif-naming-scheme.h
aa0848
index 16b304ce10..f765db6ef2 100644
aa0848
--- a/src/shared/netif-naming-scheme.h
aa0848
+++ b/src/shared/netif-naming-scheme.h
aa0848
@@ -47,6 +47,7 @@ typedef enum NamingSchemeFlags {
aa0848
         NAMING_V247 = NAMING_V245 | NAMING_BRIDGE_NO_SLOT,
aa0848
         NAMING_V249 = NAMING_V247 | NAMING_SLOT_FUNCTION_ID | NAMING_16BIT_INDEX | NAMING_REPLACE_STRICTLY,
aa0848
         NAMING_V250 = NAMING_V249 | NAMING_XEN_VIF,
aa0848
+        NAMING_RHEL_9_0 = NAMING_V250,
aa0848
 
aa0848
         EXTRA_NET_NAMING_SCHEMES
aa0848