mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-15 12:34:55 +00:00
b57c1af814
NetworkManager handles "add" and "move" actions the same way, by tracking the "struct udev_device" instance. Still, this means that also for move events, we need the right attributes set. See-also: https://github.com/openshift/sriov-network-operator/issues/414
14 lines
588 B
Plaintext
14 lines
588 B
Plaintext
# Do not modify this file, it will get overwritten on updates.
|
|
# To override or extend the rules place a file in /etc/udev/rules.d
|
|
|
|
ACTION!="add|change|move", GOTO="nm_thunderbolt_end"
|
|
|
|
# Load he thunderbolt-net driver if we a device of type thunderbolt_xdomain
|
|
# is added.
|
|
SUBSYSTEM=="thunderbolt", ENV{DEVTYPE}=="thunderbolt_xdomain", RUN{builtin}+="kmod load thunderbolt-net"
|
|
|
|
# For all thunderbolt network devices, we want to enable link-local configuration
|
|
SUBSYSTEM=="net", ENV{ID_NET_DRIVER}=="thunderbolt-net", ENV{NM_AUTO_DEFAULT_LINK_LOCAL_ONLY}="1"
|
|
|
|
LABEL="nm_thunderbolt_end"
|