aboutsummaryrefslogtreecommitdiffstats
path: root/pkg/host/host_linux.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/host/host_linux.go')
-rw-r--r--pkg/host/host_linux.go8
1 files changed, 8 insertions, 0 deletions
diff --git a/pkg/host/host_linux.go b/pkg/host/host_linux.go
index a1d5ff1b3..c908ee411 100644
--- a/pkg/host/host_linux.go
+++ b/pkg/host/host_linux.go
@@ -396,6 +396,7 @@ func init() {
checkFeature[FeatureNetworkInjection] = checkNetworkInjection
checkFeature[FeatureNetworkDevices] = unconditionallyEnabled
checkFeature[FeatureKCSAN] = checkKCSAN
+ checkFeature[FeatureDevlinkPCI] = checkDevlinkPCI
}
func checkCoverage() string {
@@ -564,3 +565,10 @@ func checkKCSAN() string {
}
return ""
}
+
+func checkDevlinkPCI() string {
+ if err := osutil.IsAccessible("/sys/bus/pci/devices/0000:00:10.0/"); err != nil {
+ return "PCI device 0000:00:10.0 is not available"
+ }
+ return ""
+}