richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
ac3a84
From 9e03c4d6c1245af87569cb337c4fd82d873ea5c7 Mon Sep 17 00:00:00 2001
cc3383
From: Jacek Migacz <jmigacz@redhat.com>
cc3383
Date: Thu, 3 Feb 2022 23:46:09 +0100
cc3383
Subject: [PATCH] Net naming scheme for RHEL-9.0
cc3383
cc3383
RHEL-only
cc3383
ac3a84
Related: #2138081
cc3383
---
cc3383
 man/systemd.net-naming-scheme.xml | 7 +++++++
cc3383
 src/shared/netif-naming-scheme.c  | 1 +
cc3383
 src/shared/netif-naming-scheme.h  | 1 +
cc3383
 3 files changed, 9 insertions(+)
cc3383
cc3383
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
ac3a84
index 8aac42b49d..8c2017a0ce 100644
cc3383
--- a/man/systemd.net-naming-scheme.xml
cc3383
+++ b/man/systemd.net-naming-scheme.xml
ac3a84
@@ -448,6 +448,13 @@
cc3383
           </listitem>
cc3383
         </varlistentry>
cc3383
 
cc3383
+        <varlistentry>
cc3383
+          <term><constant>rhel-9.0</constant></term>
cc3383
+
cc3383
+          <listitem><para>Same as naming scheme <constant>v250</constant>.</para>
cc3383
+          </listitem>
cc3383
+        </varlistentry>
cc3383
+
cc3383
       </variablelist>
cc3383
 
cc3383
     <para>Note that <constant>latest</constant> may be used to denote the latest scheme known (to this
cc3383
diff --git a/src/shared/netif-naming-scheme.c b/src/shared/netif-naming-scheme.c
ac3a84
index 18748e5376..c5b8ddfcf9 100644
cc3383
--- a/src/shared/netif-naming-scheme.c
cc3383
+++ b/src/shared/netif-naming-scheme.c
ac3a84
@@ -25,6 +25,7 @@ static const NamingScheme naming_schemes[] = {
cc3383
         { "v250", NAMING_V250 },
ac3a84
         { "v251", NAMING_V251 },
ac3a84
         { "v252", NAMING_V252 },
cc3383
+        { "rhel-9.0", NAMING_RHEL_9_0 },
cc3383
         /* … add more schemes here, as the logic to name devices is updated … */
cc3383
 
cc3383
         EXTRA_NET_NAMING_MAP
cc3383
diff --git a/src/shared/netif-naming-scheme.h b/src/shared/netif-naming-scheme.h
ac3a84
index 4fa9170969..b5fa1f0ef0 100644
cc3383
--- a/src/shared/netif-naming-scheme.h
cc3383
+++ b/src/shared/netif-naming-scheme.h
ac3a84
@@ -51,6 +51,7 @@ typedef enum NamingSchemeFlags {
cc3383
         NAMING_V250 = NAMING_V249 | NAMING_XEN_VIF,
ac3a84
         NAMING_V251 = NAMING_V250 | NAMING_BRIDGE_MULTIFUNCTION_SLOT,
ac3a84
         NAMING_V252 = NAMING_V251 | NAMING_DEVICETREE_ALIASES,
cc3383
+        NAMING_RHEL_9_0 = NAMING_V250,
cc3383
 
cc3383
         EXTRA_NET_NAMING_SCHEMES
cc3383