mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-16 21:38:23 +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
|
| | | **`name`** | string | Name of the network interface
|
||||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs`
|
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `operstate`, `speed`, `sriov_numvfs`, `sriov_totalvfs`
|
||||||
| **`pci.device`** | instance | | | PCI devices present in the system
|
| **`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
|
| **`storage.device`** | instance | | | Block storage devices present in the system
|
||||||
| | | **`name`** | string | Name of the block device
|
| | | **`name`** | string | Name of the block device
|
||||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `dax`, `rotational`, `nr_zones`, `zoned`
|
| | | **`<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 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
|
// Read a single PCI device attribute
|
||||||
// A PCI attribute in this context, maps to the corresponding sysfs file
|
// A PCI attribute in this context, maps to the corresponding sysfs file
|
||||||
|
|
Loading…
Add table
Reference in a new issue