]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: drop REMOVING flag when a netlink message is sent to kernel
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 22 Nov 2022 04:03:55 +0000 (13:03 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Tue, 6 Dec 2022 15:01:01 +0000 (16:01 +0100)
commitf4ee7b98c434bc9a0f436c29fd32225acd73e183
tree453e108baf329bd883708af9fceebd2e525b2dfb
parent0927ae6a5c65c7c6f3ae11b7d1a2d1ca3e8ca985
network: drop REMOVING flag when a netlink message is sent to kernel

When an interface goes to down, the kernel drops several routes
automatically, and at the same time networkd requests to remove
them, but the kernel sometimes does not respond the requests. Hence,
the routes cannot drop the REMOVING flag, and networkd will never try
to configure other routes which depend on the previously removed
routes even if they are already reconfigured.

With this patch, when networkd sends a request to configure a route
(or any other network settings), REMOVING flag for the route is dropped
without waiting for the reply about the previous remove request, as we
can expect it will appear even if it is already removed or under removing.

Fixes #24999.
src/network/networkd-util.h