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