diff options
author | Benjamin Herrenschmidt <benh@amazon.com> | 2021-10-20 15:18:59 +1100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2021-10-28 13:09:00 +0200 |
commit | d6eda677b32a0063a77cb639f37c9a454b180da9 (patch) | |
tree | 571bcc36591a7385246b1f471dd55f853410cd09 /src/shared/netif-naming-scheme.c | |
parent | ac33cf9282a1d10c13de5c462f16e351ecb01f36 (diff) | |
download | systemd-d6eda677b32a0063a77cb639f37c9a454b180da9.tar.gz |
udev: net_id: introduce predictable names for xen-netfront
Those devices show up as /sys/devices/vif-N, let's use that number
to name them enXN.
Without this, all schemes fail and they keep the kernel names, which can
be racy.
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Diffstat (limited to 'src/shared/netif-naming-scheme.c')
-rw-r--r-- | src/shared/netif-naming-scheme.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/shared/netif-naming-scheme.c b/src/shared/netif-naming-scheme.c index d949f7381a..8d03e0e5e7 100644 --- a/src/shared/netif-naming-scheme.c +++ b/src/shared/netif-naming-scheme.c @@ -21,6 +21,7 @@ static const NamingScheme naming_schemes[] = { { "v245", NAMING_V245 }, { "v247", NAMING_V247 }, { "v249", NAMING_V249 }, + { "v250", NAMING_V250 }, /* … add more schemes here, as the logic to name devices is updated … */ EXTRA_NET_NAMING_MAP |