From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-BL2-obe.outbound.protection.outlook.com (mail-bl2nam02on0070.outbound.protection.outlook.com [104.47.38.70]) by dpdk.org (Postfix) with ESMTP id E9EB6F6A8 for ; Fri, 3 Mar 2017 15:12:01 +0100 (CET) Received: from BN3PR0301CA0067.namprd03.prod.outlook.com (10.160.152.163) by CH1PR03MB1947.namprd03.prod.outlook.com (10.164.115.163) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.919.13; Fri, 3 Mar 2017 14:12:00 +0000 Received: from BN1BFFO11FD021.protection.gbl (2a01:111:f400:7c10::1:188) by BN3PR0301CA0067.outlook.office365.com (2a01:111:e400:401e::35) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12 via Frontend Transport; Fri, 3 Mar 2017 14:12:00 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=nxp.com; nxp.com; dkim=none (message not signed) header.d=none;nxp.com; dmarc=fail action=none header.from=nxp.com; Received-SPF: Fail (protection.outlook.com: domain of nxp.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BN1BFFO11FD021.mail.protection.outlook.com (10.58.144.84) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.933.11 via Frontend Transport; Fri, 3 Mar 2017 14:11:59 +0000 Received: from netperf2.ap.freescale.net ([10.232.133.164]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id v23EB3li010625; Fri, 3 Mar 2017 07:11:56 -0700 From: Akhil Goyal To: CC: , , , , , Akhil Goyal Date: Sat, 4 Mar 2017 01:06:47 +0530 Message-ID: <20170303193648.30665-18-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170303193648.30665-1-akhil.goyal@nxp.com> References: <20170120140509.4495-1-akhil.goyal@nxp.com> <20170303193648.30665-1-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131330239199075665; (91ab9b29-cfa4-454e-5278-08d120cd25b8); () X-Forefront-Antispam-Report: CIP:192.88.168.50; IPV:NLI; CTRY:US; EFV:NLI; SFV:NSPM; SFS:(10009020)(6009001)(336005)(7916002)(39380400002)(39400400002)(39860400002)(39410400002)(39850400002)(39840400002)(39450400003)(2980300002)(1110001)(1109001)(339900001)(189002)(199003)(9170700003)(5660300001)(356003)(38730400002)(110136004)(36756003)(92566002)(2950100002)(6916009)(86362001)(105606002)(8676002)(50226002)(626004)(2906002)(104016004)(305945005)(50986999)(81166006)(53936002)(8936002)(6666003)(50466002)(76176999)(5003940100001)(48376002)(189998001)(8656002)(33646002)(77096006)(85426001)(2351001)(47776003)(4326008)(54906002)(1076002)(106466001); DIR:OUT; SFP:1101; SCL:1; SRVR:CH1PR03MB1947; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; MX:1; A:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD021; 1:p4rvlgZi1QBOiL44RnSqxJ02On36HR+2q0uYyUsBqbpphI1oS26Teo/6SmBjaperF4SPBURgwkqD2uOcI6X9S1uWmRk1OypJ2ufFRl7StHDLIpUT0267ddISfsw/VmjfEp8qYbpAYEDBWvngpFOpLau8nO0sYQ70mC7epXtYnz8SJ3bJVREwtxlSKOagJE48sowMGz+5DY18LHjfmE9zHPYBXxfG19q2vsylUQPz6PnzEcmwD9jHyZQcw/Xz7Bjm1BTmJuydp+RL4ZifTtC3aHY7WY6TfD+K3acFrK/bMVC/EN4k8sH6fT7MkoFiB/51UPm4eiNdl7XVZjS+p06in+i+YhBy53hqXWV5fOd7t2oXP+hv4Y28oIoDGTH9ARbJPbY4vglfRzOvOBcrVMZzIozLDLGqov31f1ahJKDIJMn8JY77z428AGacoHn7JFDEuodx0UB2rBHyN0f2cBE9v6atpU8icqeiABvu4OR0HkdtCF3VUESaqvFrbcuOtoADCbirLIH7rUjiF3LWIaxER3bIM8ozHywM7b1HGqC7/yqkcZs/7KtZUWEjaO7m8exeeeDolqpIgZ6j4Dev5ekJEmqe2GX5T/IEKF3fqkJK+U/8I5E7EISf4mlkak5sgT2bIhOAsnR6LLgNFQ/1eiJ5dsYhach0ogBqGvHqMCHjrWr+JkSuncOLMviGYZI+oxbNfJHKNksrA4aX67HJmlRYpIG8yO3+xVNj/LFfYu9RSeAYzswtF9+kWwsuOLSUwJnc MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: 85ad5c12-8c9e-40af-fbf0-08d4623f422e X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CH1PR03MB1947; X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1947; 3:M1SC4MEMawqFBm51EJo0b3t6n0UpjlKzLETOmuEhRfLAyiKgYBoruaYdnk9TchEjpNknDCRIyLyXlKe3cRNovXtjjW/QsNFlX1h+YEYY26ylJn3b9SIK86JDVjBI+NTFGhmBlMUW4mhWauqKwsmtKyu7Ahp0FwrRIqeZd0mznbNqOivVsRmla4z2JyCj4asHbmd6p6f3xZtpRtmdftR1qCWv8T5Ifmb2CngRch2wjB5tMCgmZ/jKLDVNnxN11dO4PWyFTsc5scWHxQxdjTpOZOPHlu4dshGGcfhQ3N9oqjEME7xtMNjjq+x6dkRY4Az8zhDwAjKWD7mTIpHJWuZMv3LrDyAvUmFE2MuAQKaeO+JRsGRW9cvdslDpEC4eCHWr; 25:pzt0K2jjPS6leqxgvHC1ILGRNaVwric6DgancbhgytC9kKjT+kD7Aob0az448VK5UcnzBx9ZDcWbLE4fSHDzecOqnxV3i+wQAmPjO0cbNI37snxHaCk9ylII179jD5yB0LJSNpfUog9YY8+xMDZyB2cJJWclY/SdtVD5aaGHakzbi7LF1RYDm7k+zd7YLFw/2LdLcYZa6TiYbHYAHLSlW4OtOLQ7PQ6I9+JKJkL6m7s2EsUkhUnkI9HqC3q44vF8dMUHSUfxxFGsoIr2P/womL0xV794OWgmscdYE2yk5n+EZhc1zhG5DdTJVy6dZQb5/YFTW/xV2LJkiWhjlfCh+BszSYJcPMRznkpjNSzoPe5AhMdBR50/bTaLEsOtHyR+jy3UPCfa+h8OjOGlZmNykUsXU1V5fpnWrTcn1e+sUL34nO1Q893hNuKlyNRO9t2+T5tS8cMN8B7HNKLkfW5f1A== X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1947; 31:yZ1ZOPFt997VOIAR6fM6k99YPpwGUoz3vpdIQQDCrLsRsseW0rXjmyjLoISjQXFfOMFUFy34zMKsoruFGe7dnhLxJ6le8pWwIa6Pus+pX7rBhgVijUX3mrrQulYO4+dl6BHpIf4r64vxBJfIPuYpunxKW/MsujXHCKPM9vKGFkhQyLcRL5JhOTGCATCaF5D0U3dOzdfuwIv4lgI/xlAkOaIQlTSm2Rw6bz9ansfafWqgy3c/ptdJ48xHrp/2BBBLk29+UakSRZ+HXpYPBUCQ1ZULFOzeu0QKKFtvMfk+zfE= X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:(185117386973197); X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(6095060)(601004)(2401047)(8121501046)(5005006)(13017025)(13015025)(13024025)(13018025)(13023025)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123559025)(20161123565025)(20161123563025)(20161123556025); SRVR:CH1PR03MB1947; BCL:0; PCL:0; RULEID:(400006); SRVR:CH1PR03MB1947; X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1947; 4:B2wnYLgvDv3IiE7y2BpLV/ntt/wLm9eAHrGoKFA6b2NEBM8iGLt3XaOE1gKToxD5WvUIqahoA1xq2X93JOh1WVavIgSQRvxwhS8HieI8sHY9My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Dcj+t+lL2oBxZLUYi4qpXIhXkv4MXmT1dOli35ZIv5YfCzKBu/?= =?us-ascii?Q?rLlysIJ84UGaJLDe624gPY4ODvG8o0X4ipcHmMhb+QhLQXDYUicvJv/ov3TA?= =?us-ascii?Q?iZS/keuYIrj/BmIByCA+z/krTfMzwDvLjecEHLfCvgIYXFyxjHKKaOYsm5YM?= =?us-ascii?B?UT09?= X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1947; 6:3qtBxcX68nnz0+Lz7C+oYrxO207qHfPFEDTgsajuHMIkigNgkYbFYrXPWhO1JtQ94EoTIn0UlRrastL2zGO+WoDZrq3Uc99WpFEhcRU32R8iASFWMOAKa/AZsGIX5b0FnWjg01jBwyoTsbKjYJcoz7Z13BDmNllr5hE//v+3fgeZWgjKKMWRQpaIL4U64u4SO3wlcfAPmOTre1YCLDNC35/ObQDuwkqTAG8UDBEioKArdUoXoB1kz4N0WMhZy8KyDurmbvA0FIx65O/GTQ0qvvfrgkMiX3CS81HFEaJzKBeEUjHizEre/Cl+VhEXbDZ+5WUj/9+kOXHbSRIbUjbofaRIh8FFvwVpmOxieQVvVuUDa8jSLri16S+N3JNlCZ3+B1MTUbw64YuWjrEMSyyEhBIKWGpTg1F7NHtDtmmv5Vg=; 5:xVeorHmVMVQwggX7uRLtTnpBTg/HJiHuxKTlgGZl085y0urhq98huYwqBmfKleGQMm/6EaZpAcsg8BxNQLZAGn/3KKwfMG2UPXoZSUCAP+4G81qiPsm1cJrsEpH5MyZZJFDwlEKqvqC8uH0oJuPrNADc4aFdKc5bnU0aUQanb7ONWS8NOWfPBSDOi3+S04ea; 24:x/tbFPsmlXzV9JCtPc4cKoaEPqx6MeVAXhO7ZMI9Vu8IkADK7h8TfLZQJljpI8ajwPv0pqCIK/JKkOn9FjoDCRszwlyTEXk6wjyk9LpfdoM= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CH1PR03MB1947; 7:2sETY9Y/M+VpGOvYHZyWbX1WDL678cJwDxKhsyYh9iQkNlgk2JEQKt6Dhd6GAsa7idiTcb99YpHiaDeF2NLmII/L5gUv4y5z3libYJe4QJjGlnsehsFIVJoywt8qmTMn7UcuJRMNWamtxbQ98QoTLpXdfOebjrDgJsjbXOrElgjCV++W4A7qJy4ucsBytN/vYYP8Z3H8gI647jFuA0OcqZROA8ArMTlR9Vn3k74KfGfZwXMueNH528sjq+WvD39ErcC14m+Ll/vo8VEYI5JvDcMvLhcWjW18Ar/3mobaiF6mZpJKJbPNaTkcM/ayapNq0B9WStcPZ+Otb3+6Woo9xA== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:11:59.7047 (UTC) X-MS-Exchange-CrossTenant-Id: 5afe0b00-7697-4969-b663-5eab37d5f47e X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=5afe0b00-7697-4969-b663-5eab37d5f47e; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CH1PR03MB1947 Subject: [dpdk-dev] [PATCH v4 12/12] app/test: add dpaa2_sec crypto functional test X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 03 Mar 2017 14:12:02 -0000 Signed-off-by: Akhil Goyal Reviewed-by: Hemant Agrawal --- app/test/test_cryptodev.c | 106 ++++++++++++++++++++++++++++++++++ app/test/test_cryptodev_blockcipher.c | 3 + app/test/test_cryptodev_blockcipher.h | 1 + 3 files changed, 110 insertions(+) diff --git a/app/test/test_cryptodev.c b/app/test/test_cryptodev.c index 357a92e..0b39c2d 100644 --- a/app/test/test_cryptodev.c +++ b/app/test/test_cryptodev.c @@ -1680,6 +1680,38 @@ test_AES_cipheronly_qat_all(void) } static int +test_AES_chain_dpaa2_sec_all(void) +{ + struct crypto_testsuite_params *ts_params = &testsuite_params; + int status; + + status = test_blockcipher_all_tests(ts_params->mbuf_pool, + ts_params->op_mpool, ts_params->valid_devs[0], + RTE_CRYPTODEV_DPAA2_SEC_PMD, + BLKCIPHER_AES_CHAIN_TYPE); + + TEST_ASSERT_EQUAL(status, 0, "Test failed"); + + return TEST_SUCCESS; +} + +static int +test_AES_cipheronly_dpaa2_sec_all(void) +{ + struct crypto_testsuite_params *ts_params = &testsuite_params; + int status; + + status = test_blockcipher_all_tests(ts_params->mbuf_pool, + ts_params->op_mpool, ts_params->valid_devs[0], + RTE_CRYPTODEV_DPAA2_SEC_PMD, + BLKCIPHER_AES_CIPHERONLY_TYPE); + + TEST_ASSERT_EQUAL(status, 0, "Test failed"); + + return TEST_SUCCESS; +} + +static int test_authonly_openssl_all(void) { struct crypto_testsuite_params *ts_params = &testsuite_params; @@ -4333,6 +4365,38 @@ test_DES_cipheronly_qat_all(void) } static int +test_3DES_chain_dpaa2_sec_all(void) +{ + struct crypto_testsuite_params *ts_params = &testsuite_params; + int status; + + status = test_blockcipher_all_tests(ts_params->mbuf_pool, + ts_params->op_mpool, ts_params->valid_devs[0], + RTE_CRYPTODEV_DPAA2_SEC_PMD, + BLKCIPHER_3DES_CHAIN_TYPE); + + TEST_ASSERT_EQUAL(status, 0, "Test failed"); + + return TEST_SUCCESS; +} + +static int +test_3DES_cipheronly_dpaa2_sec_all(void) +{ + struct crypto_testsuite_params *ts_params = &testsuite_params; + int status; + + status = test_blockcipher_all_tests(ts_params->mbuf_pool, + ts_params->op_mpool, ts_params->valid_devs[0], + RTE_CRYPTODEV_DPAA2_SEC_PMD, + BLKCIPHER_3DES_CIPHERONLY_TYPE); + + TEST_ASSERT_EQUAL(status, 0, "Test failed"); + + return TEST_SUCCESS; +} + +static int test_3DES_cipheronly_qat_all(void) { struct crypto_testsuite_params *ts_params = &testsuite_params; @@ -8087,6 +8151,40 @@ static struct unit_test_suite cryptodev_sw_zuc_testsuite = { } }; +static struct unit_test_suite cryptodev_dpaa2_sec_testsuite = { + .suite_name = "Crypto DPAA2_SEC Unit Test Suite", + .setup = testsuite_setup, + .teardown = testsuite_teardown, + .unit_test_cases = { + TEST_CASE_ST(ut_setup, ut_teardown, + test_device_configure_invalid_dev_id), + TEST_CASE_ST(ut_setup, ut_teardown, + test_multi_session), + + TEST_CASE_ST(ut_setup, ut_teardown, + test_AES_chain_dpaa2_sec_all), + TEST_CASE_ST(ut_setup, ut_teardown, + test_3DES_chain_dpaa2_sec_all), + TEST_CASE_ST(ut_setup, ut_teardown, + test_AES_cipheronly_dpaa2_sec_all), + TEST_CASE_ST(ut_setup, ut_teardown, + test_3DES_cipheronly_dpaa2_sec_all), + + /** HMAC_MD5 Authentication */ + TEST_CASE_ST(ut_setup, ut_teardown, + test_MD5_HMAC_generate_case_1), + TEST_CASE_ST(ut_setup, ut_teardown, + test_MD5_HMAC_verify_case_1), + TEST_CASE_ST(ut_setup, ut_teardown, + test_MD5_HMAC_generate_case_2), + TEST_CASE_ST(ut_setup, ut_teardown, + test_MD5_HMAC_verify_case_2), + + TEST_CASES_END() /**< NULL terminate unit test array */ + } +}; + + static struct unit_test_suite cryptodev_null_testsuite = { .suite_name = "Crypto Device NULL Unit Test Suite", .setup = testsuite_setup, @@ -8210,6 +8308,13 @@ REGISTER_TEST_COMMAND(cryptodev_scheduler_autotest, test_cryptodev_scheduler); #endif +static int +test_cryptodev_dpaa2_sec(void /*argv __rte_unused, int argc __rte_unused*/) +{ + gbl_cryptodev_type = RTE_CRYPTODEV_DPAA2_SEC_PMD; + return unit_test_suite_runner(&cryptodev_dpaa2_sec_testsuite); +} + REGISTER_TEST_COMMAND(cryptodev_qat_autotest, test_cryptodev_qat); REGISTER_TEST_COMMAND(cryptodev_aesni_mb_autotest, test_cryptodev_aesni_mb); REGISTER_TEST_COMMAND(cryptodev_openssl_autotest, test_cryptodev_openssl); @@ -8219,3 +8324,4 @@ REGISTER_TEST_COMMAND(cryptodev_sw_snow3g_autotest, test_cryptodev_sw_snow3g); REGISTER_TEST_COMMAND(cryptodev_sw_kasumi_autotest, test_cryptodev_sw_kasumi); REGISTER_TEST_COMMAND(cryptodev_sw_zuc_autotest, test_cryptodev_sw_zuc); REGISTER_TEST_COMMAND(cryptodev_sw_armv8_autotest, test_cryptodev_armv8); +REGISTER_TEST_COMMAND(cryptodev_dpaa2_sec_autotest, test_cryptodev_dpaa2_sec); diff --git a/app/test/test_cryptodev_blockcipher.c b/app/test/test_cryptodev_blockcipher.c index da87368..e3b7765 100644 --- a/app/test/test_cryptodev_blockcipher.c +++ b/app/test/test_cryptodev_blockcipher.c @@ -653,6 +653,9 @@ test_blockcipher_all_tests(struct rte_mempool *mbuf_pool, case RTE_CRYPTODEV_SCHEDULER_PMD: target_pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER; break; + case RTE_CRYPTODEV_DPAA2_SEC_PMD: + target_pmd_mask = BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC; + break; default: TEST_ASSERT(0, "Unrecognized cryptodev type"); break; diff --git a/app/test/test_cryptodev_blockcipher.h b/app/test/test_cryptodev_blockcipher.h index 053aaa1..921dc07 100644 --- a/app/test/test_cryptodev_blockcipher.h +++ b/app/test/test_cryptodev_blockcipher.h @@ -52,6 +52,7 @@ #define BLOCKCIPHER_TEST_TARGET_PMD_OPENSSL 0x0004 /* SW OPENSSL flag */ #define BLOCKCIPHER_TEST_TARGET_PMD_ARMV8 0x0008 /* ARMv8 flag */ #define BLOCKCIPHER_TEST_TARGET_PMD_SCHEDULER 0x0010 /* Scheduler */ +#define BLOCKCIPHER_TEST_TARGET_PMD_DPAA2_SEC 0x0020 /* DPAA2_SEC flag */ #define BLOCKCIPHER_TEST_OP_CIPHER (BLOCKCIPHER_TEST_OP_ENCRYPT | \ BLOCKCIPHER_TEST_OP_DECRYPT) -- 2.9.3