fix(ip4scale6): 6 TRex ports means 6 traffic directions 61/41461/4
authorVratko Polak <[email protected]>
Wed, 21 Aug 2024 17:15:47 +0000 (19:15 +0200)
committerVratko Polak <[email protected]>
Thu, 22 Aug 2024 09:34:29 +0000 (11:34 +0200)
Without this, Robot computes from single-port load incorrectly.

Change-Id: I4c83e959c64be1e7d2dd557db20b95be1ce3d0ae
Signed-off-by: Vratko Polak <[email protected]>
GPL/tools/trex/trex_stl_profile.py
tests/vpp/perf/ip4/10ge2p1x710-ethip4-ip4scale600k-ndrpdr.robot
tests/vpp/perf/ip4/10ge2p1x710-ethip4-ip4scale600k-rnd-ndrpdr.robot
tests/vpp/perf/ip4/10ge2p1x710-ethip4-ip4scale60k-ndrpdr.robot
tests/vpp/perf/ip4/10ge2p1x710-ethip4-ip4scale60k-rnd-ndrpdr.robot
tests/vpp/perf/ip4/10ge2p1x710-ethip4-ip4scale6m-ndrpdr.robot
tests/vpp/perf/ip4/10ge2p1x710-ethip4-ip4scale6m-rnd-ndrpdr.robot

index ac53e90..e3a3c8c 100644 (file)
@@ -1,6 +1,6 @@
 #!/usr/bin/python3
 
-# Copyright (c) 2023 Cisco and/or its affiliates.
+# Copyright (c) 2024 Cisco and/or its affiliates.
 #
 # SPDX-License-Identifier: Apache-2.0 OR GPL-2.0-or-later
 #
@@ -190,7 +190,7 @@ def simple_burst(
 
         # Choose rate and start traffic:
         client.start(
-            ports=ports[::] if traffic_directions == 2 else ports[::2],
+            ports=ports[::2] if traffic_directions == 1 else ports[::],
             mult=rate,
             duration=duration,
             force=force,
index a091ee6..fd86c56 100644 (file)
@@ -66,6 +66,7 @@
 | ${rxq_ratio}= | ${3}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4-ip4dst${rts_per_flow}-${nic_pfs}p
+| ${traffic_directions}= | ${6}
 
 *** Keywords ***
 | Local Template
index bc01eef..abb3aa7 100644 (file)
@@ -66,6 +66,7 @@
 | ${rxq_ratio}= | ${3}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4-ip4dst-rnd${rts_per_flow}-${nic_pfs}p
+| ${traffic_directions}= | ${6}
 
 *** Keywords ***
 | Local Template
index b1e83b1..76110ed 100644 (file)
@@ -66,6 +66,7 @@
 | ${rxq_ratio}= | ${3}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4-ip4dst${rts_per_flow}-${nic_pfs}p
+| ${traffic_directions}= | ${6}
 
 *** Keywords ***
 | Local Template
index e72ba8e..a5606e7 100644 (file)
@@ -66,6 +66,7 @@
 | ${rxq_ratio}= | ${3}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4-ip4dst-rnd${rts_per_flow}-${nic_pfs}p
+| ${traffic_directions}= | ${6}
 
 *** Keywords ***
 | Local Template
index 8a17f39..c1413ed 100644 (file)
@@ -66,6 +66,7 @@
 | ${rxq_ratio}= | ${3}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4-ip4dst${rts_per_flow}-${nic_pfs}p
+| ${traffic_directions}= | ${6}
 
 *** Keywords ***
 | Local Template
index 8cd519d..7b6dc8e 100644 (file)
@@ -66,6 +66,7 @@
 | ${rxq_ratio}= | ${3}
 # Traffic profile
 | ${traffic_profile}= | trex-stl-ethip4-ip4dst-rnd${rts_per_flow}-${nic_pfs}p
+| ${traffic_directions}= | ${6}
 
 *** Keywords ***
 | Local Template