From 651113ee21a1a1d7432550e6e57b0e1f4bc09744 Mon Sep 17 00:00:00 2001 From: Steven Koo Date: Wed, 25 May 2022 11:39:52 -0500 Subject: ci: Add recv and send frame tuning for streaming This adds the ability to tune the recv and send frames as a parameter. This is useful since some rates will fail with jitter in the system with the default settings. Signed-off-by: Steven Koo --- host/tests/pytests/test_streaming.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'host/tests/pytests/test_streaming.py') diff --git a/host/tests/pytests/test_streaming.py b/host/tests/pytests/test_streaming.py index 98554640b..beb5f7468 100644 --- a/host/tests/pytests/test_streaming.py +++ b/host/tests/pytests/test_streaming.py @@ -242,6 +242,22 @@ def test_streaming(pytestconfig, dut_type, use_dpdk, dual_SFP, rate, rx_rate, rx if use_dpdk: device_args += f"use_dpdk=1,mgmt_addr={pytestconfig.getoption('mgmt_addr')}," + try: + num_recv_frames = pytestconfig.getoption('num_recv_frames') + if num_recv_frames: + device_args += f"num_recv_frames={num_recv_frames}," + except Exception: + pass + + try: + num_send_frames = pytestconfig.getoption('num_send_frames') + if num_send_frames: + device_args += f"num_send_frames={num_send_frames}," + except Exception: + pass + + print("Constructed device_args: " + device_args) + # construct benchmark_rate params dictionary benchmark_rate_params = { "args": device_args, -- cgit v1.2.3