From b57c1af81448a8e7b57f56d910d2354e2a247c87 Mon Sep 17 00:00:00 2001 From: Thomas Haller Date: Mon, 16 Aug 2021 19:13:08 +0200 Subject: [PATCH] udev: also react to "move" (and "change") udev actions in our rules 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 --- data/84-nm-drivers.rules | 2 +- data/85-nm-unmanaged.rules | 2 +- data/90-nm-thunderbolt.rules | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/data/84-nm-drivers.rules b/data/84-nm-drivers.rules index e398cb9f2..148acade5 100644 --- a/data/84-nm-drivers.rules +++ b/data/84-nm-drivers.rules @@ -2,7 +2,7 @@ # To override or extend the rules place a file in /etc/udev/rules.d SUBSYSTEM!="net", GOTO="nm_drivers_end" -ACTION!="add|change", GOTO="nm_drivers_end" +ACTION!="add|change|move", GOTO="nm_drivers_end" # Determine ID_NET_DRIVER if there's no ID_NET_DRIVER or DRIVERS (old udev?) ENV{ID_NET_DRIVER}=="?*", GOTO="nm_drivers_end" diff --git a/data/85-nm-unmanaged.rules b/data/85-nm-unmanaged.rules index edc4ddbe7..eae8d7ce1 100644 --- a/data/85-nm-unmanaged.rules +++ b/data/85-nm-unmanaged.rules @@ -2,7 +2,7 @@ # To override or extend the rules place a file in /etc/udev/rules.d SUBSYSTEM!="net", GOTO="nm_unmanaged_end" -ACTION!="add|change", GOTO="nm_unmanaged_end" +ACTION!="add|change|move", GOTO="nm_unmanaged_end" # VirtualBox host networking. Out-of-tree driver that looks like an ordinary # Ethernet. No parent device (lives in /virtual/), no support for ethtool diff --git a/data/90-nm-thunderbolt.rules b/data/90-nm-thunderbolt.rules index 52d8bb410..be105fd41 100644 --- a/data/90-nm-thunderbolt.rules +++ b/data/90-nm-thunderbolt.rules @@ -1,7 +1,7 @@ # 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", GOTO="nm_thunderbolt_end" +ACTION!="add|change|move", GOTO="nm_thunderbolt_end" # Load he thunderbolt-net driver if we a device of type thunderbolt_xdomain # is added.