From 301d6ca6e36efdc5a1534615d57f3527560befad Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Tue, 23 Feb 2016 11:23:08 -0500 Subject: hltapi: add line rate and bps support --- scripts/stl/hlt/hlt_david1.py | 2 +- scripts/stl/hlt/hlt_david3.py | 2 +- scripts/stl/hlt/hlt_tcp_ranges.py | 1 + scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py | 2 ++ 4 files changed, 5 insertions(+), 2 deletions(-) (limited to 'scripts/stl') diff --git a/scripts/stl/hlt/hlt_david1.py b/scripts/stl/hlt/hlt_david1.py index 879ea527..922bb632 100755 --- a/scripts/stl/hlt/hlt_david1.py +++ b/scripts/stl/hlt/hlt_david1.py @@ -26,7 +26,7 @@ class STLS1(object): mac_src = '00.00.c0.a8.00.03', mac_src2 = '00.00.c0.a8.01.03', pkts_per_burst = '200000', - #rate_percent = '0.4', # not supported yet + rate_percent = '0.4', transmit_mode = 'continuous', vlan_id = '1', direction = direction, diff --git a/scripts/stl/hlt/hlt_david3.py b/scripts/stl/hlt/hlt_david3.py index 01bf2431..af41b3d4 100755 --- a/scripts/stl/hlt/hlt_david3.py +++ b/scripts/stl/hlt/hlt_david3.py @@ -16,7 +16,7 @@ class STLS1(object): ip_dst_count = 1, l3_length = 474, ip_dscp = 10, - #rate_bps = 256000000, # not supported yet + rate_bps = 256000000, mac_src_mode = 'fixed', mac_src_step = 1, mac_src_count = 1, diff --git a/scripts/stl/hlt/hlt_tcp_ranges.py b/scripts/stl/hlt/hlt_tcp_ranges.py index 31edc61a..b720e1e2 100755 --- a/scripts/stl/hlt/hlt_tcp_ranges.py +++ b/scripts/stl/hlt/hlt_tcp_ranges.py @@ -12,6 +12,7 @@ class STLS1(object): tcp_dst_port = 1234, name = 'test_tcp_ranges', direction = direction, + rate_pps = 1, ), ] 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 e7ee5b3d..e8766da4 100755 --- a/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py +++ b/scripts/stl/hlt/hlt_udp_inc_dec_len_9k.py @@ -11,6 +11,7 @@ class STLS1(object): l4_protocol = 'udp', udp_src_port = 1025, udp_dst_port = 12, + rate_pps = 1, ), STLHltStream(length_mode = 'decrement', frame_size_max = 9*1024, @@ -19,6 +20,7 @@ class STLS1(object): l4_protocol = 'udp', udp_src_port = 1025, udp_dst_port = 12, + rate_pps = 1, ) ] -- cgit 1.2.3-korg