diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-21 05:22:33 +0900 |
---|---|---|
committer | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-01-21 06:22:39 +0900 |
commit | 92796278f8b6614d272de85159555ff2f8776353 (patch) | |
tree | 33542acfd5c52a94f70c38044aa7a1242832924e /src/resolve/resolved-link.h | |
parent | 1a4152f02b0c8c80e99a4b43745db1e96a793c50 (diff) | |
download | systemd-92796278f8b6614d272de85159555ff2f8776353.tar.gz |
resolve: reduce attempts of reading link file
The function `link_relevant()` is called repeatedly in `link_allocate_scopes()`.
Let's not read networkd's link file in `link_relevant()`.
Closes #22190.
Diffstat (limited to 'src/resolve/resolved-link.h')
-rw-r--r-- | src/resolve/resolved-link.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/resolve/resolved-link.h b/src/resolve/resolved-link.h index f65718ce31..b5299e0b5b 100644 --- a/src/resolve/resolved-link.h +++ b/src/resolve/resolved-link.h @@ -6,6 +6,7 @@ #include "sd-netlink.h" #include "in-addr-util.h" +#include "network-util.h" #include "ratelimit.h" #include "resolve-util.h" @@ -68,6 +69,7 @@ struct Link { DnsScope *mdns_ipv6_scope; struct stat networkd_state_file_stat; + LinkOperationalState networkd_operstate; bool is_managed; char *ifname; |