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