2aacef
From edbd954a140b097e3fc4c9246bda88a43692122b Mon Sep 17 00:00:00 2001
2aacef
From: Jan Macku <jamacku@redhat.com>
2aacef
Date: Thu, 16 Feb 2023 16:08:57 +0100
2aacef
Subject: [PATCH] udev/net_id: introduce naming scheme for RHEL-9.2
2aacef
2aacef
RHEL-only
2aacef
2aacef
Resolves: #2170500
2aacef
---
2aacef
 man/systemd.net-naming-scheme.xml | 6 ++++++
2aacef
 src/shared/netif-naming-scheme.c  | 1 +
2aacef
 src/shared/netif-naming-scheme.h  | 1 +
2aacef
 3 files changed, 8 insertions(+)
2aacef
2aacef
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
2aacef
index ca8ba7010e..0886369c9b 100644
2aacef
--- a/man/systemd.net-naming-scheme.xml
2aacef
+++ b/man/systemd.net-naming-scheme.xml
2aacef
@@ -466,6 +466,12 @@
2aacef
            <listitem><para>Same as naming scheme <constant>rhel-9.0</constant>.</para></listitem>
2aacef
         </varlistentry>
2aacef
 
2aacef
+        <varlistentry>
2aacef
+           <term><constant>rhel-9.2</constant></term>
2aacef
+
2aacef
+           <listitem><para>Same as naming scheme <constant>rhel-9.0</constant>.</para></listitem>
2aacef
+        </varlistentry>
2aacef
+
2aacef
       </variablelist>
2aacef
 
2aacef
     <para>Note that <constant>latest</constant> may be used to denote the latest scheme known (to this
2aacef
diff --git a/src/shared/netif-naming-scheme.c b/src/shared/netif-naming-scheme.c
2aacef
index a20b990f2e..d846c794a8 100644
2aacef
--- a/src/shared/netif-naming-scheme.c
2aacef
+++ b/src/shared/netif-naming-scheme.c
2aacef
@@ -27,6 +27,7 @@ static const NamingScheme naming_schemes[] = {
2aacef
         { "v252", NAMING_V252 },
2aacef
         { "rhel-9.0", NAMING_RHEL_9_0 },
2aacef
         { "rhel-9.1", NAMING_RHEL_9_1 },
2aacef
+        { "rhel-9.2", NAMING_RHEL_9_2 },
2aacef
         /* … add more schemes here, as the logic to name devices is updated … */
2aacef
 
2aacef
         EXTRA_NET_NAMING_MAP
2aacef
diff --git a/src/shared/netif-naming-scheme.h b/src/shared/netif-naming-scheme.h
2aacef
index d70c19ade3..3e35c5e2fa 100644
2aacef
--- a/src/shared/netif-naming-scheme.h
2aacef
+++ b/src/shared/netif-naming-scheme.h
2aacef
@@ -53,6 +53,7 @@ typedef enum NamingSchemeFlags {
2aacef
         NAMING_V252 = NAMING_V251 | NAMING_DEVICETREE_ALIASES,
2aacef
         NAMING_RHEL_9_0 = NAMING_V250 | NAMING_BRIDGE_MULTIFUNCTION_SLOT,
2aacef
         NAMING_RHEL_9_1 = NAMING_RHEL_9_0,
2aacef
+        NAMING_RHEL_9_2 = NAMING_RHEL_9_0,
2aacef
 
2aacef
         EXTRA_NET_NAMING_SCHEMES
2aacef