STL Console: fix crash in case of no supported speeds reported by DPDK 50/5350/1
authorYaroslav Brustinov <[email protected]>
Tue, 3 Jan 2017 15:54:20 +0000 (17:54 +0200)
committerYaroslav Brustinov <[email protected]>
Tue, 3 Jan 2017 15:54:20 +0000 (17:54 +0200)
Regression: update stl performance kiwi benchmark (was my typo)

Change-Id: I0ea615d2511ea0339665e8fa5c8621eec9ebcb1e
Signed-off-by: Yaroslav Brustinov <[email protected]>
scripts/automation/regression/setups/kiwi02/benchmark.yaml
scripts/automation/trex_control_plane/stl/console/trex_console.py

index 6e29d19..5337b87 100644 (file)
@@ -254,7 +254,7 @@ test_performance_vm_single_cpu:
     cfg:
         mult                    : "90%"
         mpps_per_core_golden    : 
-                                   min: 11.5
+                                   min: 11.2
                                    max: 13.1
 
 
index 7d47128..cecdd72 100755 (executable)
@@ -838,10 +838,10 @@ def show_intro (logger, c):
     # find out which NICs the server has
     port_types = {}
     for port in x['ports']:
-        if 'supp_speeds' in port:
+        if 'supp_speeds' in port and port['supp_speeds']:
             speed = max(port['supp_speeds']) // 1000
         else:
-            speed = port['speed']
+            speed = c.ports[port['index']].get_speed_gbps()
         key = (speed, port.get('description', port['driver']))
         if key not in port_types:
             port_types[key] = 0