From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-BY2-obe.outbound.protection.outlook.com (mail-by2nam01on0060.outbound.protection.outlook.com [104.47.34.60]) by dpdk.org (Postfix) with ESMTP id C8859F94A for ; Fri, 3 Mar 2017 15:12:04 +0100 (CET) Received: from CY1PR03CA0030.namprd03.prod.outlook.com (10.174.128.40) by DM5PR03MB2954.namprd03.prod.outlook.com (10.175.106.140) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P384) id 15.1.947.12; Fri, 3 Mar 2017 14:12:02 +0000 Received: from BL2FFO11FD026.protection.gbl (2a01:111:f400:7c09::163) by CY1PR03CA0030.outlook.office365.com (2603:10b6:600::40) 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:03 +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 BL2FFO11FD026.mail.protection.outlook.com (10.173.161.105) 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:12:02 +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 v23EB3lj010625; Fri, 3 Mar 2017 07:11:59 -0700 From: Akhil Goyal To: CC: , , , , , Akhil Goyal Date: Sat, 4 Mar 2017 01:06:48 +0530 Message-ID: <20170303193648.30665-19-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: 131330239223414259; (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)(7916002)(336005)(39450400003)(39860400002)(39400400002)(39410400002)(39840400002)(39380400002)(39850400002)(2980300002)(1109001)(1110001)(339900001)(199003)(189002)(9170700003)(305945005)(76176999)(53936002)(48376002)(92566002)(110136004)(38730400002)(47776003)(36756003)(8676002)(50466002)(50986999)(81166006)(50226002)(105606002)(8936002)(2906002)(626004)(2351001)(33646002)(1076002)(106466001)(86362001)(356003)(189998001)(2950100002)(6916009)(54906002)(6666003)(85426001)(5003940100001)(77096006)(104016004)(4326008)(8656002)(5660300001); DIR:OUT; SFP:1101; SCL:1; SRVR:DM5PR03MB2954; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:ovrnspm; A:1; MX:1; PTR:InfoDomainNonexistent; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; BL2FFO11FD026; 1:mI13WjQOEyg8M1UC36duUH3qJo7fVsU54jRypVAnRmh2M8PShQn+8RrmGGR+TcLV8HHp9mDq5nKzeS4a4SJTfW6PCqIvE7TrBMdeExVKqKF7gG1Kt+vZ6ZX9ETJh3UfcWfmQV6oxwGPYYlFKtJ6xjWR4d8TwJq6J1ilhtOSCy0f3BmgEhROa7jrHAos6kLzXuLYM4DGfaUchRfEVDhBelugTlZZ2Yfa0fulpd1Cg/PG0ExBNo06rlbO2Tt+kHOFs6DIiyW2u3wE1t61jxXo54PKNj8NrIbp2wM9GRVAEQ6J7CCOCp7kXblbpOJQCpjSJftyq8GwkE2VD8aDlIXn2ST/veJikn3c3NvDmMM7uRr+E9AINfvxqvUcLoIwLsUIzlm6Zp8az7fRr+LokFR278Ta0tfW3W8cvhxb10Eks5mH3ximlQDgtsz7e4L6ZJxJxpXRe7XkJPcqFn19uZwne/8J7iJHzEHhQbZvtk88izw68Si4MzXEjX+eIzh9Vuz5/kAbDQEJ4blJxf17kwSaY6SzJ1xY6COkdh9ZG/aGmtrx4s+stM4APfc2Xj2AbS9Jhs0HU5VluAxfgxDXXz4nRXFSpHKpJ7sBuLMGHw4VrQbp2qGECdBoBYJqHaI7g/Qdu2kGsnZDAQpx+v8aa9xTzvDiy9gutO43PbT0nrGUzUTHP0yk/NQrN7XJXwd6VAkyoB+5FJxBYd1qGSITlJV0amHyDUJFkm8LoimiIz0BVJVktQOe7/opQxLxUqdJxngMe MIME-Version: 1.0 Content-Type: text/plain X-MS-Office365-Filtering-Correlation-Id: c69c2a57-89a5-448a-bdf3-08d4623f43a4 X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001);SRVR:DM5PR03MB2954; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 3:8B/88PLgp/0q6LPVvFABTR96G8GZ3vwWv+JfV/vugyu7gUW8nbeXz2t4hzEJDYy6o9FPeel6qEVm/Fej5r3YYtywojhjIBFUaZ5DaXzmS4mcAgbZv6L0OdexhBbV4ENGsyDUngFzQtLSED51Y+9AclfwBAM8PTc6BUJG3vR/mYhuUkJrWLkjAb8C3SFA39wMP8uUhKbSIM1rRV2ru0nEU8ODmdq1e/ey8jSfc3awqnh9T/wmizfJ4+d+4PvudNJJB1sNhFVQdHfmsrh6kd1CfWj3EzDj8GYdzeqBJBZa2kkKgxttZ+QGHKd3DbPf+JrcRuG7hqsI1ensL0e8a6grp+8dsWJ/BwPFvriH35fgWpxutQQxkikdr+MRwJn/K1xH; 25:ssNmDbdhbEn330jN8CcUBzvLkRrItvYjde0ABYEm3gATn67lBZ1HxWgABzuII/PyF4jpkmkNvkJj9j23Ha3wmn0c2bLyVd6J4t6nF62fDhq9kEiPmyAnmcVeFGzfTzPqkt/kxEwlMnikPjIR4FW3ACmztXUlooNow0hIhKeQTppePtIURanyjhpQqLyzyGFLGEMDP02oYa6PQqhODGGeThtuJw8sXUHguskcG8jvAxRvjR/dkXSvOiOHg+/Proykbhp2mOA7cXVLR7zRMaGT+92hq1qfY+dlHyzyoO/gdnDHFplMOm0fFBd0PzRrmjIjgUOccqUS9CLBUdngHBy6fMsvl5DNInNcZC0HraYTFZlQsp2Tu/V21E9YwkcE4KFB8GHtUn4xnfAMBJT4NB4vz6cnDbcf3CriQifyJJ/lE6G5Uc/B+KdESKSJUN8WDifGKbJIXfl2NFl6veFbdAImTw== X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 31:40LMIlDvHEaaoxEhdPTZhr7kZqSOzXQrn6TpbfurUMieSFwkQHBWOI23/40QIJa5Vh2DaeNqGED1s1IvmEFrD7QCwk/k3LAK0KtxSFC3wRoyTKnFK9yKFSTljoPuswkyeE6580cPjySDt3s3WH+EWz/6J6X+UkbJHqHtKz0aGT2ZOD7Xp5zuEagOIsUutyaAP8QMoLBVIMDrapTdz3nLsMCBWn1asjdSg5j421kcEJZteikSqOD9s5e5jh4QaWxbWV/vBgHbu3j96I/cfpO06CWwpXXP4jNvqWXcQPOqiLw= 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)(13024025)(13023025)(8121501046)(5005006)(13018025)(3002001)(10201501046)(6055026)(6096035)(20161123561025)(20161123556025)(20161123565025)(20161123559025)(20161123563025); SRVR:DM5PR03MB2954; BCL:0; PCL:0; RULEID:(400006); SRVR:DM5PR03MB2954; X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 4:H+C6m2pfBXK7w9yupC91qHqe20aL8iS1KV3T/xiMiH0Lmn1ztjkcJyW0kUtjSin/jLtpAEXDZG1UZa3AFyyCu/TO+7teQAhtZMMgsZhHqTnXxAr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PZ1CEpzMubyQvUyFOBQ5?= =?us-ascii?Q?g41ldBHQ26u4+aSRo83zF7rF6aApCUkAFUs7THfjRs1RWEjySb4jXrfy8lxw?= =?us-ascii?Q?7G0/jSLYhZGxlXGcWxfkUTAltN2aTtEob5+8MI54WjPWmqFxwefrKEdo82da?= =?us-ascii?B?Zz09?= X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 6:h1OSmWkNuGIX6KOsfEjjR7cMoGh2IK+GryOG8YGySDczD/owVZpkCsdGIdji1Ddjo/YeF6sWKrIHtnY99ZntCNb8xXuIGSRkBN3kkv6S4ypuss1/Ys33UYB2F2/YZ4FvOpcSDaN4NN1Mx4PEwR8iFzKgiIkZneBK3PTTDe40mcOg5zKKgL9K1QAy1k4pY+H5phGEShxHQ5g2gVl9Ig+6ATUO1yOEED5Xvb5u0XzBKNp9TIeKvqBXEph6SJthhKynHGwLsSbPq0CZ+rvWThnflwuDCf58NiKTvMEn3YIw0INfVn3wbzZ+2gZZ7M8ebO1feMZ9qTk5AUY/g5s52ZpoQNh9SkpPkCkPINr5nzZZrOSFXGeJMpfN8iJ7UT6UdEkJcLi2lK0PLC/d47aVGgUk6BL/0RHz3k/4mmnWXLJwmEo=; 5:ftwuGGBBFMMTmqW0IKuoL0U16XfhHCZqXRmiwfNW+ly75Gw2gAYWJotxsCfg2IKO52ajs30eKHAw+w/M0mlQ74SwW8X35u5ey4rFoghIZovZYOwNUwQpzgi4eTR1z6nZtdNQ+mSC1fQULxuUgpxQf6XTtOf5RljCinoRzHjB8knoa6/d2/l8pPK2M99h6KkR; 24:wFBOzhDMR40kHiNaRNviQkA0oc5So0+/+fSzkw2+1EnYl+7mBs08Rk0iTRw+7qZEh3ZxgujZfaBy2vgc8ozkS+ARU7NphJC744omGLdorF4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-Microsoft-Exchange-Diagnostics: 1; DM5PR03MB2954; 7:ukuzkszjqxqOX2ms/6Xx0yN6HdXl9Qs77lHjrGyjwKxaqlEKFk1BfR5xOlm+46yY8gYaNHKY3qUKj1XGUO1MPZIO/iIEQ1V6/wjK9K+X6km2FoBXeUl0+mL/UV5oYsZbk/fMjY4FdWblMPkqiXu4bvPZKcbvZ+kYW8na2PpW1eQA9AUvHITwqavL1FTKbMunq3Z1clkqGfCUNJ3GnL4VFA9QlYWshjtMpCNP84XAQacAoM5HJicEbGNJZXj5g+ENWy+eG3+lNLLiXTK4U6Ctx/UPxOGaiK8M1HoY3E/090dIOCHjRFsBNni4No8Fw7nTH+YV8/QIAXejE+eEngBrVQ== X-MS-Exchange-CrossTenant-OriginalArrivalTime: 03 Mar 2017 14:12:02.1698 (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: DM5PR03MB2954 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:05 -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