]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/shared/netif-naming-scheme.c
udev/net_id: avoid slot based names only for single function devices
authorMichal Sekletar <msekleta@redhat.com>
Wed, 23 Mar 2022 16:34:12 +0000 (17:34 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Wed, 6 Apr 2022 09:51:03 +0000 (11:51 +0200)
commit66425daf2c68793adf24a48a26d58add8662e83f
tree435ad2e826c0bcf96b80ba58729268f8365873c5
parentf7ad16287960fa600d1c5cdfd4dc23ff2179a96d
udev/net_id: avoid slot based names only for single function devices

If we have two or more devices that share the same slot but they are
also multifunction then it is OK to use the slot information even if it
is the same for all of them. Name conflict will be avoided because we
will append function number and form names like, ens1f1, ens1f2...
man/systemd.net-naming-scheme.xml
src/shared/netif-naming-scheme.c
src/shared/netif-naming-scheme.h
src/udev/udev-builtin-net_id.c