Compare commits

...
Author SHA1 Message Date
Alex CheemaandClaude Opus 4.6 8155e14972 fix(dashboard): only suggest RDMA for TB5 hardware, not all Thunderbolt
Parse linkSpeed from system_profiler to distinguish TB5 (>40 Gb/s) from
TB3/TB4 (40 Gb/s). Fixes #1636.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-04 13:32:09 -08:00
+7 -2
View File
@@ -135,9 +135,14 @@
if (!rdmaCtl) return false;
const ids = tbIdentifiers;
if (!ids) return false;
// Find nodes with TB5 hardware (any TB interface)
// Find nodes with TB5 hardware (link speed > 40 Gb/s)
const tb5NodeIds = Object.entries(ids)
.filter(([_, node]) => node.interfaces.length > 0)
.filter(([_, node]) =>
node.interfaces.some((iface) => {
const match = iface.linkSpeed.match(/(\d+)\s*Gb/i);
return match != null && parseInt(match[1], 10) > 40;
}),
)
.map(([id]) => id);
if (tb5NodeIds.length < 2) return false;
// At least one TB5 node has RDMA disabled