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 <[email protected]>
This commit is contained in:
co-authored by
Claude Opus 4.6
parent
8485805042
commit
8155e14972
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user