1
0
Fork 0
mirror of https://github.com/kubernetes-sigs/node-feature-discovery.git synced 2024-12-14 11:57:51 +00:00
node-feature-discovery/source
Markus Lehtonen 152f3531fe source/pci: add iommu_group/type attribute
Add "iommu_group/type" to the list of PCI device attributes that are
discovered. The value is the raw value from sysfs (i.e DMA, DMA-FQ or
identity).

No built-in (automatic) labels are generated based on this, but, the
attribute is available for custom label rules to use. Examples of custom
rules:

  - name: "iommu enabled rule"
    labels:
      iommu.enabled: "true"
    matchFeatures:
      - feature: pci.device
        matchExpressions:
          "iommu_group/type": {op: NotIn, value: ["unknown"]}

  - name: "iommu passthrough rule"
    labels:
      iommu.passthrough: "true"
    matchFeatures:
      - feature: pci.device
        matchExpressions:
          "iommu_group/type": {op: In, value: ["identity"]}
2022-01-11 11:54:54 +02:00
..
cpu source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
custom nfd-worker: drop 'custom-' prefix from matchFeatures custom rules 2021-12-09 21:52:40 +02:00
fake source: rename TestSource to SupplementalSource 2021-12-20 10:05:00 +02:00
iommu source/iommu: deprecate and disable by default 2021-12-20 10:21:29 +02:00
kernel source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
local source/local: don't prefix label names with the filename 2021-12-13 09:00:59 +02:00
memory source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
network source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
pci source/pci: add iommu_group/type attribute 2022-01-11 11:54:54 +02:00
storage source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
system source: make per-source unit tests stricter 2021-12-03 10:26:26 +02:00
usb source/usb: fix fallback to default label format 2021-12-10 08:32:41 +02:00
config.go topologyupdater: Bootstrap nfd-topology-updater in NFD 2021-09-21 10:47:39 +01:00
mock_LabelSource.go Merge pull request #602 from marquiz/devel/go-generate 2021-09-21 06:16:24 -07:00
source.go source: rename TestSource to SupplementalSource 2021-12-20 10:05:00 +02:00
source_test.go source/kernel: implement FeatureSource 2021-11-11 18:33:40 +02:00