From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by dpdk.org (Postfix) with ESMTP id 5985D1B171 for ; Mon, 14 May 2018 17:38:35 +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 orsmga102.jf.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 14 May 2018 08:38:34 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.49,400,1520924400"; d="scan'208";a="54199960" Received: from irsmsx153.ger.corp.intel.com ([163.33.192.75]) by fmsmga004.fm.intel.com with ESMTP; 14 May 2018 08:38:33 -0700 Received: from irsmsx104.ger.corp.intel.com ([169.254.5.251]) by IRSMSX153.ger.corp.intel.com ([169.254.9.5]) with mapi id 14.03.0319.002; Mon, 14 May 2018 16:38:32 +0100 From: "Kovacevic, Marko" To: "Trahe, Fiona" , "dev@dpdk.org" CC: "De Lara Guarch, Pablo" , "Trahe, Fiona" , "Jozwiak, TomaszX" Thread-Topic: [dpdk-dev] [PATCH v2 30/31] doc/qat: specify QAT driver and device name formats Thread-Index: AQHT6Rof9wWA81lAwUG34UOHLgpe4aQvX4qQ Date: Mon, 14 May 2018 15:38:31 +0000 Message-ID: <6DC05C7C5F25994B81B3F2F214251F6638AC82@IRSMSX104.ger.corp.intel.com> References: <1523040732-3290-1-git-send-email-fiona.trahe@intel.com> <1526037249-25545-31-git-send-email-fiona.trahe@intel.com> In-Reply-To: <1526037249-25545-31-git-send-email-fiona.trahe@intel.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: dlp-product: dlpe-windows dlp-version: 11.0.200.100 dlp-reaction: no-action x-titus-metadata-40: eyJDYXRlZ29yeUxhYmVscyI6IiIsIk1ldGFkYXRhIjp7Im5zIjoiaHR0cDpcL1wvd3d3LnRpdHVzLmNvbVwvbnNcL0ludGVsMyIsImlkIjoiMWJmMTk3ZTYtZmFhOS00MDU1LWI2NzQtMDJjZjIxZmU3ZDU0IiwicHJvcHMiOlt7Im4iOiJDVFBDbGFzc2lmaWNhdGlvbiIsInZhbHMiOlt7InZhbHVlIjoiQ1RQX05UIn1dfV19LCJTdWJqZWN0TGFiZWxzIjpbXSwiVE1DVmVyc2lvbiI6IjE2LjUuOS4zIiwiVHJ1c3RlZExhYmVsSGFzaCI6IkI4Q0lwU0NBSDczNnJ4NTcyNlZXYWJ1cVJvMExEUUlKMnk4YWtLNDFGbEU9In0= x-ctpclassification: CTP_NT 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-dev] [PATCH v2 30/31] doc/qat: specify QAT driver and device name formats X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 14 May 2018 15:38:35 -0000 > Document the driver and device naming formats. >=20 > Signed-off-by: Fiona Trahe > --- > doc/guides/cryptodevs/qat.rst | 12 ++++++++++++ > 1 file changed, 12 insertions(+) >=20 > diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rs= t > index 8c8fefaa0..67176bd81 100644 > --- a/doc/guides/cryptodevs/qat.rst > +++ b/doc/guides/cryptodevs/qat.rst > @@ -359,3 +359,15 @@ length of data to authenticate > (op.sym.auth.data.length) must be the length of all the items described = above, > including the padding at the end. > Also, offset of data to authenticate (op.sym.auth.data.offset) must be = such > that points at the start of the COUNT bytes. > + > +Device and driver naming > +---------------------------------------- Try to keep the underscores aligned for the heading doesn't affect the buil= d but for consistency=20 > +The qat crypto driver name is "crypto_qat". > +This name is passed to the dpdk-test-crypto-perf tool in the -devtype > parameter. ``-devtype`` > +The rte_cryptodev_devices_get() can return the devices exposed by a > driver. Try putting rte_cryptodev_devices_get() like this --> ``rte_cryptodev_devi= ces_get()`` > +Each qat crypto device has a unique name, in format +bdf>_, e.g. "0000:41:01.0_qat_sym". And these two `` +bdf>_``, e.g. ``0000:41:01.0_qat_sym``. > +This name can be passed to rte_cryptodev_get_dev_id() to get the > device_id. This also ``rte_cryptodev_get_dev_id()`` > +This is also the format of the slave parameter passed to the crypto sche= duler. Marko K.