From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM01-SN1-obe.outbound.protection.outlook.com (mail-sn1nam01on0072.outbound.protection.outlook.com [104.47.32.72]) by dpdk.org (Postfix) with ESMTP id 993001BE0 for ; Fri, 4 May 2018 12:09:04 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=CAVIUMNETWORKS.onmicrosoft.com; s=selector1-cavium-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=N6eqcJzRoycd6Meg4L1/gk8GTCYlOzc8FcpjGTGnWxo=; b=V2TyppMRpr4DNAiFQ8Pk9wNcG33O3Tb/emMw5pw7R8k1uSDTYJJbVkFj+qgV0k28hjYgZdIiUbPDR6BEPo9yG61DvlgI5laRPllcmoOX9Sm7sq5bIlWb56XZZ+LfzbvctiulgVJxFH3J9XH+vyoE2WDHUfmGxKY0U4lUFsHoL80= Received: from BY1PR0701MB1141.namprd07.prod.outlook.com (10.160.104.27) by BY1PR0701MB1751.namprd07.prod.outlook.com (10.162.141.13) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.715.18; Fri, 4 May 2018 10:09:01 +0000 Received: from BY1PR0701MB1141.namprd07.prod.outlook.com ([fe80::9890:36ad:54b6:6c99]) by BY1PR0701MB1141.namprd07.prod.outlook.com ([fe80::9890:36ad:54b6:6c99%13]) with mapi id 15.20.0715.024; Fri, 4 May 2018 10:09:01 +0000 From: "Kudupudi, Ugendreshwar" To: "Trahe, Fiona" , "users@dpdk.org" Thread-Topic: OpenSSL Crypto PMD Fails Thread-Index: AdPcmKDuSdbl3ARsREaArnsySieYQQBeHg6wAAAQ9LAAADlRQACYOqbwAMcZl/A= Date: Fri, 4 May 2018 10:09:00 +0000 Message-ID: References: <348A99DA5F5B7549AA880327E580B4358938E8F4@IRSMSX101.ger.corp.intel.com> <348A99DA5F5B7549AA880327E580B4358938E931@IRSMSX101.ger.corp.intel.com> In-Reply-To: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-originating-ip: [103.206.114.251] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BY1PR0701MB1751; 7:tuw2YJEzFil8YSPHZR97jqxtcBJ4nP3pANio648IPi9zckhwXwTgVDxX1BbKe3ZAkqvdKOVCScXtRFB3Z8JAxJGNN6NOEd0pMuIsy0/+bkFyvMdZhYGN1lVXF9T9AdYM9kMCQI2gS4hDPZjqyfs7E+f/ccjKS2iR3iEcNKjEc6G0syq4gNM3EPRAAB7oFFP4jxEEBV3iHeENN11OoAw3Rip+bSwF/AdUMOkW4SbOuQVhm77HupbD4CRup5c0wV8N x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BY1PR0701MB1751; x-ms-traffictypediagnostic: BY1PR0701MB1751: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ugendreshwar.Kudupudi@cavium.com; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(228905959029699); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(8211001083)(6040522)(2401047)(8121501046)(5005006)(3002001)(10201501046)(3231254)(944501410)(52105095)(93006095)(93001095)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123560045)(20161123564045)(20161123562045)(20161123558120)(6072148)(201708071742011); SRVR:BY1PR0701MB1751; BCL:0; PCL:0; RULEID:; SRVR:BY1PR0701MB1751; x-forefront-prvs: 06628F7CA4 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39860400002)(376002)(396003)(39380400002)(366004)(346002)(13464003)(189003)(199004)(81156014)(6116002)(81166006)(2906002)(93886005)(66066001)(3480700004)(72206003)(26005)(3846002)(86362001)(7736002)(305945005)(5660300001)(14454004)(478600001)(3280700002)(8676002)(102836004)(2900100001)(74316002)(33656002)(966005)(110136005)(8936002)(106356001)(186003)(6506007)(59450400001)(99286004)(76176011)(105586002)(446003)(11346002)(25786009)(7696005)(3660700001)(5250100002)(55016002)(2501003)(53546011)(316002)(53936002)(6246003)(229853002)(53946003)(68736007)(9686003)(476003)(97736004)(486006)(6306002)(6436002)(579004); DIR:OUT; SFP:1101; SCL:1; SRVR:BY1PR0701MB1751; H:BY1PR0701MB1141.namprd07.prod.outlook.com; FPR:; SPF:None; LANG:en; PTR:InfoNoRecords; MX:1; A:1; received-spf: None (protection.outlook.com: cavium.com does not designate permitted sender hosts) x-microsoft-antispam-message-info: XGiBZ2ZDdeuSnITgFINyDith0DpsG20R7F4avWguEj+qzv56YSSgJmY5VTQ99RbCR7a21GYkriCAFoa9F3J+gTjU4F8obnTrkaAYArM4TYncmdsE7er5r2b8BtNAaPbNgMKDfURn7t5Ojn4pm9gOiaBlppAXSNbwUym8UNDJYupp8vft2Q5TM96/xUawjxnd spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-MS-Office365-Filtering-Correlation-Id: 19d95bd2-67ca-40e0-dcaf-08d5b1a70eeb X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 19d95bd2-67ca-40e0-dcaf-08d5b1a70eeb X-MS-Exchange-CrossTenant-originalarrivaltime: 04 May 2018 10:09:00.8911 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BY1PR0701MB1751 Subject: Re: [dpdk-users] OpenSSL Crypto PMD Fails X-BeenThere: users@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK usage discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 04 May 2018 10:09:05 -0000 Hello Fiona After some digging in the code and correcting the command arguments, I got = it working. The example given in the dpdk documentation should be corrected= . sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 0-1 -n 4 --vdev "crypto_= openssl" -- -p 0x3 --chain CIPHER_HASH --cipher_op ENCRYPT --cipher_algo ae= s-cbc --cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f --cipher= _iv 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff --auth_op GENERATE --au= th_algo sha1-hmac --auth_key 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:1= 1:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:1= 1:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11 -ugen -----Original Message----- From: Kudupudi, Ugendreshwar=20 Sent: 30 April 2018 16:52 To: 'Trahe, Fiona' ; users@dpdk.org Subject: RE: OpenSSL Crypto PMD Fails Following is the log of autotest and l2fwd-crypto. RTE>>cryptodev_openssl_autotest + ------------------------------------------------------- + + Test Suite = : Crypto Device OPENSSL Unit Test Suite + --------------------------------= ----------------------- + + TestCase [ 0] : test_multi_session succeeded = + TestCase [ 1] : test_multi_session_random_usage succeeded 0) TestCase AES-128-CTR HMAC-SHA1 Encryption Digest PASS 1) TestCase AES-128-CTR HMAC-SHA1 Decryption Digest Verify PASS 2) TestCase AES-256-CTR HMAC-SHA1 Encryption Digest PASS 3) TestCase AES-256-CTR HMAC-SHA1 Decryption Digest Verify PASS 4) TestCase AES-128-CBC HMAC-SHA1 Encryption Digest PASS 5) TestCase AES-128-CBC HMAC-SHA1 Encryption Digest Scatter Gather PASS 6) TestCase AES-128-CBC HMAC-SHA1 Decryption Digest Verify PASS 7) TestCase AES-128-CBC HMAC-SHA256 Encryption Digest PASS 8) TestCase AES-128-CBC HMAC-SHA256 Decryption Digest Verify PASS 9) TestCase AES-128-CBC HMAC-SHA512 Encryption Digest PASS 10) TestCase AES-128-CBC HMAC-SHA512 Encryption Digest Sessionless PASS 11) TestCase AES-128-CBC HMAC-SHA512 Encryption Digest Scatter Gather Ses= sionless PASS 12) TestCase AES-128-CBC HMAC-SHA512 Decryption Digest Verify PASS 13) TestCase AES-128-CBC HMAC-SHA512 Decryption Digest Verify Scatter Gat= her PASS 14) TestCase AES-128-CBC HMAC-SHA1 Encryption Digest OOP PASS 15) TestCase AES-128-CBC HMAC-SHA1 Decryption Digest Verify OOP PASS 16) TestCase AES-128-CBC HMAC-SHA224 Encryption Digest PASS 17) TestCase AES-128-CBC HMAC-SHA224 Decryption Digest Verify PASS 18) TestCase AES-128-CBC HMAC-SHA384 Encryption Digest PASS 19) TestCase AES-128-CBC HMAC-SHA384 Decryption Digest Verify PASS 20) TestCase AES-128-CBC HMAC-SHA1 Encryption Digest Sessionless PASS 21) TestCase AES-128-CBC HMAC-SHA1 Decryption Digest Verify Sessionless P= ASS + TestCase [ 2] : test_AES_chain_openssl_all succeeded 0) TestCase AES-128-CBC Encryption PASS 1) TestCase AES-128-CBC Decryption PASS 2) TestCase AES-192-CBC Encryption PASS 3) TestCase AES-192-CBC Encryption Scater gather PASS 4) TestCase AES-192-CBC Decryption PASS 5) TestCase AES-256-CBC Encryption PASS 6) TestCase AES-256-CBC Decryption PASS 7) TestCase AES-256-CBC OOP Encryption PASS 8) TestCase AES-256-CBC OOP Decryption PASS 9) TestCase AES-128-CTR Encryption PASS 10) TestCase AES-128-CTR Decryption PASS 11) TestCase AES-192-CTR Encryption PASS 12) TestCase AES-192-CTR Decryption PASS 13) TestCase AES-256-CTR Encryption PASS 14) TestCase AES-256-CTR Decryption PASS + TestCase [ 3] : test_AES_ciph= eronly_openssl_all succeeded 0) TestCase 3DES-128-CBC HMAC-SHA1 Encryption Digest PASS 1) TestCase 3DES-128-CBC HMAC-SHA1 Decryption Digest Verify PASS 2) TestCase 3DES-128-CBC SHA1 Encryption Digest PASS 3) TestCase 3DES-128-CBC SHA1 Decryption Digest Verify PASS 4) TestCase 3DES-192-CBC HMAC-SHA1 Encryption Digest PASS 5) TestCase 3DES-192-CBC HMAC-SHA1 Decryption Digest Verify PASS 6) TestCase 3DES-192-CBC SHA1 Encryption Digest PASS 7) TestCase 3DES-192-CBC SHA1 Decryption Digest Verify PASS 8) TestCase 3DES-128-CTR HMAC-SHA1 Encryption Digest PASS 9) TestCase 3DES-128-CTR HMAC-SHA1 Decryption Digest Verify PASS 10) TestCase 3DES-128-CTR SHA1 Encryption Digest PASS 11) TestCase 3DES-128-CTR SHA1 Decryption Digest Verify PASS 12) TestCase 3DES-192-CTR HMAC-SHA1 Encryption Digest PASS 13) TestCase 3DES-192-CTR HMAC-SHA1 Decryption Digest Verify PASS 14) TestCase 3DES-192-CTR SHA1 Encryption Digest PASS 15) TestCase 3DES-192-CTR SHA1 Decryption Digest Verify PASS 16) TestCase 3DES-128-CBC HMAC-SHA1 Encryption Digest OOP PASS 17) TestCase 3DES-128-CBC HMAC-SHA1 Decryption Digest Verify OOP PASS 18) TestCase 3DES-128-CBC HMAC-SHA1 Encryption Digest Sessionless PASS 19) TestCase 3DES-128-CBC HMAC-SHA1 Decryption Digest Verify Sessionless = PASS + TestCase [ 4] : test_3DES_chain_openssl_all succeeded 0) TestCase 3DES-128-CBC Encryption PASS 1) TestCase 3DES-128-CBC Decryption PASS 2) TestCase 3DES-192-CBC Encryption PASS 3) TestCase 3DES-192-CBC Decryption PASS 4) TestCase 3DES-128-CTR Encryption PASS 5) TestCase 3DES-128-CTR Decryption PASS 6) TestCase 3DES-192-CTR Encryption PASS 7) TestCase 3DES-192-CTR Decryption PASS + TestCase [ 5] : test_3DES_cip= heronly_openssl_all succeeded 0) TestCase DES-CBC Encryption PASS 1) TestCase DES-CBC Decryption PASS + TestCase [ 6] : test_DES_cipheronly_openssl_all succeeded 0) TestCase DES-DOCSIS-BPI Full Block Encryption PASS 1) TestCase DES-DOCSIS-BPI Runt Block Encryption PASS 2) TestCase DES-DOCSIS-BPI Uneven Encryption PASS 3) TestCase DES-DOCSIS-BPI Full Block Decryption PASS 4) TestCase DES-DOCSIS-BPI Runt Block Decryption PASS 5) TestCase DES-DOCSIS-BPI Uneven Decryption PASS 6) TestCase DES-DOCSIS-BPI OOP Full Block Encryption PASS 7) TestCase DES-DOCSIS-BPI OOP Runt Block Encryption PASS 8) TestCase DES-DOCSIS-BPI OOP Uneven Encryption PASS 9) TestCase DES-DOCSIS-BPI OOP Full Block Decryption PASS 10) TestCase DES-DOCSIS-BPI OOP Runt Block Decryption PASS 11) TestCase DES-DOCSIS-BPI OOP Uneven Decryption PASS + TestCase [ 7] := test_DES_docsis_openssl_all succeeded 0) TestCase MD5 Digest PASS 1) TestCase MD5 Digest Verify PASS 2) TestCase HMAC-MD5 Digest PASS 3) TestCase HMAC-MD5 Digest Verify PASS 4) TestCase SHA1 Digest PASS 5) TestCase SHA1 Digest Verify PASS 6) TestCase HMAC-SHA1 Digest PASS 7) TestCase HMAC-SHA1 Digest Verify PASS 8) TestCase SHA224 Digest PASS 9) TestCase SHA224 Digest Verify PASS 10) TestCase HMAC-SHA224 Digest PASS 11) TestCase HMAC-SHA224 Digest Verify PASS 12) TestCase SHA256 Digest PASS 13) TestCase SHA256 Digest Verify PASS 14) TestCase HMAC-SHA256 Digest PASS 15) TestCase HMAC-SHA256 Digest Verify PASS 16) TestCase SHA384 Digest PASS 17) TestCase SHA384 Digest Verify PASS 18) TestCase HMAC-SHA384 Digest PASS 19) TestCase HMAC-SHA384 Digest Verify PASS 20) TestCase SHA512 Digest PASS 21) TestCase SHA512 Digest Verify PASS 22) TestCase HMAC-SHA512 Digest PASS 23) TestCase HMAC-SHA512 Digest Verify PASS + TestCase [ 8] : test_autho= nly_openssl_all succeeded + TestCase [ 9] : test_AES_GCM_authenticated_enc= ryption_test_case_1 succeeded + TestCase [10] : test_AES_GCM_authenticated= _encryption_test_case_2 succeeded + TestCase [11] : test_AES_GCM_authentic= ated_encryption_test_case_3 succeeded + TestCase [12] : test_AES_GCM_authe= nticated_encryption_test_case_4 succeeded + TestCase [13] : test_AES_GCM_a= uthenticated_encryption_test_case_5 succeeded + TestCase [14] : test_AES_G= CM_authenticated_encryption_test_case_6 succeeded + TestCase [15] : test_A= ES_GCM_authenticated_encryption_test_case_7 succeeded + TestCase [16] : te= st_AES_GCM_authenticated_decryption_test_case_1 succeeded + TestCase [17] = : test_AES_GCM_authenticated_decryption_test_case_2 succeeded + TestCase [= 18] : test_AES_GCM_authenticated_decryption_test_case_3 succeeded + TestCa= se [19] : test_AES_GCM_authenticated_decryption_test_case_4 succeeded + Te= stCase [20] : test_AES_GCM_authenticated_decryption_test_case_5 succeeded = + TestCase [21] : test_AES_GCM_authenticated_decryption_test_case_6 succeed= ed + TestCase [22] : test_AES_GCM_authenticated_decryption_test_case_7 suc= ceeded + TestCase [23] : test_AES_GCM_auth_encryption_test_case_192_1 succ= eeded + TestCase [24] : test_AES_GCM_auth_encryption_test_case_192_2 succe= eded + TestCase [25] : test_AES_GCM_auth_encryption_test_case_192_3 succee= ded + TestCase [26] : test_AES_GCM_auth_encryption_test_case_192_4 succeed= ed + TestCase [27] : test_AES_GCM_auth_encryption_test_case_192_5 succeede= d + TestCase [28] : test_AES_GCM_auth_encryption_test_case_192_6 succeeded= + TestCase [29] : test_AES_GCM_auth_encryption_test_case_192_7 succeeded = + TestCase [30] : test_AES_GCM_auth_decryption_test_case_192_1 succeeded = + TestCase [31] : test_AES_GCM_auth_decryption_test_case_192_2 succeeded += TestCase [32] : test_AES_GCM_auth_decryption_test_case_192_3 succeeded + = TestCase [33] : test_AES_GCM_auth_decryption_test_case_192_4 succeeded + T= estCase [34] : test_AES_GCM_auth_decryption_test_case_192_5 succeeded + Te= stCase [35] : test_AES_GCM_auth_decryption_test_case_192_6 succeeded + Tes= tCase [36] : test_AES_GCM_auth_decryption_test_case_192_7 succeeded + Test= Case [37] : test_AES_GCM_auth_encryption_test_case_256_1 succeeded + TestC= ase [38] : test_AES_GCM_auth_encryption_test_case_256_2 succeeded + TestCa= se [39] : test_AES_GCM_auth_encryption_test_case_256_3 succeeded + TestCas= e [40] : test_AES_GCM_auth_encryption_test_case_256_4 succeeded + TestCase= [41] : test_AES_GCM_auth_encryption_test_case_256_5 succeeded + TestCase = [42] : test_AES_GCM_auth_encryption_test_case_256_6 succeeded + TestCase [= 43] : test_AES_GCM_auth_encryption_test_case_256_7 succeeded + TestCase [4= 4] : test_AES_GCM_auth_decryption_test_case_256_1 succeeded + TestCase [45= ] : test_AES_GCM_auth_decryption_test_case_256_2 succeeded + TestCase [46]= : test_AES_GCM_auth_decryption_test_case_256_3 succeeded + TestCase [47] = : test_AES_GCM_auth_decryption_test_case_256_4 succeeded + TestCase [48] := test_AES_GCM_auth_decryption_test_case_256_5 succeeded + TestCase [49] : = test_AES_GCM_auth_decryption_test_case_256_6 succeeded + TestCase [50] : t= est_AES_GCM_auth_decryption_test_case_256_7 succeeded + TestCase [51] : te= st_AES_GMAC_authentication_test_case_1 succeeded + TestCase [52] : test_AE= S_GMAC_authentication_verify_test_case_1 succeeded + TestCase [53] : test_= AES_GMAC_authentication_test_case_2 succeeded + TestCase [54] : test_AES_G= MAC_authentication_verify_test_case_2 succeeded + TestCase [55] : test_AES= _GMAC_authentication_test_case_3 succeeded + TestCase [56] : test_AES_GMAC= _authentication_verify_test_case_3 succeeded + TestCase [57] : test_AES_GM= AC_authentication_test_case_4 succeeded + TestCase [58] : test_AES_GMAC_au= thentication_verify_test_case_4 succeeded + TestCase [59] : test_AES_CCM_a= uthenticated_encryption_test_case_128_1 succeeded + TestCase [60] : test_A= ES_CCM_authenticated_encryption_test_case_128_2 succeeded + TestCase [61] = : test_AES_CCM_authenticated_encryption_test_case_128_3 succeeded + TestCa= se [62] : test_AES_CCM_authenticated_decryption_test_case_128_1 succeeded = + TestCase [63] : test_AES_CCM_authenticated_decryption_test_case_128_2 suc= ceeded + TestCase [64] : test_AES_CCM_authenticated_decryption_test_case_1= 28_3 succeeded + TestCase [65] : test_AES_CCM_authenticated_encryption_tes= t_case_192_1 succeeded + TestCase [66] : test_AES_CCM_authenticated_encryp= tion_test_case_192_2 succeeded + TestCase [67] : test_AES_CCM_authenticate= d_encryption_test_case_192_3 succeeded + TestCase [68] : test_AES_CCM_auth= enticated_decryption_test_case_192_1 succeeded + TestCase [69] : test_AES_= CCM_authenticated_decryption_test_case_192_2 succeeded + TestCase [70] : t= est_AES_CCM_authenticated_decryption_test_case_192_3 succeeded + TestCase = [71] : test_AES_CCM_authenticated_encryption_test_case_256_1 succeeded + T= estCase [72] : test_AES_CCM_authenticated_encryption_test_case_256_2 succee= ded + TestCase [73] : test_AES_CCM_authenticated_encryption_test_case_256_= 3 succeeded + TestCase [74] : test_AES_CCM_authenticated_decryption_test_c= ase_256_1 succeeded + TestCase [75] : test_AES_CCM_authenticated_decryptio= n_test_case_256_2 succeeded + TestCase [76] : test_AES_CCM_authenticated_d= ecryption_test_case_256_3 succeeded + TestCase [77] : test_AES_GCM_auth_en= crypt_SGL_out_of_place_400B_1seg succeeded + TestCase [78] : authenticatio= n_verify_HMAC_SHA1_fail_data_corrupt succeeded + TestCase [79] : authentic= ation_verify_HMAC_SHA1_fail_tag_corrupt succeeded + TestCase [80] : authen= tication_verify_AES128_GMAC_fail_data_corrupt succeeded + TestCase [81] : = authentication_verify_AES128_GMAC_fail_tag_corrupt succeeded + TestCase [8= 2] : auth_decryption_AES128CBC_HMAC_SHA1_fail_data_corrupt succeeded + Tes= tCase [83] : auth_decryption_AES128CBC_HMAC_SHA1_fail_tag_corrupt succeeded= + ------------------------------------------------------- + + Test Suite= Summary + Tests Total : 84 + Tests Skipped : 0 + Tests Executed : 84 + Tests Unsupported: 0 + Tests Passed : 84 + Tests Failed : 0 + ------------------------------------------------------- + Test OK=20 RTE>>cryptodev_null_autotest + ------------------------------------------------------- + + Test Suite = : Crypto Device NULL Unit Test Suite CRYPTODEV: [crypto_null] - Creating cryptodev crypto_null CRYPTODEV: [crypto_null] - Initialisation parameters - name: crypto_null,so= cket id: 1, max queue pairs: 8, max sessions: 2048 + ---------------------= ---------------------------------- + + TestCase [ 0] : test_null_auth_only= _operation succeeded + TestCase [ 1] : test_null_cipher_only_operation suc= ceeded + TestCase [ 2] : test_null_cipher_auth_operation succeeded + Test= Case [ 3] : test_null_auth_cipher_operation succeeded CRYPTODEV: [crypto_null] null_crypto_pmd_session_configure() line 323: fail= ed configure session parameters CRYPTODEV: rte_cryptodev_sym_session_init() line 1111: dev_id 1 failed to c= onfigure session details CRYPTODEV: [crypto_null] null_crypto_pmd_session_configure() line 323: fail= ed configure session parameters CRYPTODEV: rte_cryptodev_sym_session_init() line 1111: dev_id 1 failed to c= onfigure session details + TestCase [ 4] : test_null_invalid_operation suc= ceeded + TestCase [ 5] : test_null_burst_operation succeeded + ----------= --------------------------------------------- + + Test Suite Summary + Tests Total : 6 + Tests Skipped : 0 + Tests Executed : 6 + Tests Unsupported: 0 + Tests Passed : 6 + Tests Failed : 0 + ------------------------------------------------------- + Test OK RTE>> sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 0-1 -n 4 --vdev crypto_o= penssl -- -p 0x3 --chain CIPHER_HASH --cipher_op ENCRYPT --cipher_algo AES_= CBC --cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f --iv 00:01= :02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff --auth_op GENERATE --auth_algo S= HA1_HMAC --auth_key 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:1= 1:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:1= 1:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11 EAL: Detected 28 lcore(s) ERROR: failed to parse device "crypto_openssl" EAL: Unable to parse device 'crypto_openssl' EAL: Error - exiting with code: 1 Cause: Invalid EAL arguments -ugen -----Original Message----- From: Trahe, Fiona [mailto:fiona.trahe@intel.com] Sent: 27 April 2018 16:01 To: Kudupudi, Ugendreshwar ; users@dpdk.o= rg Subject: RE: OpenSSL Crypto PMD Fails Have you tried the unit tests? make test-build cd build/build/test/test /test -l1 -n1 > cryptodev_openssl_autotest > cryptodev_null_autotest > -----Original Message----- > From: Kudupudi, Ugendreshwar [mailto:Ugendreshwar.Kudupudi@cavium.com] > Sent: Friday, April 27, 2018 11:24 AM > To: Trahe, Fiona ; users@dpdk.org > Subject: RE: OpenSSL Crypto PMD Fails >=20 > Yes. I did. >=20 > # Compile PMD for Software backed device=20 > CONFIG_RTE_LIBRTE_PMD_OPENSSL=3Dy CONFIG_RTE_LIBRTE_PMD_OPENSSL_DEBUG=3Dn >=20 > -ugen >=20 > -----Original Message----- > From: Trahe, Fiona [mailto:fiona.trahe@intel.com] > Sent: 27 April 2018 15:49 > To: Kudupudi, Ugendreshwar ; > users@dpdk.org > Subject: RE: OpenSSL Crypto PMD Fails >=20 > It's not enabled by default - have you enabled it in the config file? > sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_OPENSSL\)=3Dn,\1=3Dy,'=20 > $RTE_OUTPUT/.config >=20 > > -----Original Message----- > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Kudupudi,=20 > > Ugendreshwar > > Sent: Wednesday, April 25, 2018 2:24 PM > > To: users@dpdk.org > > Subject: [dpdk-users] OpenSSL Crypto PMD Fails > > > > Hello Team > > > > We are looking to execute the sample OpenSSL Crypto PMD and got the bel= ow error. > > > > Environment Details: > > ----------------------------- > > > > OS: Centos 7.3 (3.10.0) > > DPDK: 17.11.2 > > OpenSSL Version: 1.0.2k-fips > > Ethernet: Intel X710 > > Isolcpu: 0-3 > > Link: https://dpdk.org/doc/guides/cryptodevs/openssl.html > > > > Any help in resolving this issue is deeply appreciated. > > > > ----------------------------------------- log start > > -------------------------------------------------------------------- > > -- > > ------------ sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 0-1=20 > > -n > > 4 --vdev crypto_openssl -- -p 0x3 --chain CIPHER_HASH --cipher_op=20 > > ENCRYPT --cipher_algo AES_CBC --cipher_key=20 > > 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:0f --iv=20 > > 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0e:ff -- auth_op GENERATE=20 > > --auth_algo SHA1_HMAC --auth_key > > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:1= 1:11:11:11:11:11:11:11:11: > > 11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11:11 > > :1 > > 1:11:11:11:11:11:11:11 > > EAL: Detected 28 lcore(s) > > ERROR: failed to parse device "crypto_openssl" > > EAL: Unable to parse device 'crypto_openssl' > > EAL: Error - exiting with code: 1 > > Cause: Invalid EAL arguments > > ----------------------------------------- log end > > -------------------------------------------------------------------- > > -- > > ------------ > > > > > > > > We ran the NULL Crypto PMD successfully though. > > > > > > > > ----------------------------------------- log start > > -------------------------------------------------------------------- > > -- > > ------------ > > > > sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 1 -n 4 -- > > vdev=3Dcrypto_null,socket_id=3D0,max_nb_sessions=3D128 -- -p 1 --cdev S= W=20 > > --chain CIPHER_ONLY --cipher_algo null > > EAL: Detected 28 lcore(s) > > EAL: Probing VFIO support... > > EAL: VFIO support initialized > > EAL: PCI device 0000:01:00.0 on NUMA socket 0 > > EAL: probe driver: 8086:1521 net_e1000_igb > > EAL: PCI device 0000:01:00.1 on NUMA socket 0 > > EAL: probe driver: 8086:1521 net_e1000_igb > > EAL: PCI device 0000:02:00.0 on NUMA socket 0 > > EAL: probe driver: 8086:1572 net_i40e > > EAL: using IOMMU type 1 (Type 1) > > PMD: Global register is changed during enable FDIR flexible payload > > PMD: Global register is changed during support QinQ parser > > PMD: Global register is changed during configure hash input set > > PMD: Global register is changed during configure fdir mask > > PMD: Global register is changed during configure hash mask > > PMD: Global register is changed during support QinQ cloud filter > > PMD: Global register is changed during support TPID configuration > > EAL: PCI device 0000:02:00.1 on NUMA socket 0 > > EAL: probe driver: 8086:1572 net_i40e > > CRYPTODEV: [crypto_null] - Creating cryptodev crypto_null > > > > CRYPTODEV: [crypto_null] - Initialisation parameters - name: > > crypto_null,socket id: 0, max queue pairs: 8, max sessions: 128 MAC=20 > > updating enabled Initializing port 0... Port 0, MAC address: > > 3C:FD:FE:0D:1C:E0 > > > > > > Checking link > > status................................................................ > > ..........................done > > Port 0 Link Down > > Lcore 1: RX port 0 > > Allocated session pool on socket 0 > > Lcore 1: cryptodev 0 > > L2FWD: entering main loop on lcore 1 > > L2FWD: -- lcoreid=3D1 portid=3D0 > > L2FWD: -- lcoreid=3D1 cryptoid=3D0 > > Options:- > > nportmask: 1 > > ports per lcore: 1 > > refresh period : 10000 > > single lcore mode: disabled > > stats_printing: enabled > > sessionless crypto: disabled > > > > Crypto chain: Input --> Encrypt --> Output > > > > ---- Cipher information --- > > Algorithm: null > > Cipher key: at [0x7fedbff38080], len=3D0 > > IV: at [0x7fedbff34640], len=3D0 > > > > Port statistics =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Statistics for port 0 ------------------------------ > > Packets sent: 0 > > Packets received: 0 > > Packets dropped: 0 > > Crypto statistics =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Statistics for cryptodev 0 ------------------------- > > Packets enqueued: 0 > > Packets dequeued: 0 > > Packets errors: 0 > > Aggregate statistics =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D > > Total packets received: 0 > > Total packets enqueued: 0 > > Total packets dequeued: 0 > > Total packets sent: 0 > > Total packets dropped: 0 > > Total packets crypto errors: 0 > > =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D > > ----------------------------------------- log end > > -------------------------------------------------------------------- > > -- > > ------------ > > > > > > Regards > > Ugen