diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-13 03:44:46 +0100 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2024-11-14 02:15:44 +0100 |
commit | 09db4106064dd600c64d12a4e06bd88143b2e4f7 (patch) | |
tree | e20be6a64afca7d7a4f1e872e8db78b2ea017fed /src/hibernate-resume | |
parent | network/netdev: set interface name only when creating a new netdev (diff) | |
download | systemd-09db4106064dd600c64d12a4e06bd88143b2e4f7.tar.xz systemd-09db4106064dd600c64d12a4e06bd88143b2e4f7.zip |
network/netdev: do not update MAC address if netdev is already running
Follow-up for 17c5337f7b2993619d84acc2088b2ba1789e6477.
Older kernels (older than v6.5) refuse RTM_NEWLINK messages with IFLA_ADDRESS
attribute when the netdev already exists and is running, even if the MAC
address is unchanged.
So, let's not set IFLA_ADDRESS or IFLA_MTU if they are unchanged, and
set the attributes only when we can update them.
Diffstat (limited to 'src/hibernate-resume')
0 files changed, 0 insertions, 0 deletions