diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-06 09:57:56 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-11-06 09:57:56 +0100 |
commit | df69f29728f8324075951060217e7821a793fcb4 (patch) | |
tree | a3260bfb5b396eb9d6cdb63362b8743b5d4fe6c9 /src/network/networkd-link-bus.c | |
parent | UKI: Introduce `.dtbauto` sections (#34855) (diff) | |
parent | network: introduce LINK_RECONFIGURE_CLEANLY flag (diff) | |
download | systemd-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.c | 8 |
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); } |