diff --git a/docs/advanced/customization-guide.md b/docs/advanced/customization-guide.md index 84cacf7c8..57422100e 100644 --- a/docs/advanced/customization-guide.md +++ b/docs/advanced/customization-guide.md @@ -516,7 +516,7 @@ The following features are available for matching: | | | **`name`** | string | Name of the network interface | | | **``** | string | Sysfs network interface attribute, available attributes: `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`, `iommu_group/type` +| | | **``** | string | Value of the sysfs device attribute, available attributes: `class`, `vendor`, `device`, `subsystem_vendor`, `subsystem_device`, `sriov_totalvfs`, `iommu_group/type`, `iommu/intel-iommu/version` | **`storage.device`** | instance | | | Block storage devices present in the system | | | **`name`** | string | Name of the block device | | | **``** | string | Sysfs network interface attribute, available attributes: `dax`, `rotational`, `nr_zones`, `zoned` diff --git a/source/pci/utils.go b/source/pci/utils.go index 367e4b1f2..4922cad83 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", "iommu_group/type"} +var optionalDevAttrs = []string{"sriov_totalvfs", "iommu_group/type", "iommu/intel-iommu/version"} // Read a single PCI device attribute // A PCI attribute in this context, maps to the corresponding sysfs file