]> git.ipfire.org Git - thirdparty/systemd.git/commit
network/link: update state file when master ifindex is changed
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 27 May 2025 17:09:52 +0000 (02:09 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Wed, 25 Jun 2025 12:36:10 +0000 (13:36 +0100)
commite9655c7865d632bd05437f8ebd4264a13b8011e4
treed4561b156edf5debb6c2301690d9531b5a21fd3f
parent2ad46c06069ad4241c94124dd5a3a73da7828048
network/link: update state file when master ifindex is changed

If master ifindex is non-zero, then the carrier state and operational
state of the interface may be the enslaved state.
As the operational state is saved in link state file, and read by
wait-online, we need to update the state file when the master ifindex is
changed.

(cherry picked from commit 7dde00ca57cf20a5d71e580d0bc6173f454095e5)
src/network/networkd-link.c