[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <64be8692-ea6a-4f49-9b5c-396761957b81@lunn.ch>
Date: Fri, 25 Apr 2025 14:11:43 +0200
From: Andrew Lunn <andrew@...n.ch>
To: David Howells <dhowells@...hat.com>
Cc: Jedrzej Jagielski <jedrzej.jagielski@...el.com>,
Przemek Kitszel <przemyslaw.kitszel@...el.com>,
Tony Nguyen <anthony.l.nguyen@...el.com>,
Paulo Abeni <pabeni@...hat.com>, netdev@...r.kernel.org,
linux-kernel@...r.kernel.org
Subject: Re: Is it possible to undo the ixgbe device name change?
On Fri, Apr 25, 2025 at 09:58:35AM +0100, David Howells wrote:
> Andrew Lunn <andrew@...n.ch> wrote:
>
> > Are you sure this patch is directly responsible? Looking at the patch
>
> I bisected it to that commit. Userspace didn't change.
As Jakub pointed out, the kernel is now providing additional
information to user space, via devlink. That causes systemd's 'stable'
names to change. The naming rules are documented somewhere.
> > Notice the context, not the change. The interface is being called
> > eth%d, which is normal. The kernel will replace the %d with a unique
> > number. So the kernel will call it eth42 or something. You should see
> > this in dmesg.
>
> Something like this?
>
> ... systemd-udevd[2215]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
> ... kernel: ixgbe 0000:01:00.0 enp1s0: renamed from eth0
>
> or:
>
> ... systemd-udevd[2568]: link_config: autonegotiation is unset or enabled, the speed and duplex are not writable.
> ... kernel: ixgbe 0000:01:00.0 enp1s0np0: renamed from eth0
>
> I presume the kernel message saying that the renaming happened is triggered by
> systemd-udevd?
systemd-udevd is not really triggering it. It is providing the new
name and asking the kernel to change the name. To some extent, you can
think of this as policy. The kernel tries to avoid policy, it leaves
it up to user space. The kernel provides a default name for the
interface, but it is policy in user space which gives it its final
name.
Andrew
Powered by blists - more mailing lists