From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga04.intel.com (mga04.intel.com [192.55.52.120]) by dpdk.org (Postfix) with ESMTP id 3BDB91B2E2 for ; Mon, 5 Feb 2018 15:31:56 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from fmsmga003.fm.intel.com ([10.253.24.29]) by fmsmga104.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 05 Feb 2018 06:31:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.46,465,1511856000"; d="scan'208";a="24954388" Received: from unknown (HELO localhost.localdomain) ([10.224.122.203]) by FMSMGA003.fm.intel.com with ESMTP; 05 Feb 2018 06:31:54 -0800 From: Vipin Varghese To: dev@dpdk.org, marko.kovacevic@intel.com Cc: john.mcnamara@intel.com, Vipin Varghese Date: Mon, 5 Feb 2018 20:01:59 +0530 Message-Id: <1517841119-9277-1-git-send-email-vipin.varghese@intel.com> X-Mailer: git-send-email 1.9.1 Subject: [dpdk-dev] [PATCH] doc: update multiple instance info for NULL crypto 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, 05 Feb 2018 14:31:57 -0000 Add foot note & example to inform user how to use multiple instance. Signed-off-by: Vipin Varghese --- doc/guides/cryptodevs/null.rst | 20 +++++++++++++++++--- 1 file changed, 17 insertions(+), 3 deletions(-) diff --git a/doc/guides/cryptodevs/null.rst b/doc/guides/cryptodevs/null.rst index 03a3ddc..b7072b0 100644 --- a/doc/guides/cryptodevs/null.rst +++ b/doc/guides/cryptodevs/null.rst @@ -41,6 +41,11 @@ each mbuf in the burst will be enqueued in an internal buffer for collection on a dequeue call as long as the mbuf has a valid rte_mbuf_offload operation with a valid rte_cryptodev_session or rte_crypto_xform chain of operations. +.. Note:: + + In case of multiple instances of NULL cryptos, each instance should be of + unique id. + Features -------- @@ -91,7 +96,16 @@ The following parameters (all optional) can be provided in the previous two call Example: -.. code-block:: console +Single vdev instance:: + + ./l2fwd-crypto -l 1 -n 4 \ + --vdev="crypto_null,socket_id=0,max_nb_sessions=128" \ + -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo "null" + +Multiple vdev instance:: + + ./l2fwd-crypto -l 1-2 -n 4 \ + --vdev="crypto_null_0,socket_id=0,max_nb_sessions=128" \ + --vdev="crypto_null_1,socket_id=1,max_nb_sessions=128" \ + -- -p 0x3 --cdev SW --chain CIPHER_HASH --cipher_algo null --auth_algo null - ./l2fwd-crypto -l 1 -n 4 --vdev="crypto_null,socket_id=0,max_nb_sessions=128" \ - -- -p 1 --cdev SW --chain CIPHER_ONLY --cipher_algo "null" -- 1.9.1