]> git.ipfire.org Git - thirdparty/systemd.git/commit
udev-builtin-net_id: split out names_pci_onboard_label() from dev_pci_onboard()
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Aug 2023 05:27:25 +0000 (14:27 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 1 Aug 2023 14:35:34 +0000 (23:35 +0900)
commit415ade00aa6475c8d07a511dd17999fee4981aff
tree6f674b7471e260b7cd892edf9cbc6628dd4f10fd
parentf831aef509089dd2deb03ea6e6947fc29f534567
udev-builtin-net_id: split out names_pci_onboard_label() from dev_pci_onboard()

Then call it only when it is necessary. The label is used only when the
interface is directly connected to the PCI bus, and it does not have the
SR-IOV feature (or the naming based on SR-IOV is disabled).
src/udev/udev-builtin-net_id.c