X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=GPL%2Ftools%2Ftrex%2Ftrex_stl_profile.py;h=ac09b8dda1374d8858fb914d09cc6daa9dc7ace4;hb=e08706e85b412b1307df3789fdbe747b43c2bd95;hp=64b8342e57cc6e36b008658614e577b4e01be459;hpb=273d2ea03c4fa35ea5b656872f06f6e6d2e6f851;p=csit.git diff --git a/GPL/tools/trex/trex_stl_profile.py b/GPL/tools/trex/trex_stl_profile.py index 64b8342e57..ac09b8dda1 100644 --- a/GPL/tools/trex/trex_stl_profile.py +++ b/GPL/tools/trex/trex_stl_profile.py @@ -24,7 +24,7 @@ import sys import time sys.path.insert( - 0, u"/opt/trex-core-2.73/scripts/automation/trex_control_plane/interactive/" + 0, u"/opt/trex-core-2.82/scripts/automation/trex_control_plane/interactive/" ) from trex.stl.api import * @@ -169,7 +169,8 @@ def simple_burst( # Choose rate and start traffic: client.start( - ports=ports, mult=rate, duration=warmup_time, force=force + ports=ports, mult=rate, duration=warmup_time, force=force, + core_mask=STLClient.CORE_MASK_PIN ) # Block until done: @@ -202,7 +203,10 @@ def simple_burst( lost_b = 0 # Choose rate and start traffic: - client.start(ports=ports, mult=rate, duration=duration, force=force) + client.start( + ports=ports, mult=rate, duration=duration, force=force, + core_mask=STLClient.CORE_MASK_PIN + ) if async_start: # For async stop, we need to export the current snapshot.