From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id E325743284; Sat, 4 Nov 2023 00:42:47 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 974BB42DD0; Sat, 4 Nov 2023 00:41:44 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.93]) by mails.dpdk.org (Postfix) with ESMTP id E739D4068A; Sat, 4 Nov 2023 00:41:33 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1699054894; x=1730590894; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=ZAXgrq8DyhxM7DPa02OLDqkRsZOPIrfOKBqCe4ZOFWM=; b=V5H403LYBDOqytnchaNGi29VIHFW7Q8hCbhakGB/7Jf/Sn0OVxh8frp8 ynGMiwDhMRNBVlz2yTviTPcCcJCg1bAqNcNn61uILXiyiHE9+IACNB3lR owIzaQYKVqPR4UozeGYCufnvLn+bwzFYpyUsMD6OAeRpuWBxiqDuvOnR0 hjjIK8UuTHfzZWUt9pkU5TO4xccFIVqAxRLBPvGoo5WbOlbGdWFyujvGq z4aSKzzjJt4ZFDww2/j14cdUkxBc+eevXnutZzz6Ai+/crqIg/Gl6RRax UiHEK76WALzK/x4bvpMF+YKC+aTQ09mqNkCaraN43UevAuA6YoxkGB81m A==; X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="386213596" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="386213596" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 03 Nov 2023 16:41:33 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10883"; a="935249170" X-IronPort-AV: E=Sophos;i="6.03,275,1694761200"; d="scan'208";a="935249170" Received: from spr-npg-bds1-eec2.sn.intel.com (HELO spr-npg-bds1-eec2..) ([10.233.181.123]) by orsmga005.jf.intel.com with ESMTP; 03 Nov 2023 16:41:32 -0700 From: Nicolas Chautru To: dev@dpdk.org, maxime.coquelin@redhat.com Cc: hemant.agrawal@nxp.com, david.marchand@redhat.com, hernan.vargas@intel.com, stable@dpdk.org, Nicolas Chautru Subject: [PATCH v3 10/10] test/bbdev: update python script parameters Date: Fri, 3 Nov 2023 23:34:13 +0000 Message-Id: <20231103233413.756110-11-nicolas.chautru@intel.com> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20231103233413.756110-1-nicolas.chautru@intel.com> References: <20231103233413.756110-1-nicolas.chautru@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Update the timeout argument and default values. Update EAL help message and default value. Add iter_max and snr arguments. Until next release we keep -t as a possible command-line argument for time-out, until -t becomes the argument for iter-max so that to match the binary command-line argument. Signed-off-by: Nicolas Chautru --- app/test-bbdev/test-bbdev.py | 26 +++++++++++++++++++++++--- app/test-bbdev/test_bbdev_perf.c | 2 +- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/app/test-bbdev/test-bbdev.py b/app/test-bbdev/test-bbdev.py index 02c678a360..463de9ce05 100755 --- a/app/test-bbdev/test-bbdev.py +++ b/app/test-bbdev/test-bbdev.py @@ -25,12 +25,18 @@ def kill(process): help="specifies path to the bbdev test app", default=dpdk_path + "/" + dpdk_target + "/app/dpdk-test-bbdev") parser.add_argument("-e", "--eal-params", - help="EAL arguments which are passed to the test app", - default="--vdev=baseband_null0") + help="EAL arguments which must be passed to the test app", + default="--vdev=baseband_null0 -a00:00.0") +# Until deprecated in next release keep -t as an valid argument for timeout, then use -T parser.add_argument("-t", "--timeout", type=int, help="Timeout in seconds", - default=300) + default=600) +# This will become -t option for iter_max in next release +parser.add_argument("-x", "--iter-max", + type=int, + help="Max iterations", + default=6) parser.add_argument("-c", "--test-cases", nargs="+", help="Defines test cases to run. Run all if not specified") @@ -48,6 +54,10 @@ def kill(process): type=int, help="Operations enqueue/dequeue burst size.", default=[32]) +parser.add_argument("-s", "--snr", + type=int, + help="SNR in dB for BLER tests", + default=0) parser.add_argument("-l", "--num-lcores", type=int, help="Number of lcores to run.", @@ -68,6 +78,16 @@ def kill(process): params.extend(["--"]) +if args.snr: + params.extend(["-s", str(args.snr)]) + +if args.iter_max: + params.extend(["-t", str(args.iter_max)]) + print("The argument for iter_max will be -t in next release") + +if args.timeout: + print("The argument for timeout will be -T in next release") + if args.num_ops: params.extend(["-n", str(args.num_ops)]) diff --git a/app/test-bbdev/test_bbdev_perf.c b/app/test-bbdev/test_bbdev_perf.c index 426c24a536..67cd429cef 100644 --- a/app/test-bbdev/test_bbdev_perf.c +++ b/app/test-bbdev/test_bbdev_perf.c @@ -26,7 +26,7 @@ #define MAX_QUEUES RTE_MAX_LCORE #define TEST_REPETITIONS 100 -#define TIME_OUT_POLL 1e8 +#define TIME_OUT_POLL 1e9 #define WAIT_OFFLOAD_US 1000 #ifdef RTE_BASEBAND_FPGA_LTE_FEC -- 2.34.1