From cf1dbef59eef3e1672d4a317511fcdcf87ec4d2f Mon Sep 17 00:00:00 2001 From: SimonFair <39065407+SimonFair@users.noreply.github.com> Date: Sun, 7 Dec 2025 11:17:28 +0000 Subject: [PATCH] Fix filter of removed devices. --- emhttp/plugins/dynamix/include/SysDevs.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/emhttp/plugins/dynamix/include/SysDevs.php b/emhttp/plugins/dynamix/include/SysDevs.php index 31052ee46..23c99bfa1 100644 --- a/emhttp/plugins/dynamix/include/SysDevs.php +++ b/emhttp/plugins/dynamix/include/SysDevs.php @@ -184,6 +184,9 @@ case 't1': if (!preg_match('/^[0-9a-fA-F]{4}:/', $bdf)) { $bdf = "0000:".$bdf; } + $class_id = "0x".$removeddata['device']['class']; + $class_prefix = substr(strtolower((string)$class_id), 0, 4); + if (in_array($class_prefix, $filter, true)) continue; $line = "R[{$removeddata['device']['vendor_id']}:{$removeddata['device']['device_id']}] " . str_replace("0000:","",$removedpci)." " . trim($removeddata['device']['description'],"\n"); @@ -191,6 +194,7 @@ case 't1': } } $ackparm = ""; + foreach ($lsiommu as $key => $group) { $pciidcheck = array_key_first($group); if (in_array($pciidcheck,$sriovvfs)) continue;