From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga06.intel.com (mga06.intel.com [134.134.136.31]) by dpdk.org (Postfix) with ESMTP id 641A85F33 for ; Fri, 27 Apr 2018 12:19:33 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga004.fm.intel.com ([10.253.24.48]) by orsmga104.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2018 03:19:31 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,334,1520924400"; d="scan'208";a="49579586" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga004.fm.intel.com with ESMTP; 27 Apr 2018 03:19:30 -0700 Received: from irsmsx101.ger.corp.intel.com ([169.254.1.118]) by IRSMSX153.ger.corp.intel.com ([169.254.9.5]) with mapi id 14.03.0319.002; Fri, 27 Apr 2018 11:19:30 +0100 From: "Trahe, Fiona" To: "Kudupudi, Ugendreshwar" , "users@dpdk.org" Thread-Topic: OpenSSL Crypto PMD Fails Thread-Index: AdPcmKDuSdbl3ARsREaArnsySieYQQBeHg6w Date: Fri, 27 Apr 2018 10:19:29 +0000 Message-ID: <348A99DA5F5B7549AA880327E580B4358938E8F4@IRSMSX101.ger.corp.intel.com> References: In-Reply-To: Accept-Language: en-IE, en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiYWRhYTNlYTItZGM2Ny00YWFmLWJiZmEtMmQ0OWRhYmIwMDM4IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6Ik0rek91MllsVlZKZHp0cndhXC9nN1Q4T1FqRFBDNVZ0KzRUeGErVTZrTVwvYz0ifQ== x-ctpclassification: CTP_NT dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-originating-ip: [163.33.239.181] Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 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, 27 Apr 2018 10:19:34 -0000 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,' $RTE_OUTPUT/.confi= g > -----Original Message----- > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Kudupudi, Ugendr= eshwar > Sent: Wednesday, April 25, 2018 2:24 PM > To: users@dpdk.org > Subject: [dpdk-users] OpenSSL Crypto PMD Fails >=20 > Hello Team >=20 > We are looking to execute the sample OpenSSL Crypto PMD and got the below= error. >=20 > Environment Details: > ----------------------------- >=20 > 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 >=20 > Any help in resolving this issue is deeply appreciated. >=20 > ----------------------------------------- log start ---------------------= ------------------------------------------------------------- > 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 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 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:11:1= 1: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 -----------------------= ----------------------------------------------------------- >=20 >=20 >=20 > We ran the NULL Crypto PMD successfully though. >=20 >=20 >=20 > ----------------------------------------- log start ---------------------= ------------------------------------------------------------- >=20 > sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 1 -n 4 -- > vdev=3Dcrypto_null,socket_id=3D0,max_nb_sessions=3D128 -- -p 1 --cdev SW = --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 >=20 > CRYPTODEV: [crypto_null] - Initialisation parameters - name: crypto_null,= socket id: 0, max queue pairs: 8, > max sessions: 128 > MAC updating enabled > Initializing port 0... Port 0, MAC address: 3C:FD:FE:0D:1C:E0 >=20 >=20 > 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 >=20 > Crypto chain: Input --> Encrypt --> Output >=20 > ---- Cipher information --- > Algorithm: null > Cipher key: at [0x7fedbff38080], len=3D0 > IV: at [0x7fedbff34640], len=3D0 >=20 > 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 -----------------------= ----------------------------------------------------------- >=20 >=20 > Regards > Ugen