mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2024-12-14 11:57:51 +00:00
Merge pull request #716 from marquiz/devel/iommu-version
source/pci: detect intel-iommu/version
This commit is contained in:
commit
dbc70713f7
2 changed files with 2 additions and 2 deletions
|
@ -516,7 +516,7 @@ The following features are available for matching:
|
|||
| | | **`name`** | string | Name of the network interface
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs`
|
||||
| **`pci.device`** | instance | | | PCI devices present in the system
|
||||
| | | **`<sysfs-attribute>`** | string | Value of the sysfs device attribute, available attributes: `class`, `vendor`, `device`, `subsystem_vendor`, `subsystem_device`, `sriov_totalvfs`, `iommu_group/type`
|
||||
| | | **`<sysfs-attribute>`** | 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
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `dax`, `rotational`, `nr_zones`, `zoned`
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue