]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
network: add TODO about interface renaming
authorYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Jul 2022 00:11:54 +0000 (09:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Sat, 23 Jul 2022 11:04:28 +0000 (20:04 +0900)
src/network/networkd-link.c

index 838101a217d5a09fdf631155ff9d906d38715c52..35d1e2f206e02b9834c1269995d8639e2f7f363c 100644 (file)
@@ -1518,6 +1518,9 @@ int manager_udev_process_link(Manager *m, sd_device *device, sd_device_action_t
                 return log_device_debug_errno(device, r, "Failed to determine if the device is renaming or not: %m");
         if (r > 0) {
                 log_device_debug(device, "Device is renaming, waiting for the interface to be renamed.");
+                /* TODO:
+                 * What happens when a device is initialized, then soon renamed after that? When we detect
+                 * such, maybe we should cancel or postpone all queued requests for the interface. */
                 return 0;
         }