From patchwork Thu Sep 14 15:22:07 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Coyle, David" X-Patchwork-Id: 131435 X-Patchwork-Delegate: gakhil@marvell.com Return-Path: X-Original-To: patchwork@inbox.dpdk.org Delivered-To: patchwork@inbox.dpdk.org Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id 80AF742598; Thu, 14 Sep 2023 17:37:00 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id E64F640A6B; Thu, 14 Sep 2023 17:36:54 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [134.134.136.24]) by mails.dpdk.org (Postfix) with ESMTP id 33B7240293 for ; Thu, 14 Sep 2023 17:36:53 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1694705813; x=1726241813; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=rTOFnLjL4y64XTnPC/1erSoQsY8lVqhgSHiau7E5gwk=; b=SlQczl4p8YSnEv/CWWeze4lzbZrGkfFgGIdaG3HjdpnQ6FE+LMV8oHK+ 8WV5E6VPFMC7fG/VHdZWT/DLH7hn09e/3wqDYmOc5ZFrF57u5ud53n6o9 uJDoD0Yovz53b1CMOMvRwrqizF8spgihRwqg+1jjEKjfRq51vKQHoi/UJ /mQdMrttyPM3V2OiWBiXIbtw4nlTk2hmOUm2rNuFMD8+wGJynmkeqkRku 5LNu47wd1aI9tTr5gkRpnYkgJ6cdVQgvnLLNBLaJbSTv/jEposZsBRGC/ 8s/9vPbZfwG9Nh0K1dD0tCA68vcomY6HTME1fkc1aN8kuBQolzVUTKThT g==; X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="381697772" X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="scan'208";a="381697772" Received: from fmsmga005.fm.intel.com ([10.253.24.32]) by orsmga102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 14 Sep 2023 08:22:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10833"; a="1075429156" X-IronPort-AV: E=Sophos;i="6.02,146,1688454000"; d="scan'208";a="1075429156" Received: from silpixa00399912.ir.intel.com (HELO silpixa00399912.ger.corp.intel.com) ([10.237.222.220]) by fmsmga005.fm.intel.com with ESMTP; 14 Sep 2023 08:22:34 -0700 From: David Coyle To: dev@dpdk.org Cc: kai.ji@intel.com, anoobj@marvell.com, kevin.osullivan@intel.com, David Coyle Subject: [PATCH v3 2/2] test/crypto: add DOCSIS security tests for cryptodev scheduler Date: Thu, 14 Sep 2023 15:22:07 +0000 Message-Id: <20230914152207.19794-3-david.coyle@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230914152207.19794-1-david.coyle@intel.com> References: <20230811102401.12552-1-david.coyle@intel.com> <20230914152207.19794-1-david.coyle@intel.com> MIME-Version: 1.0 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 Add DOCSIS security test cases to the cryptodev scheduler test suite. Signed-off-by: David Coyle Signed-off-by: Kevin O'Sullivan --- app/test/test_cryptodev.c | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 956268bfcd..582c70eaa5 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -17391,6 +17391,12 @@ test_cryptodev_scheduler(void) &scheduler_config, &end_testsuite }; + struct unit_test_suite *sched_mode_static_suites[] = { +#ifdef RTE_LIB_SECURITY + &docsis_proto_testsuite, +#endif + &end_testsuite + }; static struct unit_test_suite ts = { .suite_name = "Scheduler Unit Test Suite", .setup = scheduler_testsuite_setup, @@ -17416,9 +17422,13 @@ test_cryptodev_scheduler(void) uint8_t blk_i = 0; sched_mode_suites[sched_i]->unit_test_suites = malloc(sizeof (struct unit_test_suite *) * - (RTE_DIM(blk_suites) + 1)); + (RTE_DIM(blk_suites) + + RTE_DIM(sched_mode_static_suites) + 1)); ADD_BLOCKCIPHER_TESTSUITE(blk_i, (*sched_mode_suites[sched_i]), blk_suites, RTE_DIM(blk_suites)); + ADD_STATIC_TESTSUITE(blk_i, (*sched_mode_suites[sched_i]), + sched_mode_static_suites, + RTE_DIM(sched_mode_static_suites)); sched_mode_suites[sched_i]->unit_test_suites[blk_i] = &end_testsuite; }