FIX: Proper NUMA compute 72/26572/3
authorPeter Mikus <pmikus@cisco.com>
Fri, 17 Apr 2020 16:34:35 +0000 (16:34 +0000)
committerPeter Mikus <pmikus@cisco.com>
Fri, 17 Apr 2020 16:56:15 +0000 (16:56 +0000)
+ FIX for Vratko's FIX

Change-Id: Ia6ff137120d84bdd2b9e02e3e935c62d1c732b7b
Signed-off-by: Peter Mikus <pmikus@cisco.com>
resources/libraries/python/NodePath.py
resources/libraries/robot/shared/default.robot

index 04e8e5e..8ee5066 100644 (file)
@@ -268,6 +268,9 @@ class NodePath:
                 t_dict[f"{n_pfx}_pf_pci"] = []
             t_dict[f"{n_pfx}_pf_pci"].append(
                 Topology.get_interface_pci_addr(node, interface))
+            if f"{n_pfx}_pf_keys" not in t_dict:
+                t_dict[f"{n_pfx}_pf_keys"] = []
+            t_dict[f"{n_pfx}_pf_keys"].append(interface)
             # Backward compatibility below
             t_dict[f"{n_pfx.lower()}_{i_pfx}"] = interface
             t_dict[f"{n_pfx.lower()}_{i_pfx}_mac"] = \
index 0ec86cb..d3206a1 100644 (file)
 | | ${txd_count_int}= | Set variable | ${txd}
 | | FOR | ${dut} | IN | @{duts}
 | | | ${numa}= | Get interfaces numa node
-| | | ... | ${nodes['${dut}']} | @{${dut}_pf1}
+| | | ... | ${nodes['${dut}']} | @{${dut}_pf_keys}
 | | | ${smt_used}= | Is SMT enabled | ${nodes['${dut}']['cpuinfo']}
 | | | ${skip_cnt}= | Set variable | ${CPU_CNT_SYSTEM}
 | | | ${cpu_main}= | Cpu list per node str | ${nodes['${dut}']} | ${numa}