ryantimwilson / rpms / systemd

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