richardphibel / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
b11b5f
From 33351e103734188a4a30b88e7f2ea0613d628599 Mon Sep 17 00:00:00 2001
b11b5f
From: Jan Macku <jamacku@redhat.com>
b11b5f
Date: Thu, 16 Feb 2023 15:56:52 +0100
b11b5f
Subject: [PATCH] udev/net_id: introduce naming scheme for RHEL-8.8
b11b5f
b11b5f
RHEL-only
b11b5f
b11b5f
Resolves: #2170499
b11b5f
---
b11b5f
 man/systemd.net-naming-scheme.xml | 6 ++++++
b11b5f
 src/udev/udev-builtin-net_id.c    | 2 ++
b11b5f
 2 files changed, 8 insertions(+)
b11b5f
b11b5f
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
b11b5f
index a567483995..3cc7719e99 100644
b11b5f
--- a/man/systemd.net-naming-scheme.xml
b11b5f
+++ b/man/systemd.net-naming-scheme.xml
b11b5f
@@ -328,6 +328,12 @@
b11b5f
           for that, the limit is increased to now 65535.</para></listitem>
b11b5f
         </varlistentry>
b11b5f
 
b11b5f
+        <varlistentry>
b11b5f
+          <term><constant>rhel-8.8</constant></term>
b11b5f
+
b11b5f
+          <para>Same as naming scheme <constant>rhel-8.7</constant>.</para>
b11b5f
+        </varlistentry>
b11b5f
+
b11b5f
         <para>Note that <constant>latest</constant> may be used to denote the latest scheme known to this
b11b5f
         particular version of systemd.</para>
b11b5f
     </variablelist>
b11b5f
diff --git a/src/udev/udev-builtin-net_id.c b/src/udev/udev-builtin-net_id.c
b11b5f
index df84acf27c..ef2bb1b08e 100644
b11b5f
--- a/src/udev/udev-builtin-net_id.c
b11b5f
+++ b/src/udev/udev-builtin-net_id.c
b11b5f
@@ -141,6 +141,7 @@ typedef enum NamingSchemeFlags {
b11b5f
         NAMING_RHEL_8_5 = NAMING_RHEL_8_4,
b11b5f
         NAMING_RHEL_8_6 = NAMING_RHEL_8_4,
b11b5f
         NAMING_RHEL_8_7 = NAMING_RHEL_8_4|NAMING_SLOT_FUNCTION_ID|NAMING_16BIT_INDEX,
b11b5f
+        NAMING_RHEL_8_8 = NAMING_RHEL_8_7,
b11b5f
 
b11b5f
         _NAMING_SCHEME_FLAGS_INVALID = -1,
b11b5f
 } NamingSchemeFlags;
b11b5f
@@ -161,6 +162,7 @@ static const NamingScheme naming_schemes[] = {
b11b5f
         { "rhel-8.5", NAMING_RHEL_8_5 },
b11b5f
         { "rhel-8.6", NAMING_RHEL_8_6 },
b11b5f
         { "rhel-8.7", NAMING_RHEL_8_7 },
b11b5f
+        { "rhel-8.8", NAMING_RHEL_8_8 },
b11b5f
         /* … add more schemes here, as the logic to name devices is updated … */
b11b5f
 };
b11b5f