diff options
author | Peter Mikus <peter.mikus@protonmail.ch> | 2024-11-18 09:32:32 +0100 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2024-11-18 12:04:21 +0000 |
commit | 309ceb0d58739b910d5474d1462cde2a6791e6fa (patch) | |
tree | 01ab824399d4708a479d2b618af192529d3fb766 /GPL/tools | |
parent | 33e60e62e1c42dfcb3d80a9941d75b24126fa1e5 (diff) |
feat(core): IMIX stream dynamic
Signed-off-by: Peter Mikus <peter.mikus@protonmail.ch>
Change-Id: Ib1f68a853012ee08688115e1c021756a18f5cb04
Diffstat (limited to 'GPL/tools')
-rw-r--r-- | GPL/tools/trex/trex_stl_profile.py | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/GPL/tools/trex/trex_stl_profile.py b/GPL/tools/trex/trex_stl_profile.py index e3a3c8c0f9..772c656a07 100644 --- a/GPL/tools/trex/trex_stl_profile.py +++ b/GPL/tools/trex/trex_stl_profile.py @@ -160,14 +160,19 @@ def simple_burst( client.add_streams(streams=[i], ports=[j]) elif isinstance(framesize, str): mark = 0 + strp = len(streams) // len(ports) for i in ports[::2]: - client.add_streams(streams=streams[mark:mark+3], ports=[i]) - mark = mark + 3 + client.add_streams( + streams=streams[mark:mark+strp], ports=[i] + ) + mark = mark + strp if traffic_directions > 1: mark = len(streams) // 2 for i in ports[1::2]: - client.add_streams(streams=streams[mark:mark+3], ports=[i]) - mark = mark + 3 + client.add_streams( + streams=streams[mark:mark+strp], ports=[i] + ) + mark = mark + strp if latency: try: if isinstance(framesize, int): |