mirror of
https://github.com/kubernetes-sigs/node-feature-discovery.git
synced 2025-03-28 02:37:11 +00:00
Merge pull request #705 from marquiz/devel/iommu-dev-attributes
source/pci: add iommu_group/type attribute
This commit is contained in:
commit
a1cb431503
2 changed files with 2 additions and 2 deletions
|
@ -515,7 +515,7 @@ The following features are available for matching:
|
|||
| **`network.device`** | instance | | | Physical (non-virtual) network interfaces present in the system
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `name`, `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`
|
||||
| | | **`<sysfs-attribute>`** | 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
|
||||
| | | **`<sysfs-attribute>`** | string | Sysfs network interface attribute, available attributes: `name`, `dax`, `rotational`, `nr_zones`, `zoned`
|
||||
| **`system.osrelease`** | attribute | | | System identification data from `/etc/os-release`
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue