From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga18.intel.com (mga18.intel.com [134.134.136.126]) by dpdk.org (Postfix) with ESMTP id AC7F3695D for ; Fri, 27 Apr 2018 12:30:50 +0200 (CEST) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 27 Apr 2018 03:30:48 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,334,1520924400"; d="scan'208";a="219817838" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by orsmga005.jf.intel.com with ESMTP; 27 Apr 2018 03:30:47 -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:30:46 +0100 From: "Trahe, Fiona" To: "Kudupudi, Ugendreshwar" , "users@dpdk.org" Thread-Topic: OpenSSL Crypto PMD Fails Thread-Index: AdPcmKDuSdbl3ARsREaArnsySieYQQBeHg6wAAAQ9LAAADlRQA== Date: Fri, 27 Apr 2018 10:30:45 +0000 Message-ID: <348A99DA5F5B7549AA880327E580B4358938E931@IRSMSX101.ger.corp.intel.com> References: <348A99DA5F5B7549AA880327E580B4358938E8F4@IRSMSX101.ger.corp.intel.com> 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: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiOWY0NzU4ZWEtMDk1Zi00YjU3LThiY2YtNmI4ZjkyMDllN2RjIiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IjVrZlVCNHVWUE9kNk5aQXNUWmVvMElxQ091UFZaMUQ0NHE3cTJvTHRSc0k9In0= 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:30:51 -0000 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 > 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,' $RTE_OUTPUT/.con= fig >=20 > > -----Original Message----- > > From: users [mailto:users-bounces@dpdk.org] On Behalf Of Kudupudi, > > 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 -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: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 > > --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 > > 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