2024-12-17 15:03:39 +00:00
|
|
|
From 339250daaa9eb39cc690c2b2a2cedaa7bbb04a85 Mon Sep 17 00:00:00 2001
|
2024-08-15 10:50:22 +00:00
|
|
|
From: Jan Macku <jamacku@redhat.com>
|
|
|
|
Date: Thu, 8 Aug 2024 13:12:58 +0200
|
|
|
|
Subject: [PATCH] netif-naming-scheme: add rhel-9.5 scheme
|
|
|
|
|
|
|
|
rhel-only: policy
|
|
|
|
|
|
|
|
Resolves: RHEL-44416
|
|
|
|
---
|
|
|
|
man/systemd.net-naming-scheme.xml | 15 +++++++++++++++
|
|
|
|
src/shared/netif-naming-scheme.c | 1 +
|
|
|
|
src/shared/netif-naming-scheme.h | 1 +
|
|
|
|
3 files changed, 17 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml
|
2024-12-17 15:03:39 +00:00
|
|
|
index 5965f293dc..8c2979f420 100644
|
2024-08-15 10:50:22 +00:00
|
|
|
--- a/man/systemd.net-naming-scheme.xml
|
|
|
|
+++ b/man/systemd.net-naming-scheme.xml
|
2024-12-17 15:03:39 +00:00
|
|
|
@@ -608,6 +608,21 @@
|
2024-08-15 10:50:22 +00:00
|
|
|
<xi:include href="version-info.xml" xpointer="rhel-9.4"/>
|
|
|
|
</listitem>
|
|
|
|
</varlistentry>
|
|
|
|
+
|
|
|
|
+ <varlistentry>
|
|
|
|
+ <term><constant>rhel-9.5</constant></term>
|
|
|
|
+
|
|
|
|
+ <listitem><para>Never generate a slot name when a PCI bridge is detected.</para>
|
|
|
|
+
|
|
|
|
+ <para>Since version <constant>"rhel-9.0"</constant>, we have generated slot-based names
|
|
|
|
+ for PCI multifunction devices, because we assumed that it is enough to use function numbers
|
|
|
|
+ to distinguish between devices. However, name conflict can occur if these devices are not
|
|
|
|
+ children of the same PCI bridge, e.g. there are multiple PCI bridges in the same slot.
|
|
|
|
+ </para>
|
|
|
|
+
|
|
|
|
+ <xi:include href="version-info.xml" xpointer="rhel-9.5"/>
|
|
|
|
+ </listitem>
|
|
|
|
+ </varlistentry>
|
|
|
|
</variablelist>
|
|
|
|
</refsect2>
|
|
|
|
|
|
|
|
diff --git a/src/shared/netif-naming-scheme.c b/src/shared/netif-naming-scheme.c
|
2024-12-17 15:03:39 +00:00
|
|
|
index b85dd3dadf..553ad13269 100644
|
2024-08-15 10:50:22 +00:00
|
|
|
--- a/src/shared/netif-naming-scheme.c
|
|
|
|
+++ b/src/shared/netif-naming-scheme.c
|
2024-12-17 15:03:39 +00:00
|
|
|
@@ -41,6 +41,7 @@ static const NamingScheme naming_schemes[] = {
|
2024-08-15 10:50:22 +00:00
|
|
|
{ "rhel-9.2", NAMING_RHEL_9_2 },
|
|
|
|
{ "rhel-9.3", NAMING_RHEL_9_3 },
|
|
|
|
{ "rhel-9.4", NAMING_RHEL_9_4 },
|
|
|
|
+ { "rhel-9.5", NAMING_RHEL_9_5 },
|
|
|
|
{ "rhel-10.0", NAMING_RHEL_10_0 },
|
|
|
|
/* … add more schemes here, as the logic to name devices is updated … */
|
|
|
|
|
|
|
|
diff --git a/src/shared/netif-naming-scheme.h b/src/shared/netif-naming-scheme.h
|
2024-12-17 15:03:39 +00:00
|
|
|
index 2cf7d3f3ba..35ab0a98da 100644
|
2024-08-15 10:50:22 +00:00
|
|
|
--- a/src/shared/netif-naming-scheme.h
|
|
|
|
+++ b/src/shared/netif-naming-scheme.h
|
2024-12-17 15:03:39 +00:00
|
|
|
@@ -83,6 +83,7 @@ typedef enum NamingSchemeFlags {
|
2024-08-15 10:50:22 +00:00
|
|
|
NAMING_RHEL_9_2 = NAMING_RHEL_9_0,
|
|
|
|
NAMING_RHEL_9_3 = NAMING_RHEL_9_0 | NAMING_SR_IOV_R,
|
|
|
|
NAMING_RHEL_9_4 = NAMING_RHEL_9_3,
|
|
|
|
+ NAMING_RHEL_9_5 = NAMING_RHEL_9_4 & ~NAMING_BRIDGE_MULTIFUNCTION_SLOT,
|
|
|
|
|
2024-12-17 15:03:39 +00:00
|
|
|
NAMING_RHEL_10_0 = NAMING_V257,
|
2024-08-15 10:50:22 +00:00
|
|
|
|