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 8751542609; Tue, 19 Sep 2023 16:15:15 +0200 (CEST) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 8DE4840ECF; Tue, 19 Sep 2023 16:15:12 +0200 (CEST) Received: from mgamail.intel.com (mgamail.intel.com [192.55.52.43]) by mails.dpdk.org (Postfix) with ESMTP id 0A8B040ED9 for ; Tue, 19 Sep 2023 16:15:07 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1695132909; x=1726668909; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=VxqIqqeDpYlgSj+hQ1Ywh0GRkS3P2ZUxphY4CnEJcA4=; b=mvBKiYFiEVHWMjI4FlW+PUTZq74WfLRRAj24YJWTyllxJIskUCVWTDWC FIceNppfvbGZiQIe+g9yV3Eu5RrJKep/SATUNSuVnlYfm+sWWC1XcZ39B oq0kAQvjwn1SUFIsRKsQM5cgE0Hdlx6sZEqpe8wDyYWjcynMAKyo4k2JK kk10sX2aghYloI/rkXdV5OsH5qAAej3C67AECd6N19VI6JmDL5T83F5hp C2+MknMatTMq2DJF07V9gZwEF42xLhxxXpnZ2cL5ILSWh7RFEHyxkErDI 3VhfAXrO33aHiSN/UEQyDjklGuFdZTU3NFIttLP+NU603hK1ZOFkEzERG Q==; X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="466276455" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="466276455" Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 19 Sep 2023 07:15:07 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=McAfee;i="6600,9927,10838"; a="775570049" X-IronPort-AV: E=Sophos;i="6.02,159,1688454000"; d="scan'208";a="775570049" Received: from silpixa00399912.ir.intel.com (HELO silpixa00399912.ger.corp.intel.com) ([10.237.222.220]) by orsmga008.jf.intel.com with ESMTP; 19 Sep 2023 07:15:05 -0700 From: David Coyle To: dev@dpdk.org Cc: kai.ji@intel.com, anoobj@marvell.com, jerinj@marvell.com, ciara.power@intel.com, kevin.osullivan@intel.com, David Coyle Subject: [PATCH v4 2/2] test/crypto: add DOCSIS security tests for cryptodev scheduler Date: Tue, 19 Sep 2023 14:14:40 +0000 Message-Id: <20230919141440.39305-3-david.coyle@intel.com> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20230919141440.39305-1-david.coyle@intel.com> References: <20230914152207.19794-1-david.coyle@intel.com> <20230919141440.39305-1-david.coyle@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 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 5b2a908a6f..5de4c737a3 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; } -- 2.25.1