From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM02-CY1-obe.outbound.protection.outlook.com (mail-cys01nam02on0040.outbound.protection.outlook.com [104.47.37.40]) by dpdk.org (Postfix) with ESMTP id DEA893DC for ; Fri, 3 Mar 2017 15:24:29 +0100 (CET) Received: from BLUPR0301CA0017.namprd03.prod.outlook.com (10.162.113.155) by CY4PR03MB2952.namprd03.prod.outlook.com (10.175.116.142) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.933.12; Fri, 3 Mar 2017 14:24:28 +0000 Received: from BN1BFFO11FD021.protection.gbl (2a01:111:f400:7c10::1:194) by BLUPR0301CA0017.outlook.office365.com (2a01:111:e400:5259::27) 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:24:28 +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:24:28 +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 v23ENi6f000351; Fri, 3 Mar 2017 07:24:24 -0700 From: Akhil Goyal To: CC: , , , , , , Akhil Goyal Date: Sat, 4 Mar 2017 01:19:35 +0530 Message-ID: <20170303194935.30831-13-akhil.goyal@nxp.com> X-Mailer: git-send-email 2.9.3 In-Reply-To: <20170303194935.30831-1-akhil.goyal@nxp.com> References: <20170303193648.30665-1-akhil.goyal@nxp.com> <20170303194935.30831-1-akhil.goyal@nxp.com> X-EOPAttributedMessage: 0 X-Matching-Connectors: 131330246682443635; (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)(39450400003)(39850400002)(39840400002)(39860400002)(39410400002)(2980300002)(1110001)(1109001)(339900001)(199003)(189002)(9170700003)(6666003)(2906002)(76176999)(77096006)(50986999)(356003)(8656002)(189998001)(2950100002)(36756003)(6916009)(5660300001)(47776003)(305945005)(50226002)(8936002)(4326008)(105606002)(48376002)(50466002)(104016004)(626004)(81166006)(106466001)(8676002)(92566002)(33646002)(86362001)(53936002)(1076002)(110136004)(85426001)(38730400002)(5003940100001)(54906002)(2351001); DIR:OUT; SFP:1101; SCL:1; SRVR:CY4PR03MB2952; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BN1BFFO11FD021; 1:60+5hrQJuDPM5KxwpX1esAzMvhodqBIXMJNDP48ArHh/r24LzB1nXNyjuXJMJp/f4dioddvrXOwr3fwJxSmZSukKXzexydEKWKs/uQUMcxLepqvmK4D7afBkJZeldetTosOJe4aUpkvOyV81mKJr/ogBeeKuV6jIfdZkN8iOBeNlKT0iHrz06mZLXZqxpBSUV0c11z+UClxJeIi9CzU7LQflgxwdai0CQ5tHC3tIs2xZzMb6exFP7W+GVZjfLcHC3kncuvfECD0wAKH3GvucvuMWsslYz0ADSPQuV6VAz9AYX7Rw8jOM3ICTsWYRCTFpv0DZUlw0kuxiyn7IOgsN2zxWlxLE68Tmw2aBVO+Dxp7r/tAPbtwUzpmrAyPCuS2+D/KIJxaEtX08wuu14ILov+eni7HOcUNbJ6TvfJKlmH4q3+QEgokfb5EAiKB5Yv/xxB/Q8WrSBiMGezkuQIoKjX/nMUr+Dm9hMJmPaPol9xewXVdZt9nWBMTQQz3YVgcPtOPXM9SMh8Ml4WlM2K2LL7zXqeQXVw6Xn3Hs9/evV+TIbYKBM75NtxTJLWPsOkQo+cezHhup3AqWPX6cqwnx/EcURuLoRGMH/XvjGogcQqsOVa9FMroB1WIRbV0hUqj4HAs/PO/ML31pRQ5NpxHzJlrJ+tCvvXcMTtvtsqa+Y57CjTYSsTV4KQ1sZL52KtvAAWBpjzktC1PEVaE2BGWGc9vyIoUxX7psQOYPzhz0N+4SEXhTwkOqOcXF475XGT5s MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: d549b8b1-dcd8-4679-1e12-08d46241003a X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:CY4PR03MB2952; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 3:VCuN4owkKHLeBWsAMLOVnCmE7Sv0AI6fo7tWDTYgLJyOhM7iCwNwP8Olv9CkJePU5SUa5tVvnL94JVp9fqhs9N0uZZzzKbsYb8LhbIC68LRtyIH6PMGElXkJ+zsn4glUIX5dxNoN5hDVHeutcPjYivH60D7VWo+d0Jt+QyJwn98uVaut2Y4Rc0mMANC7wIBifFP+RggfmYm4WTajYivytoHKiXkxLM39F5j8QThLLv8ZH0QhoLD+1ZOl6AZpHPC0KlIryzPRkFutuReu8E+nF7wqtmCYVqMRErH83OtJ4Mh2rID6ZUD2RQsMjqrruotepYRHO55J1tvPlPL9Pg5NHxiylLEG2yJycJx5HkIA54QHzMF+EqkYweKFE7gr7ZJ1; 25:DtgTDuEeNdOQnuHaMSps/XfasUxzJEJ4zbg1IaYBaC6g8120EGzX7ziU7i6QcOQpUdGtIZ8t9QEMsjNT7YUOW8axAdRiPmQWxn+4Qw4MfFX00X1YZeUW12MbRibxHW9YsQSp5aOf7H7LxUpSwjXW9i8TfNnXWl2hrmM2dDeTKvbrUOyaBKexXsqgydPHQrGhcRSqg/8Pho5f9OkfjAITTh0tU5AFl08XxmB4784yHX0FsiZC94mIcwK0F3USgsLMIdJo+Fab9B11J/cIfLvq8J7J+VB9dM2U92qjHkthoBZh3bKGXs0ucqlApXpJDp4sQ6TOBY1rjnIHxv3/Xac+dZgtKO0lTgQ4l2RPqiafq3fPIPqeELNJMvgshTvlNsEsDv8Yo8z8UFFEyqMOLb+w4T4vMQCT4IMxFLzTbejKnFHsrWnh5Ru1uGGvKrpTr+C1I0mbJ8AZrp22UBoEzh1BqA== X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 31:OlJeZrq3UHmbgpuISYesmIQYD/WewLmaaCA/YecPudxUzccmo+JNbSX0zlAiDdquvopx2v4cBvoTyodDBQzbGlIERYaNThF/nC2A+4hEZCc/FXgyRdeBjrROEmWjVs+R0+kJG2ahxL7OaHDWXY70c0/WL/COUI9eh6BtxExPrlzZny5sdlePHkndHlU5ezHdtd+11Ph9JyEi2lEnTx3wQqQYJTV+VeZI2OMnm7LtwmInQM1Pm6uKHkaA8PSgSJBLSj8dOpRmuSChOfN9qpEgzOmzwwA7pblPgzNE+enLKB0= 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)(13017025)(13015025)(13023025)(13024025)(13018025)(8121501046)(5005006)(3002001)(10201501046)(6055026)(6096035)(20161123559025)(20161123563025)(20161123561025)(20161123565025)(20161123556025); SRVR:CY4PR03MB2952; BCL:0; PCL:0; RULEID:(400006); SRVR:CY4PR03MB2952; X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 4:aOwq1fxxg0WUEsB7xzn1/SyW3rII0oCmdnA3CiVAJ1fLU66yikt7O+VdmGHWK+T2ABEmGjEA3OBr96tfHJ+k4Uyim7azsxJ+4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fOjKcPHsoQrfIXh+bWZYVToGO3astkCs?= =?us-ascii?Q?raJT49vlmG7IHF7J3rSyJTGWKZkYSl9WUV0ofq1CJ51u2oU2+HVjnIiwBS6N?= =?us-ascii?Q?sRfwXQ/T3UyRa5B2ZRf4o6Tx+nyO/UhXX0IduafzUnr1dIT/ap0lgmW/93Ti?= =?us-ascii?B?Zz09?= X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 6:Z6PFP8PLY4rAgguSSdPobDP4mSJ7K+AJIeHSMTzgvcowBSSBrKDHubrV9xAyYvj0OHudfnRwfmBVIJwB4tfnQ51szAURKV/ScYHgQSLqz2Z5cN+gzbsuA/KXZFvSJN53OlsRW/EtY6Y/xTIBsqApXStHT+1FFV3okENBB3X5406E72r0Xl2BK3PUtKzaJIbY3P3m+EIImSok0xBfcxFXnSaXoXB6szk8NoMPShZCl7N/BG7AIkbyjmkQYKDDs0rWOky8PsDeMbuEX2ugo0IL7Mrjp+k1K3a2u2Awj7uIig0sYz0GnwUhnerKdxsdR9gJL3CuxUh7yKeK8JoyZGiQW15btIZStK7XpCaOzFp3EsouzeYdDUSEJwo194Xphrgseu34hDFwVqs1tv0fR4eRKFmPWsT/IjvSCt926UoDWmc=; 5:bILoG6B65RDXpm9yIfoTfgNrZ5ZL2nrYcPd2Vu5OsyiVNNkvnfzJS5WADx5T7MyCK3L283+pfNFRIZ1cKK7oeRQCXmowIuZoxfACE4pGW7+4exnDx0OJQos6K0GAEqlO7O3pj5Y3VsZGqY3d+Amju8JLmhLI60P3Cx4YfR3u52sZK5up5v71hEGTGxeps9tA; 24:L8t4dfJW+Qi+SuNrvSIiOgGVc8YCaBXbS8myFc8+6TXVVmu2JiiHU+n8spXXgGhD5KJ9KRF4ncWAnLhwT28OGxU8WRLKbItRmE+TD5iRODo= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; CY4PR03MB2952; 7:Ta0gcxiD6hSQb4HJ31/8bx+TUVdRjFC616yT/++mf6CLd21QRzJX1mBLuEFoaFNS3N9Bj044gtzHSEcv27p0Oga7nNxFPKeTQYQ1za8yoQYNioLCmCQqexTfyXiHzoxNPOIqClIq65CG+cODBf5e3aIXWXGy7xqHuwPYhyAOZuCHbgjlRf1oUS6ocp8Y1hj+8E+Xf6b/o/a8YehjLtPcMEH85mBUHTPT5/5H+CEkKtVS7aqLgo7PxQswd8TkdrTmWPed/VW4Yp0a0Pi5qWsMFsLLPTOnS71wUpfwhPFDqC0gx2AyQ+SsA4Gn7/aMNuu5X40XLXA2qhOB7HcWqqO2dw== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:24:28.0259 (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: CY4PR03MB2952 Subject: [dpdk-dev] [PATCH v5 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:24:30 -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