netif-naming-scheme: disable NAMING_BRIDGE_MULTIFUNCTION_SLOT
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Aug 2023 15:01:19 +0000 (00:01 +0900)
committerLuca Boccassi <luca.boccassi@gmail.com>
Fri, 20 Oct 2023 09:56:48 +0000 (10:56 +0100)
commitaf7417ac7b07bc01232982bf46e9d72e69e7f820
treee8855a08160e946f5c2b61dcc88419a2185a8192
parented51ccf4b8e3700e4f167d27be1ddbc82e538ae1
netif-naming-scheme: disable NAMING_BRIDGE_MULTIFUNCTION_SLOT

This effectively reverts 66425daf2c68793adf24a48a26d58add8662e83f.

The commit assumes that if the network interface has multifunctions,
then the function fields of the pci devices under the same PCI bridge
device are unique.
But it seems not, at least on some setups. See issue #28929.
Let's revert the change, and always refuse to set slot base naming if
a PCI bridge is detected.

Fixes #28929.
src/shared/netif-naming-scheme.h