]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/udev/udev-builtin-net_id.c
udev: net_id: introduce predictable names for netdevsim
authorJiri Pirko <jiri@mellanox.com>
Mon, 15 Apr 2019 18:34:44 +0000 (20:34 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Tue, 23 Apr 2019 12:01:00 +0000 (14:01 +0200)
commiteaa9d507d85509c8bf727356e3884ec54b0fc646
treeaa3d97727f418dec9e08bea8433e638623dd7854
parent0fde5a3591d7bc7f689937aa86bd8b30e40d9bf8
udev: net_id: introduce predictable names for netdevsim

In order to properly and predictably name netdevsim netdevices,
introduce a separate implementation, as the netdevices reside on a
specific netdevsim bus. Note that this applies only to netdevsim devices
created using sysfs, because those expose phys_port_name attribute.

Signed-off-by: Jiri Pirko <jiri@mellanox.com>
src/udev/net/naming-scheme.c
src/udev/net/naming-scheme.h
src/udev/udev-builtin-net_id.c