mirror of
https://github.com/aljazceru/kata-containers.git
synced 2026-02-19 05:24:40 +01:00
get_pci_device_address() has pretty confusing semantics. Both its input and output are in other parts of the code described as a "PCI address", but neither is *actually* a PCI address (in the standard DDDD:BB:DD.F format). What it's really about is resolving a "PCI path" - that is way to locate a PCI device by using it's slot number and the slot number of the bridge leading to it - into a sysfs path. Rename the function, and change a bunch of variable names to make those semantics clearer. Forward port of https://github.com/kata-containers/agent/pull/855/commits/0eb612f06484 Signed-off-by: David Gibson <david@gibson.dropbear.id.au>