From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from APC01-SG2-obe.outbound.protection.outlook.com (mail-sg2apc01on0050.outbound.protection.outlook.com [104.47.125.50]) by dpdk.org (Postfix) with ESMTP id E66F82E8B for ; Tue, 28 Jun 2016 08:09:12 +0200 (CEST) Received: from PS1PR03MB1883.apcprd03.prod.outlook.com (10.167.49.153) by PS1PR03MB1882.apcprd03.prod.outlook.com (10.167.49.152) with Microsoft SMTP Server (TLS) id 15.1.528.16; Tue, 28 Jun 2016 06:09:09 +0000 Received: from PS1PR03MB1883.apcprd03.prod.outlook.com ([10.167.49.153]) by PS1PR03MB1883.apcprd03.prod.outlook.com ([10.167.49.153]) with mapi id 15.01.0528.017; Tue, 28 Jun 2016 06:09:09 +0000 From: To: CC: Thread-Topic: [dpdk-dev] [Crypto-API query] Thread-Index: AQHR0QFXZ0+DW3iz3Ua1IVMB6OF3C5/+ZFKg Date: Tue, 28 Jun 2016 06:09:08 +0000 Message-ID: References: <87h9cdoo8r.fsf@fatcat.parallelwireless> In-Reply-To: <87h9cdoo8r.fsf@fatcat.parallelwireless> 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=amartya.das@wipro.com; x-originating-ip: [125.16.242.7] x-ms-office365-filtering-correlation-id: af02aa52-3ea5-45cc-a4fc-08d39f1ab7d5 x-microsoft-exchange-diagnostics: 1; PS1PR03MB1882; 6:WjUp/TYPq4L6tWJ4YQwlr3Ss4NYPUBsbHOYvULwAqELq17vj24wdn1f5ZjiPH12aCX+ZI1G+ObkVWdaGkwp6McwQ4DSg/Jdg9aiaGobSxOzjdiNUIa1CJFZ708n/4DuOd1EDi+lSoJPO/0F1srmrKpLjliTlQfeKJB/Mxmn9JqjDqggrtNRaKs142WCNC2wyKcLKkj26AI79HSce7YJclT9dnU1jCr5LBWQdZ/sy87cs4GRQAlINOwBNy3lxOeMOCnZZEGQVdM9PUwH3q8h6hXQxlSgD1T18zjYyEaQAWckm8MatKi9Jw6DsCpnMvwN+QlvyTHC2ZdiB9qhX9uWLMQ==; 5:qVkD1BLlKYLwk2/+72yTPBWHF3WsBjlPAPEQFjw9ZokRDEVxX9JuytRVfi8HVbs6KNXB1UnqIavaV32EnFPI23wy/8e2pR9tuuMIyXNlJo1PgQb0TnCNoidmMhPKq/iADGKHbb6yvvWRpR19iUrWOw==; 24:IEaPVb0jt9wiWFZ2q4h7w1priLzN3VCov+MD6F5fyCfybP4fzlG92Q9moEJ0ZwGX7f+blckyTgJZQiXWYsgPmmeFpwHk3LctEj8cSufwrBA=; 7:hvPAnqnKVWXjjvE1i7TggFk7t2hMEtBR8z9KjNEhuKc5+fUKsJ8sx1LWlm/yD4TTmkwZ719oHsCZc9+FvNP7CGRwarA/idi1Z7Qx0MWoEgN+Er4lYemFnp5vy2ypNlSPrnSGJJxivKZH5FEkP1zTrWadwzI/GeiTBLYZc7caG/6I/LOkTd0spOfWZFiClb1QyvguyL5J0wIa/aLA8kQR9F/nWoOway8S0vbi1CNFy8E06utkiVGPU9UuORv0vRE+ x-microsoft-antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:PS1PR03MB1882; x-microsoft-antispam-prvs: x-exchange-antispam-report-test: UriScan:(267259832677123)(62627912741753); x-exchange-antispam-report-cfa-test: BCL:0; PCL:0; RULEID:(61425038)(601004)(2401047)(5005006)(8121501046)(10201501046)(3002001)(6055026)(61426038)(61427038); SRVR:PS1PR03MB1882; BCL:0; PCL:0; RULEID:; SRVR:PS1PR03MB1882; x-forefront-prvs: 0987ACA2E2 x-forefront-antispam-report: SFV:NSPM; SFS:(10009020)(6009001)(7916002)(189002)(377454003)(13464003)(199003)(51914003)(4326007)(2906002)(54356999)(76176999)(2900100001)(586003)(122556002)(2950100001)(15975445007)(97736004)(10400500002)(77096005)(50986999)(6116002)(102836003)(92566002)(3846002)(575784001)(76576001)(86362001)(5002640100001)(11100500001)(87936001)(74316001)(101416001)(33656002)(81156014)(5890100001)(189998001)(81166006)(110136002)(8676002)(66066001)(7696003)(19580405001)(15974865002)(19580395003)(106356001)(68736007)(305945005)(3280700002)(106116001)(5003600100003)(105586002)(3660700001)(8936002)(9686002)(7846002)(15395725005)(7736002)(18886075002); DIR:OUT; SFP:1101; SCL:1; SRVR:PS1PR03MB1882; H:PS1PR03MB1883.apcprd03.prod.outlook.com; FPR:; SPF:None; PTR:InfoNoRecords; MX:1; A:1; LANG:en; received-spf: None (protection.outlook.com: wipro.com does not designate permitted sender hosts) spamdiagnosticoutput: 1:99 spamdiagnosticmetadata: NSPM Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 X-OriginatorOrg: wipro.com X-MS-Exchange-CrossTenant-originalarrivaltime: 28 Jun 2016 06:09:09.0559 (UTC) X-MS-Exchange-CrossTenant-fromentityheader: Hosted X-MS-Exchange-CrossTenant-id: 258ac4e4-146a-411e-9dc8-79a9e12fd6da X-MS-Exchange-Transport-CrossTenantHeadersStamped: PS1PR03MB1882 X-MS-Exchange-CrossPremises-AuthAs: Internal X-MS-Exchange-CrossPremises-AuthMechanism: 04 X-MS-Exchange-CrossPremises-AuthSource: PS1PR03MB1883.apcprd03.prod.outlook.com X-MS-Exchange-CrossPremises-SCL: 1 X-MS-Exchange-CrossPremises-messagesource: StoreDriver X-MS-Exchange-CrossPremises-BCC: X-MS-Exchange-CrossPremises-originalclientipaddress: 125.16.242.7 X-MS-Exchange-CrossPremises-avstamp-service: 1.0 X-MS-Exchange-CrossPremises-disclaimer-hash: ef6ed6a830673538406bd527e716551fd2daba1e446b50e7f1f30c79ce70f874 X-MS-Exchange-CrossPremises-antispam-scancontext: DIR:Originating; SFV:NSPM; SKIP:0; X-MS-Exchange-CrossPremises-processed-by-journaling: Journal Agent X-OrganizationHeadersPreserved: PS1PR03MB1882.apcprd03.prod.outlook.com Subject: Re: [dpdk-dev] [Crypto-API query] X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: patches and discussions about DPDK List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 28 Jun 2016 06:09:14 -0000 Hi, Thanks for the prompt response. I am trying to run one sample application with crypto library with DPDK 16.= 04 from below path in VM: dpdk-16.04/examples/l2fwd-crypto I have followed below link: http://dpdk.org/doc/guides-16.04/cryptodevs/aesni_mb.html Command use: ./build/l2fwd-crypto -c 0x1 -n 4 --vdev "cryptodev_aesni_mb_pmd" --vdev "cr= yptodev_aesni_mb_pmd" -- -p 0x1 --chain CIPHER_HASH --cipher_op ENCRYPT --c= ipher_algo AES_CBC --cipher_key 00:01:02:03:04:05:06:07:08:09:0a:0b:0c:0d:0= e:0f --auth_op GENERATE --auth_algo SHA1_HMAC --auth_key 10:11:12:13:14:15:= 16:17:18:19:1a:1b:1c:1d:1e:1f I am getting below error: EAL: Detected lcore 0 as core 0 on socket 0 EAL: Support maximum 128 logical core(s) by configuration. EAL: Detected 1 lcore(s) EAL: Probing VFIO support... EAL: Module /sys/module/vfio_pci not found! error 2 (No such file or direct= ory) EAL: VFIO modules not loaded, skipping VFIO support... EAL: Setting up physically contiguous memory... EAL: Ask a virtual area of 0x1e00000 bytes EAL: Virtual area found at 0x7fa6bd200000 (size =3D 0x1e00000) EAL: Ask a virtual area of 0x3e200000 bytes EAL: Virtual area found at 0x7fa67ee00000 (size =3D 0x3e200000) EAL: Ask a virtual area of 0x3fc00000 bytes EAL: Virtual area found at 0x7fa63f000000 (size =3D 0x3fc00000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7fa63ec00000 (size =3D 0x200000) EAL: Ask a virtual area of 0x200000 bytes EAL: Virtual area found at 0x7fa63e800000 (size =3D 0x200000) EAL: Requesting 1024 pages of size 2MB from socket 0 EAL: TSC frequency is ~1995189 KHz EAL: WARNING: cpu flags constant_tsc=3Dyes nonstop_tsc=3Dno -> using unreli= able clock cycles ! EAL: Master lcore 0 is ready (tid=3Dc11ca8c0;cpuset=3D[0]) EAL: no driver found for cryptodev_aesni_mb_pmd EAL: failed to initialize cryptodev_aesni_mb_pmd device PANIC in rte_eal_init(): Cannot init pmd devices 6: [./build/l2fwd-crypto() [0x42e0a3]] 5: [/lib64/libc.so.6(__libc_start_main+0xf0) [0x7fa6c02ebfe0]] 4: [./build/l2fwd-crypto(main+0x2f) [0x42b2cf]] 3: [./build/l2fwd-crypto(rte_eal_init+0xdc0) [0x49f920]] 2: [./build/l2fwd-crypto(__rte_panic+0xc9) [0x425008]] 1: [./build/l2fwd-crypto(rte_dump_stack+0x18) [0x4a6748]] Aborted (core dumped) What could be cause for driver not found? And init fails? Thanks, Amartya -----Original Message----- From: Anupam Kapoor [mailto:anupam.kapoor@gmail.com] Sent: Tuesday, June 28, 2016 11:21 AM To: Amartya Kumar Das (MFG & Tech) Cc: dev@dpdk.org Subject: Re: [dpdk-dev] [Crypto-API query] ** This mail has been sent from an external source ** >>>>> [2016-06-28T10:57:02+0530]: "amartya.das" (amartya.das): ,----[ amartya.das ] | Is it possible to use Crypto API with virtual device without VFIO and by = using UIO only. `---- i have just taken a cursory look at the l2fwd-crypto, and it seems it is po= ssible to have sw-only crypto devices... --- thanks anupam The information contained in this electronic message and any attachments to= this message are intended for the exclusive use of the addressee(s) and ma= y contain proprietary, confidential or privileged information. If you are n= ot the intended recipient, you should not disseminate, distribute or copy t= his e-mail. Please notify the sender immediately and destroy all copies of = this message and any attachments. WARNING: Computer viruses can be transmit= ted via email. The recipient should check this email and any attachments fo= r the presence of viruses. The company accepts no liability for any damage = caused by any virus transmitted by this email. www.wipro.com