diff --git a/docs/advanced/customization-guide.md b/docs/advanced/customization-guide.md index b401942e6..f17ae073f 100644 --- a/docs/advanced/customization-guide.md +++ b/docs/advanced/customization-guide.md @@ -515,7 +515,7 @@ The following features are available for matching: | **`network.device`** | instance | | | Physical (non-virtual) network interfaces present in the system | | | **``** | string | Sysfs network interface attribute, available attributes: `name`, `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs` | **`pci.device`** | instance | | | PCI devices present in the system -| | | **``** | string | Value of the sysfs device attribute, available attributes: `class`, `vendor`, `device`, `subsystem_vendor`, `subsystem_device`, `sriov_totalvfs` +| | | **``** | string | Value of the sysfs device attribute, available attributes: `class`, `vendor`, `device`, `subsystem_vendor`, `subsystem_device`, `sriov_totalvfs`, `iommu_group/type` | **`storage.device`** | instance | | | Block storage devices present in the system | | | **``** | string | Sysfs network interface attribute, available attributes: `name`, `dax`, `rotational`, `nr_zones`, `zoned` | **`system.osrelease`** | attribute | | | System identification data from `/etc/os-release` diff --git a/source/pci/utils.go b/source/pci/utils.go index 5bc05a674..367e4b1f2 100644 --- a/source/pci/utils.go +++ b/source/pci/utils.go @@ -29,7 +29,7 @@ import ( ) var mandatoryDevAttrs = []string{"class", "vendor", "device", "subsystem_vendor", "subsystem_device"} -var optionalDevAttrs = []string{"sriov_totalvfs"} +var optionalDevAttrs = []string{"sriov_totalvfs", "iommu_group/type"} // Read a single PCI device attribute // A PCI attribute in this context, maps to the corresponding sysfs file