diff options
Diffstat (limited to 'scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py')
-rwxr-xr-x | scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py index e8766da4..b3fec989 100755 --- a/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py +++ b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py @@ -2,10 +2,16 @@ from trex_stl_lib.trex_stl_hltapi import STLHltStream class STLS1(object): + ''' + Create 2 Eth/IP/UDP steams with different packet size: + First stream will start from 64 bytes (default) and will increase until max_size (9,216) + Seconds stream will decrease the packet size in reverse way + ''' def create_streams (self): + max_size = 9*1024 return [STLHltStream(length_mode = 'increment', - frame_size_max = 9*1024, + frame_size_max = max_size, ip_src_addr = '16.0.0.1', ip_dst_addr = '48.0.0.1', l4_protocol = 'udp', @@ -14,7 +20,7 @@ class STLS1(object): rate_pps = 1, ), STLHltStream(length_mode = 'decrement', - frame_size_max = 9*1024, + frame_size_max = max_size, ip_src_addr = '16.0.0.1', ip_dst_addr = '48.0.0.1', l4_protocol = 'udp', |