summaryrefslogtreecommitdiffstats
path: root/src/network/networkd-link-bus.c
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2024-11-06 09:57:56 +0100
committerGitHub <noreply@github.com>2024-11-06 09:57:56 +0100
commitdf69f29728f8324075951060217e7821a793fcb4 (patch)
treea3260bfb5b396eb9d6cdb63362b8743b5d4fe6c9 /src/network/networkd-link-bus.c
parentUKI: Introduce `.dtbauto` sections (#34855) (diff)
parentnetwork: introduce LINK_RECONFIGURE_CLEANLY flag (diff)
downloadsystemd-df69f29728f8324075951060217e7821a793fcb4.tar.xz
systemd-df69f29728f8324075951060217e7821a793fcb4.zip
network: reconfigure interface more gracefully (#35035)
split-out of #34989.
Diffstat (limited to 'src/network/networkd-link-bus.c')
-rw-r--r--src/network/networkd-link-bus.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/src/network/networkd-link-bus.c b/src/network/networkd-link-bus.c
index cb114929fa..27ee855181 100644
--- a/src/network/networkd-link-bus.c
+++ b/src/network/networkd-link-bus.c
@@ -665,11 +665,9 @@ int bus_link_method_reconfigure(sd_bus_message *message, void *userdata, sd_bus_
if (r == 0)
return 1; /* Polkit will call us back */
- r = link_reconfigure(l, /* force = */ true);
- if (r > 0)
- r = link_save_and_clean_full(l, /* also_save_manager = */ true);
- if (r < 0)
- return r;
+ r = link_reconfigure_full(l, LINK_RECONFIGURE_UNCONDITIONALLY | LINK_RECONFIGURE_CLEANLY, message, /* counter = */ NULL);
+ if (r != 0)
+ return r; /* Will reply later when r > 0. */
return sd_bus_reply_method_return(message, NULL);
}