diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2022-08-05 20:18:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-08-05 20:18:30 +0200 |
commit | 1ab7e2b58719ffa36054483c826b9f5e53206e54 (patch) | |
tree | 02e3c2e416d6911e4da42d70c04202fd44c75531 /src/network/netdev/netdev-util.c | |
parent | Merge pull request #23508 from yuwata/core-device (diff) | |
parent | network: also check SR-IOV PF port and other VF ports before configuring (diff) | |
download | systemd-1ab7e2b58719ffa36054483c826b9f5e53206e54.tar.xz systemd-1ab7e2b58719ffa36054483c826b9f5e53206e54.zip |
Merge pull request #23340 from yuwata/network-check-sr-iov-pf-state
network: check SR-IOV PF state
Diffstat (limited to 'src/network/netdev/netdev-util.c')
-rw-r--r-- | src/network/netdev/netdev-util.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/netdev/netdev-util.c b/src/network/netdev/netdev-util.c index 06028855a8..23506246ce 100644 --- a/src/network/netdev/netdev-util.c +++ b/src/network/netdev/netdev-util.c @@ -51,7 +51,7 @@ int link_get_local_address( assert_not_reached(); } - if (!IN_SET(link->state, LINK_STATE_CONFIGURING, LINK_STATE_CONFIGURED)) + if (!link_is_ready_to_configure(link, /* allow_unmanaged = */ false)) return -EBUSY; SET_FOREACH(a, link->addresses) { |