summaryrefslogtreecommitdiffstats
path: root/scripts/stl/udp_for_benchmarks.py
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/stl/udp_for_benchmarks.py')
-rw-r--r--scripts/stl/udp_for_benchmarks.py18
1 files changed, 18 insertions, 0 deletions
diff --git a/scripts/stl/udp_for_benchmarks.py b/scripts/stl/udp_for_benchmarks.py
index 2033e80e..956498d0 100644
--- a/scripts/stl/udp_for_benchmarks.py
+++ b/scripts/stl/udp_for_benchmarks.py
@@ -1,5 +1,23 @@
from trex_stl_lib.api import *
+# Tunable example
+#
+#trex>profile -f stl/udp_for_benchmarks.py
+#
+#Profile Information:
+#
+#
+#General Information:
+#Filename: stl/udp_for_benchmarks.py
+#Stream count: 1
+#
+#Specific Information:
+#Type: Python Module
+#Tunables: ['stream_count = 1', 'direction = 0', 'packet_len = 64']
+#
+#trex>start -f stl/udp_for_benchmarks.py -t packet_len=128 --port 0
+#
+
class STLS1(object):
'''
Generalization of udp_1pkt_simple, can specify number of streams and packet length