mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Restore name=value format of PCI location strings.
When devctl was added, the location string for PCI devices was changed to use the PCI "selector" that pciconf and devctl accept. However, devd assumes that location strings are formatted as a list of name=value pairs. As a result, devd is no longer parsing any of the values out of PCI device events. Restore the previous format of the PCI location strings to restore the location and slot keywords in case any devd scripts are using this. Add the "selector" as a new 'dbsf' location variable. Reviewed by: imp MFC after: 3 days Differential Revision: https://reviews.freebsd.org/D6253
This commit is contained in:
parent
ee58b56452
commit
1963070cd3
1 changed files with 2 additions and 1 deletions
|
|
@ -5427,7 +5427,8 @@ pci_child_location_str_method(device_t dev, device_t child, char *buf,
|
|||
size_t buflen)
|
||||
{
|
||||
|
||||
snprintf(buf, buflen, "pci%d:%d:%d:%d", pci_get_domain(child),
|
||||
snprintf(buf, buflen, "slot=%d function=%d dbsf=pci%d:%d:%d:%d",
|
||||
pci_get_slot(child), pci_get_function(child), pci_get_domain(child),
|
||||
pci_get_bus(child), pci_get_slot(child), pci_get_function(child));
|
||||
return (0);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue