richardphibel / rpms / systemd

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