]> git.ipfire.org Git - thirdparty/systemd.git/commit
network: move set-MAC and set-nomaster operations out of link_up()
authorDan Streetman <ddstreet@canonical.com>
Wed, 17 Jun 2020 20:28:39 +0000 (16:28 -0400)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 23 Oct 2020 03:09:31 +0000 (12:09 +0900)
commite16e4b3bedc57919b3ecb4096e941709a5d39b8a
tree244e9dc08776b7db81daa7d62088d3daaa1aa52f
parent3ec554ad171a0626ad634649fe68db3cd65f25c4
network: move set-MAC and set-nomaster operations out of link_up()

These should not be bundled into the link_up() operation, as that is
not (currently) called during interface configuration if the interface
already is IFF_UP, which is unrelated to the need to change the mac
to a user-defined value, or set 'nomaster' on the interface.

Additionally, there is no need to re-set the mac or re-assert nomaster
every time the interface is brought up; those should be only part of
normal initial interface configuration.

Fixes: #17391
src/network/networkd-link.c