Skip to content

Commit

Permalink
net-naming-scheme: disable NAMING_FIRMWARE_NODE_SUN
Browse files Browse the repository at this point in the history
It seems that virtio devices always have "0" in
the firmware_node/sun. And because of that, udev will
always name the device ens0, which leads to collisions.
So let's disable it for now.

rhel-only: policy
Resolves: RHEL-55728
  • Loading branch information
lnykryn committed Aug 22, 2024
1 parent 42bcbe1 commit 5aa6b6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion man/systemd.net-naming-scheme.xml
Original file line number Diff line number Diff line change
Expand Up @@ -528,7 +528,7 @@
<varlistentry>
<term><constant>rhel-10.0-beta</constant></term>

<listitem><para>PCI slot number is now read from <constant>firmware_node/sun</constant> sysfs file.</para>
<listitem><para>Same as naming scheme <constant>v255</constant>.</para>

<xi:include href="version-info.xml" xpointer="rhel-10.0.beta"/>
</listitem>
Expand Down
2 changes: 1 addition & 1 deletion src/shared/netif-naming-scheme.h
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ typedef enum NamingSchemeFlags {
NAMING_RHEL_9_4 = NAMING_RHEL_9_3,
NAMING_RHEL_9_5 = (NAMING_RHEL_9_4 & ~NAMING_BRIDGE_MULTIFUNCTION_SLOT) | NAMING_FIRMWARE_NODE_SUN,

NAMING_RHEL_10_0_BETA = NAMING_V255 | NAMING_FIRMWARE_NODE_SUN,
NAMING_RHEL_10_0_BETA = NAMING_V255,

EXTRA_NET_NAMING_SCHEMES

Expand Down

0 comments on commit 5aa6b6a

Please sign in to comment.