[SWDEV-540014] Correct topology link_type check

Topology numa_bw checks for non-xgmi links to set as N/A.
The recent change in link_type enum mapping caused this
condition to check for PCIE instead of XGMI. Corrected
the same.

Signed-off-by: Bindhiya Kanangot Balakrishnan <Bindhiya.KanangotBalakrishnan@amd.com>


[ROCm/amdsmi commit: fa9ca21520]
This commit is contained in:
Bindhiya Kanangot Balakrishnan
2025-06-24 16:09:27 -05:00
committed by Arif, Maisam
parent 7b9ef0e406
commit 38f59e353a
@@ -3914,7 +3914,7 @@ class AMDSMICommands():
try:
link_type = amdsmi_interface.amdsmi_topo_get_link_type(src_gpu, dest_gpu)['type']
if isinstance(link_type, int):
if link_type != 2:
if link_type != amdsmi_interface.amdsmi_wrapper.AMDSMI_LINK_TYPE_XGMI:
# non_xgmi = True
src_gpu_link_type[dest_gpu_key] = "N/A"
continue