]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/network/networkd-setlink.c
network: also check SR-IOV PF port and other VF ports before configuring 23340/head
authorYu Watanabe <watanabe.yu+github@gmail.com>
Thu, 28 Jul 2022 06:11:46 +0000 (15:11 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Fri, 5 Aug 2022 12:49:27 +0000 (21:49 +0900)
commite33232d4058f96f6228f7fcba59bcaf1ee015de1
tree5d21c7354edfcba832596dbdf59139b72cfcd0bf
parentb0ff6dea38cfea4b83d4f134cf50d39a87d1e059
network: also check SR-IOV PF port and other VF ports before configuring

When a PF port becomes down (this can happens e.g. the PF port is joining
a bond interface), some drivers make its VF ports also become down, and
may cause failures in configuring VF ports.

Similary, when a VF port become down, some drivers make its PF port and
other VF ports down.

Let's configure SR-IOV ports (both PF and VFs) after all link-layer
settings of all ports being applied.

Fixes #23315.
src/network/netdev/netdev.c
src/network/networkd-link.c
src/network/networkd-setlink.c
src/network/networkd-sriov.c
src/network/networkd-sriov.h