network: do not request UUID frequently on failure
If many interfaces request UUID, and networkd cannot get it for some reasons, then previously we call the DBus method so frequently.
This commit is contained in:
@@ -242,6 +242,8 @@ int dhcp_configure_duid(Link *link, const DUID *duid) {
|
||||
if (r < 0) {
|
||||
log_link_warning_errno(link, r,
|
||||
"Failed to get product UUID. Falling back to use machine-app-specific ID as DUID-UUID: %m");
|
||||
|
||||
m->has_product_uuid = true; /* Do not request UUID again on failure. */
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user