pespin has uploaded this change for review. (
https://gerrit.osmocom.org/c/upf-benchmark/+/39933?usp=email )
Change subject: tunmap: trex: Allow configuring payload size
......................................................................
tunmap: trex: Allow configuring payload size
Change-Id: I3760a1f8c2577d340f75b530cfaa6857eae3d73d
---
M testsuites/gtplab-sysmo2025/tunmap/trex/gtp_1pkt_simple.py
1 file changed, 6 insertions(+), 1 deletion(-)
git pull ssh://gerrit.osmocom.org:29418/upf-benchmark refs/changes/33/39933/1
diff --git a/testsuites/gtplab-sysmo2025/tunmap/trex/gtp_1pkt_simple.py
b/testsuites/gtplab-sysmo2025/tunmap/trex/gtp_1pkt_simple.py
index 18bb5a7..f7f7d67 100644
--- a/testsuites/gtplab-sysmo2025/tunmap/trex/gtp_1pkt_simple.py
+++ b/testsuites/gtplab-sysmo2025/tunmap/trex/gtp_1pkt_simple.py
@@ -55,7 +55,7 @@
GTPPDUSessionContainer(type=1,QFI=1)/
IP(src="10.45.0.2",dst="192.168.16.152",version=4)/
UDP()/
- (1400*'x'),
+ (self.payload_len*'x'),
vm = vm
),
mode = STLTXCont())
@@ -71,9 +71,14 @@
type=int,
default=1,
help="The number of src IP addresses.")
+ parser.add_argument('--payload-len',
+ type=int,
+ default=1400,
+ help="Payload size in bytes.")
args = parser.parse_args(tunables)
self.num_streams = args.num_streams
self.num_addrs = args.num_addrs
+ self.payload_len = args.payload_len
streams = []
for addr_idx in range(self.num_addrs):
streams.append(self.create_stream(direction = 0, addr_idx = addr_idx))
--
To view, visit
https://gerrit.osmocom.org/c/upf-benchmark/+/39933?usp=email
To unsubscribe, or for help writing mail filters, visit
https://gerrit.osmocom.org/settings?usp=email
Gerrit-MessageType: newchange
Gerrit-Project: upf-benchmark
Gerrit-Branch: master
Gerrit-Change-Id: I3760a1f8c2577d340f75b530cfaa6857eae3d73d
Gerrit-Change-Number: 39933
Gerrit-PatchSet: 1
Gerrit-Owner: pespin <pespin(a)sysmocom.de>