return 0;
}
-static int dev_pci_onboard(sd_device *dev, const LinkInfo *info, NetNames *names) {
+static int dev_pci_onboard(sd_device *dev, NetNames *names) {
_cleanup_free_ char *port = NULL;
unsigned idx = 0; /* avoid false maybe-uninitialized warning */
int r;
assert(dev);
- assert(info);
assert(names);
/* retrieve on-board index number and label from firmware */
return 0;
}
-static int dev_pci_slot(sd_device *dev, const LinkInfo *info, NetNames *names) {
+static int dev_pci_slot(sd_device *dev, NetNames *names) {
_cleanup_free_ char *domain = NULL, *bus_and_slot = NULL, *func = NULL, *port = NULL;
uint32_t hotplug_slot = 0; /* avoid false maybe-uninitialized warning */
int r;
assert(dev);
- assert(info);
assert(names);
r = get_pci_slot_specifiers(names->pcidev, &domain, &bus_and_slot, &func);
return -ENOENT;
}
-static int names_pci(sd_device *dev, const LinkInfo *info, NetNames *names) {
+static int names_pci(sd_device *dev, NetNames *names) {
_cleanup_(sd_device_unrefp) sd_device *physfn_pcidev = NULL;
_cleanup_free_ char *virtfn_suffix = NULL;
sd_device *parent;
int r;
assert(dev);
- assert(info);
assert(names);
r = sd_device_get_parent(dev, &parent);
/* If this is an SR-IOV virtual device, get base name using physical device and add virtfn suffix. */
vf_names.pcidev = physfn_pcidev;
- dev_pci_onboard(dev, info, &vf_names);
- dev_pci_slot(dev, info, &vf_names);
+ dev_pci_onboard(dev, &vf_names);
+ dev_pci_slot(dev, &vf_names);
if (vf_names.pci_onboard[0])
if (strlen(vf_names.pci_onboard) + strlen(virtfn_suffix) < sizeof(names->pci_onboard))
strscpyl(names->pci_path, sizeof(names->pci_path),
vf_names.pci_path, virtfn_suffix, NULL);
} else {
- dev_pci_onboard(dev, info, names);
- dev_pci_slot(dev, info, names);
+ dev_pci_onboard(dev, names);
+ dev_pci_slot(dev, names);
}
return 0;
(void) names_xen(dev, prefix, test);
/* get PCI based path names */
- r = names_pci(dev, &info, &names);
+ r = names_pci(dev, &names);
if (r < 0) {
/*
* check for usb devices that are not off pci interfaces to