summaryrefslogtreecommitdiff
path: root/src/shared/netif-naming-scheme.h
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2021-06-23 16:10:26 +0900
committerYu Watanabe <watanabe.yu+github@gmail.com>2021-06-23 16:10:26 +0900
commitb4d885f0e861b2d1bb5a62311c61a96f5222b026 (patch)
tree3dd19604c063286ed5ac1aa6189ed1033364722e /src/shared/netif-naming-scheme.h
parentd37f3e3ec560da810c00610717b73edb380a7a48 (diff)
downloadsystemd-b4d885f0e861b2d1bb5a62311c61a96f5222b026.tar.gz
udev: introduce new netif naming scheme flag to strictly replace ifname
Diffstat (limited to 'src/shared/netif-naming-scheme.h')
-rw-r--r--src/shared/netif-naming-scheme.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/shared/netif-naming-scheme.h b/src/shared/netif-naming-scheme.h
index c0f94d0407..119b80178f 100644
--- a/src/shared/netif-naming-scheme.h
+++ b/src/shared/netif-naming-scheme.h
@@ -34,6 +34,7 @@ typedef enum NamingSchemeFlags {
NAMING_BRIDGE_NO_SLOT = 1 << 9, /* Don't use PCI hotplug slot information if the corresponding device is a PCI bridge */
NAMING_SLOT_FUNCTION_ID = 1 << 10, /* Use function_id if present to identify PCI hotplug slots */
NAMING_16BIT_INDEX = 1 << 11, /* Allow full 16-bit for the onboard index */
+ NAMING_REPLACE_STRICTLY = 1 << 12, /* Use udev_replace_ifname() for NAME= rule */
/* And now the masks that combine the features above */
NAMING_V238 = 0,
@@ -43,7 +44,7 @@ typedef enum NamingSchemeFlags {
NAMING_V243 = NAMING_V241 | NAMING_NETDEVSIM | NAMING_LABEL_NOPREFIX,
NAMING_V245 = NAMING_V243 | NAMING_NSPAWN_LONG_HASH,
NAMING_V247 = NAMING_V245 | NAMING_BRIDGE_NO_SLOT,
- NAMING_V249 = NAMING_V247 | NAMING_SLOT_FUNCTION_ID | NAMING_16BIT_INDEX,
+ NAMING_V249 = NAMING_V247 | NAMING_SLOT_FUNCTION_ID | NAMING_16BIT_INDEX | NAMING_REPLACE_STRICTLY,
_NAMING_SCHEME_FLAGS_INVALID = -EINVAL,
} NamingSchemeFlags;