From: Lennart Poettering Date: Thu, 22 Oct 2020 12:03:57 +0000 (+0200) Subject: net_id: fix newly added naming scheme name X-Git-Tag: v247-rc1~18^2~1 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=66ad93e86d5a62b92422475b538db6c4b48a0a38;p=thirdparty%2Fsystemd.git net_id: fix newly added naming scheme name v246 is long released. Hence the new scheme should be named v247. (Interesting, how we pretty systematically for the last releases changed the scheme only every second release) --- diff --git a/man/systemd.net-naming-scheme.xml b/man/systemd.net-naming-scheme.xml index b33488b9e4d..e894db7cd6a 100644 --- a/man/systemd.net-naming-scheme.xml +++ b/man/systemd.net-naming-scheme.xml @@ -270,7 +270,8 @@ History - The following "naming schemes" have been defined: + The following "naming schemes" have been defined (which may be chosen at system boot-up time via + the net.naming-scheme= kernel command line switch, see above: @@ -359,7 +360,7 @@ - v246 + v247 If the PCI slot is assocated with PCI bridge and that has multiple child network controllers then all of them might derive the same value of ID_NET_NAME_SLOT diff --git a/src/shared/netif-naming-scheme.c b/src/shared/netif-naming-scheme.c index 338ff661f39..0a701b0e922 100644 --- a/src/shared/netif-naming-scheme.c +++ b/src/shared/netif-naming-scheme.c @@ -12,7 +12,7 @@ static const NamingScheme naming_schemes[] = { { "v241", NAMING_V241 }, { "v243", NAMING_V243 }, { "v245", NAMING_V245 }, - { "v246", NAMING_V246 }, + { "v247", NAMING_V247 }, /* … add more schemes here, as the logic to name devices is updated … */ }; diff --git a/src/shared/netif-naming-scheme.h b/src/shared/netif-naming-scheme.h index e12464b6a34..db47d2909ea 100644 --- a/src/shared/netif-naming-scheme.h +++ b/src/shared/netif-naming-scheme.h @@ -40,7 +40,7 @@ typedef enum NamingSchemeFlags { NAMING_V241 = NAMING_V240 | NAMING_STABLE_VIRTUAL_MACS, NAMING_V243 = NAMING_V241 | NAMING_NETDEVSIM | NAMING_LABEL_NOPREFIX, NAMING_V245 = NAMING_V243 | NAMING_NSPAWN_LONG_HASH, - NAMING_V246 = NAMING_V245 | NAMING_BRIDGE_NO_SLOT, + NAMING_V247 = NAMING_V245 | NAMING_BRIDGE_NO_SLOT, _NAMING_SCHEME_FLAGS_INVALID = -1, } NamingSchemeFlags;