From mboxrd@z Thu Jan 1 00:00:00 1970 From: Tomasz Jozwiak Subject: [PATCH v3 37/38] doc/qat: specify QAT driver and device name formats Date: Wed, 13 Jun 2018 14:14:21 +0200 Message-ID: <1528892062-4997-38-git-send-email-tomaszx.jozwiak@intel.com> References: <1523040732-3290-1-git-send-email-fiona.trahe@intel.com> <1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com> To: fiona.trahe@intel.com, tomaszx.jozwiak@intel.com, dev@dpdk.org Return-path: Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id AA6CB1EFA9 for ; Wed, 13 Jun 2018 14:15:15 +0200 (CEST) In-Reply-To: <1528892062-4997-1-git-send-email-tomaszx.jozwiak@intel.com> List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Fiona Trahe Document the driver and device naming formats. Changed the underscores alignment. Signed-off-by: Fiona Trahe Signed-off-by: Tomasz Jozwiak --- doc/guides/cryptodevs/qat.rst | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rst index 8c8fefaa0..22a2c715d 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 +------------------------ + +The qat crypto driver name is "crypto_qat". +This name is passed to the dpdk-test-crypto-perf tool in the -devtype parameter. +The rte_cryptodev_devices_get() can return the devices exposed by a driver. + +Each qat crypto device has a unique name, in format +_, 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 is also the format of the slave parameter passed to the crypto scheduler. -- 2.17.0