[systemd-devel] persistent network device names

Keller, Jacob E jacob.e.keller at intel.com
Mon Jul 27 11:14:53 PDT 2015


On Mon, 2015-07-27 at 20:05 +0200, Lennart Poettering wrote:
> On Mon, 27.07.15 17:52, Keller, Jacob E (jacob.e.keller at intel.com) 
> wrote:
> 
> > Hello,
> > 
> > I am working with a network device that can create virtual function
> > devices. When I create a large (>8) vfs for this device I get some
> > weird device names,
> 
> Not sure I fully grok, but is this about SR-IOV?
> 

Yes, SR-IOV.

> > "ens8" for physical device, but then ens8f<vf> for vf devices.. but 
> > I
> > would like this to be generic for all devices that behave this 
> > way...
> > and I was not sure how to do this.
> 
> Can you even detect these kinds of devices?
> 
> Lennart
> 

I'm not sure if we can detect it or not. That may be an issue.

The simplest fix would be to stop reducing "enp8s0" to "ens8" which
appears to be what is going on today.

either fedora changes this with a patch or upstream systemd comments
are wrong, as:

"multi-function cards with 2 ports" block says it should be enp8s0f0
but it seems to get shortened to ens8 instead?

I'm still trying to grok the udev-builtin-net_id code to see if I can
find a way to do this.

Regards,
Jake


More information about the systemd-devel mailing list