From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from NAM03-BY2-obe.outbound.protection.outlook.com (mail-by2nam03on0086.outbound.protection.outlook.com [104.47.42.86]) by dpdk.org (Postfix) with ESMTP id 742325A6E for ; Fri, 27 Apr 2018 12:23:37 +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=n3lvaQT+6GXu+xRsSinTBeuU/reAnFRpsxgJY3B+4Y4=; b=Y+7jlO8fzZ4GmFDXcQIBxu5121wkc9eBzZlj5AG0oS7+pIWYRVxaQ5gLD3xFUa8eFvz/i5paJU0D75YRMZ6wAb/aI12JDXLgJRaybiI/F3jnXQsFHc9zt94GIkFTb36A8pUqDAX7wPePleUhIpcYrDzs6Z7xPPsr6264P71CiIw= Received: from BN3PR0701MB1140.namprd07.prod.outlook.com (10.160.114.153) by BN3PR0701MB1169.namprd07.prod.outlook.com (10.160.114.17) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id 15.20.715.18; Fri, 27 Apr 2018 10:23:35 +0000 Received: from BN3PR0701MB1140.namprd07.prod.outlook.com ([fe80::f1db:d448:56f7:5e32]) by BN3PR0701MB1140.namprd07.prod.outlook.com ([fe80::f1db:d448:56f7:5e32%8]) with mapi id 15.20.0715.018; Fri, 27 Apr 2018 10:23:35 +0000 From: "Kudupudi, Ugendreshwar" To: "Trahe, Fiona" , "users@dpdk.org" Thread-Topic: OpenSSL Crypto PMD Fails Thread-Index: AdPcmKDuSdbl3ARsREaArnsySieYQQBeHg6wAAAQ9LA= Date: Fri, 27 Apr 2018 10:23:34 +0000 Message-ID: References: <348A99DA5F5B7549AA880327E580B4358938E8F4@IRSMSX101.ger.corp.intel.com> In-Reply-To: <348A99DA5F5B7549AA880327E580B4358938E8F4@IRSMSX101.ger.corp.intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: authentication-results: spf=none (sender IP is ) smtp.mailfrom=Ugendreshwar.Kudupudi@cavium.com; x-originating-ip: [115.113.156.2] x-ms-publictraffictype: Email x-microsoft-exchange-diagnostics: 1; BN3PR0701MB1169; 7:Le7hJ3sNxxJEdELX48epTIG6jUlFzIo4NFmyjHsj+SrVPlvJDYcAmV2rif2y2Fy6qzJ3KZ3XaoAlTt1CUwPCyxYoUXqJrDK5QJCBWYjdyTmUdHzf8c6P9SBmS2qmtj6V/L7Puqg3Zzw+Hefbf2d0Gj2JA+gim1jATi5BF2aZ8LmVgCvRWCSVl0H6tVE4WKLcyo1U5GitWs7duiUtIZDvPqTqxMitlC1xaslg6TarZY7pZGPo4nP+aZtIoSS2e2jr x-ms-exchange-antispam-srfa-diagnostics: SOS; x-microsoft-antispam: UriScan:; BCL:0; PCL:0; RULEID:(7020095)(4652020)(5600026)(4534165)(7168020)(4627221)(201703031133081)(201702281549075)(2017052603328)(7153060)(7193020); SRVR:BN3PR0701MB1169; x-ms-traffictypediagnostic: BN3PR0701MB1169: 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)(93006095)(93001095)(3231232)(944501410)(52105095)(10201501046)(6041310)(201703131423095)(201702281528075)(20161123555045)(201703061421075)(201703061406153)(20161123564045)(20161123560045)(20161123558120)(20161123562045)(6072148)(201708071742011); SRVR:BN3PR0701MB1169; BCL:0; PCL:0; RULEID:; SRVR:BN3PR0701MB1169; x-forefront-prvs: 0655F9F006 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(39380400002)(366004)(39860400002)(346002)(396003)(376002)(13464003)(189003)(199004)(316002)(26005)(2900100001)(97736004)(3660700001)(11346002)(102836004)(55236004)(9686003)(3846002)(76176011)(33656002)(99286004)(6116002)(59450400001)(186003)(6506007)(53936002)(53546011)(6436002)(6246003)(6306002)(66066001)(3280700002)(7696005)(110136005)(72206003)(966005)(478600001)(81156014)(3480700004)(8936002)(8676002)(7736002)(25786009)(2501003)(486006)(106356001)(55016002)(14454004)(476003)(446003)(81166006)(2906002)(305945005)(229853002)(5250100002)(105586002)(68736007)(5660300001)(74316002)(86362001); DIR:OUT; SFP:1101; SCL:1; SRVR:BN3PR0701MB1169; H:BN3PR0701MB1140.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: IXkoPea9UsF3TbFXfgnCxjWperDCQuHP1nIN0QhrAHcHkJimMA9ngonxmIxHkIusGKayYuVrftSoccZaVlE9Tjm3gJ/PRdqPOmz3L/2JKd/9blVgPsJxjzMf70Sycgt1OSmcQXqWxiWxqo7C6jMvhF1fZ82PwsGaNIYO+8aP0JtbkI8jy9VASOesErHQXLX6 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: 8f58d402-8f41-43d2-7aae-08d5ac28eef8 X-OriginatorOrg: cavium.com X-MS-Exchange-CrossTenant-Network-Message-Id: 8f58d402-8f41-43d2-7aae-08d5ac28eef8 X-MS-Exchange-CrossTenant-originalarrivaltime: 27 Apr 2018 10:23:34.9630 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 711e4ccf-2e9b-4bcf-a551-4094005b6194 X-MS-Exchange-Transport-CrossTenantHeadersStamped: BN3PR0701MB1169 X-Mailman-Approved-At: Sat, 28 Apr 2018 00:25:15 +0200 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:23:38 -0000 Yes. I did. # Compile PMD for Software backed device CONFIG_RTE_LIBRTE_PMD_OPENSSL=3Dy CONFIG_RTE_LIBRTE_PMD_OPENSSL_DEBUG=3Dn -ugen -----Original Message----- From: Trahe, Fiona [mailto:fiona.trahe@intel.com]=20 Sent: 27 April 2018 15:49 To: Kudupudi, Ugendreshwar ; users@dpdk.o= rg Subject: RE: OpenSSL Crypto PMD Fails 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,=20 > Ugendreshwar > 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=20 > ---------------------------------------------------------------------- > ------------ sudo ./examples/l2fwd-crypto/build/l2fwd-crypto -l 0-1 -n=20 > 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=20 > ---------------------------------------------------------------------- > ------------ >=20 >=20 >=20 > We ran the NULL Crypto PMD successfully though. >=20 >=20 >=20 > ----------------------------------------- log start=20 > ---------------------------------------------------------------------- > ------------ >=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= =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 >=20 > CRYPTODEV: [crypto_null] - Initialisation parameters - name:=20 > crypto_null,socket id: 0, max queue pairs: 8, max sessions: 128 MAC=20 > updating enabled Initializing port 0... Port 0, MAC address:=20 > 3C:FD:FE:0D:1C:E0 >=20 >=20 > Checking link=20 > 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 >=20 > Regards > Ugen