Skip to content

Commit

Permalink
netif-naming-scheme: add rhel-9.5 scheme
Browse files Browse the repository at this point in the history
rhel-only: policy

Resolves: RHEL-44416
  • Loading branch information
jamacku authored and github-actions[bot] committed Aug 8, 2024
1 parent 571c902 commit fefc4bc
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 0 deletions.
15 changes: 15 additions & 0 deletions man/systemd.net-naming-scheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -592,6 +592,21 @@
<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>

Expand Down
1 change: 1 addition & 0 deletions src/shared/netif-naming-scheme.c
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ static const NamingScheme naming_schemes[] = {
{ "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 … */

Expand Down
1 change: 1 addition & 0 deletions src/shared/netif-naming-scheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ typedef enum NamingSchemeFlags {
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,

NAMING_RHEL_10_0 = NAMING_V255,

Expand Down

0 comments on commit fefc4bc

Please sign in to comment.