diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-08 16:58:29 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-14 02:17:19 +0100 |
commit | b0d2ce83423ac69c45d39dab1adabcb1b03ea565 (patch) | |
tree | 34e245c287b3c6a989d2c5ea4a1e4f8410be2ee0 /src/network/netdev/vxlan.h | |
parent | network/netdev: do not update MAC address if netdev is already running (diff) | |
download | systemd-b0d2ce83423ac69c45d39dab1adabcb1b03ea565.tar.xz systemd-b0d2ce83423ac69c45d39dab1adabcb1b03ea565.zip |
network/netdev: enter ready state only when it is created by us
Follow-up for PR #34909.
This fixes an issue that network interfaces cannot join a master netdev,
like bond or bridge, when the corresponding .netdev is reloaded.
With PR #34909, networkd supports reloading .netdev files. However,
When a .netdev file is modified and reloaded, ifindex is copied from
the old NetDev object to the new one. Thus, even if the interface is
successfully updated, netdev_set_ifindex_impl() will return 0 and
netdev_enter_ready() will never called. If the netdev is a kind of
master netdev, then port interfaces cannot join the master netdev,
as REQUEST_TYPE_SET_LINK_MASTER requires that the master netdev is
in the ready state.
Diffstat (limited to 'src/network/netdev/vxlan.h')
0 files changed, 0 insertions, 0 deletions