From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 831DBA034C; Tue, 18 Aug 2020 13:47:09 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id B8B001C0BC; Tue, 18 Aug 2020 13:46:50 +0200 (CEST) Received: from mga12.intel.com (mga12.intel.com [192.55.52.136]) by dpdk.org (Postfix) with ESMTP id 746F92BAA for ; Tue, 18 Aug 2020 13:46:48 +0200 (CEST) IronPort-SDR: oOLQzNjaYqin8SI0LqdvkTZ1QHcVLSDItpd92BtlKjGqgcfN75l5roi6TFeCNH3SnYGz42Ri0O TqXt6pC6PNpg== X-IronPort-AV: E=McAfee;i="6000,8403,9716"; a="134404439" X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="134404439" X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga002.jf.intel.com ([10.7.209.21]) by fmsmga106.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 18 Aug 2020 04:46:48 -0700 IronPort-SDR: z8S1D6ErkK9MqhDE4qRKPIkm7kk0rOeWMBXNOiT7LFsm2MsAQRGlMocjtGZw0K5/Jwv64FbarT MgOsQlO0UW9A== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.76,327,1592895600"; d="scan'208";a="310413491" Received: from klaatz-mobl1.ger.corp.intel.com (HELO [10.213.234.91]) ([10.213.234.91]) by orsmga002.jf.intel.com with ESMTP; 18 Aug 2020 04:46:46 -0700 To: Ciara Power , dev@dpdk.org Cc: bruce.richardson@intel.com, thomas@monjalon.net References: <20200807123009.21266-1-ciara.power@intel.com> <20200807123009.21266-9-ciara.power@intel.com> From: "Laatz, Kevin" Message-ID: <8c63b2a6-ad96-c043-1b43-ceb2c43f61b4@intel.com> Date: Tue, 18 Aug 2020 12:46:45 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:68.0) Gecko/20100101 Thunderbird/68.11.0 MIME-Version: 1.0 In-Reply-To: <20200807123009.21266-9-ciara.power@intel.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit Content-Language: en-US Subject: Re: [dpdk-dev] [PATCH 20.11 08/19] doc: remove references to make in cryptodev guides 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: , Errors-To: dev-bounces@dpdk.org Sender: "dev" On 07/08/2020 13:29, Ciara Power wrote: > Make is no longer supported for compiling DPDK, references are now > removed in the documentation. > > Signed-off-by: Ciara Power > --- > doc/guides/cryptodevs/aesni_gcm.rst | 2 -- > doc/guides/cryptodevs/aesni_mb.rst | 2 -- > doc/guides/cryptodevs/armv8.rst | 3 -- > doc/guides/cryptodevs/caam_jr.rst | 30 ----------------- > doc/guides/cryptodevs/ccp.rst | 8 ++--- > doc/guides/cryptodevs/dpaa2_sec.rst | 25 -------------- > doc/guides/cryptodevs/dpaa_sec.rst | 25 -------------- > doc/guides/cryptodevs/kasumi.rst | 9 ----- > doc/guides/cryptodevs/mvsam.rst | 8 ----- > doc/guides/cryptodevs/nitrox.rst | 7 ---- > doc/guides/cryptodevs/octeontx.rst | 8 ----- > doc/guides/cryptodevs/octeontx2.rst | 4 --- > doc/guides/cryptodevs/openssl.rst | 4 +-- > doc/guides/cryptodevs/qat.rst | 52 +++++------------------------ > doc/guides/cryptodevs/scheduler.rst | 8 ----- > doc/guides/cryptodevs/snow3g.rst | 8 ----- > doc/guides/cryptodevs/virtio.rst | 8 ----- > doc/guides/cryptodevs/zuc.rst | 8 ----- > 18 files changed, 13 insertions(+), 206 deletions(-) > diff --git a/doc/guides/cryptodevs/kasumi.rst b/doc/guides/cryptodevs/kasumi.rst > index 09a538f816..45e53de98b 100644 > --- a/doc/guides/cryptodevs/kasumi.rst > +++ b/doc/guides/cryptodevs/kasumi.rst > @@ -89,15 +89,6 @@ In order to enable this virtual crypto PMD, user must: > > * Build the multi buffer library (explained in Installation section). > > -* Build DPDK as follows: > - > -.. code-block:: console > - > - make config T=x86_64-native-linux-gcc > - sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_KASUMI\)=n,\1=y,' build/.config > - make > - Since the documentation initially has a step for building DPDK, I think we should at least link the build instructions in the GSG. There is no harm in being more explicit in docs IMO. The same comment applies for qat, snow3g and zuc below. > - > To use the PMD in an application, user must: > > * Call rte_vdev_init("crypto_kasumi") within the application. > diff --git a/doc/guides/cryptodevs/mvsam.rst b/doc/guides/cryptodevs/mvsam.rst > index 399fe37a67..4a472f8d97 100644 > --- a/doc/guides/cryptodevs/mvsam.rst > +++ b/doc/guides/cryptodevs/mvsam.rst > @@ -64,14 +64,6 @@ Limitations > Installation > ------------ > > -MVSAM CRYPTO PMD driver compilation is disabled by default due to external dependencies. > -Currently there are two driver specific compilation options in > -``config/common_base`` available: > - > -- ``CONFIG_RTE_LIBRTE_PMD_MVSAM_CRYPTO`` (default: ``n``) > - > - Toggle compilation of the librte_pmd_mvsam driver. > - > MVSAM CRYPTO PMD requires MUSDK built with EIP197 support thus following > extra option must be passed to the library configuration script: > > diff --git a/doc/guides/cryptodevs/nitrox.rst b/doc/guides/cryptodevs/nitrox.rst > index 85f5212b64..2f0565b49e 100644 > --- a/doc/guides/cryptodevs/nitrox.rst > +++ b/doc/guides/cryptodevs/nitrox.rst > @@ -33,13 +33,6 @@ Limitations > * 3DES Cipher Only combination is not supported. > * Session-less APIs are not supported. > > -Installation > ------------- > - > -For compiling the Nitrox crypto PMD, please check if the > -CONFIG_RTE_LIBRTE_PMD_NITROX setting is set to `y` in config/common_base file. > - > -* ``CONFIG_RTE_LIBRTE_PMD_NITROX=y`` > > Initialization > -------------- > diff --git a/doc/guides/cryptodevs/octeontx.rst b/doc/guides/cryptodevs/octeontx.rst > index 4fa199e3c4..11589e7673 100644 > --- a/doc/guides/cryptodevs/octeontx.rst > +++ b/doc/guides/cryptodevs/octeontx.rst > @@ -59,14 +59,6 @@ Supported Asymmetric Crypto Algorithms > * ``RTE_CRYPTO_ASYM_XFORM_RSA`` > * ``RTE_CRYPTO_ASYM_XFORM_MODEX`` > > -Config flags > ------------- > - > -For compiling the OCTEON TX crypto poll mode driver, please check if the > -CONFIG_RTE_LIBRTE_PMD_OCTEONTX_CRYPTO setting is set to `y` in > -config/common_base file. > - > -* ``CONFIG_RTE_LIBRTE_PMD_OCTEONTX_CRYPTO=y`` > > Compilation > ----------- > diff --git a/doc/guides/cryptodevs/octeontx2.rst b/doc/guides/cryptodevs/octeontx2.rst > index 432146db04..20620ba13a 100644 > --- a/doc/guides/cryptodevs/octeontx2.rst > +++ b/doc/guides/cryptodevs/octeontx2.rst > @@ -70,10 +70,6 @@ Installation > The OCTEON TX2 crypto PMD may be compiled natively on an OCTEON TX2 platform or > cross-compiled on an x86 platform. > > -Enable OCTEON TX2 crypto PMD in your config file: > - > -* ``CONFIG_RTE_LIBRTE_PMD_OCTEONTX2_CRYPTO=y`` > - > Refer to :doc:`../platform/octeontx2` for instructions to build your DPDK > application. > > diff --git a/doc/guides/cryptodevs/openssl.rst b/doc/guides/cryptodevs/openssl.rst > index 7407294813..d2b8c4b997 100644 > --- a/doc/guides/cryptodevs/openssl.rst > +++ b/doc/guides/cryptodevs/openssl.rst > @@ -58,8 +58,8 @@ Supported Asymmetric Crypto algorithms: > Installation > ------------ > > -To compile openssl PMD, it has to be enabled in the config/common_base file > -and appropriate openssl packages have to be installed in the build environment. > +To compile openssl PMD, appropriate openssl packages have to be installed > +in the build environment. > > The newest openssl library version is supported: > > diff --git a/doc/guides/cryptodevs/qat.rst b/doc/guides/cryptodevs/qat.rst > index e5d2cf4997..616f54f205 100644 > --- a/doc/guides/cryptodevs/qat.rst > +++ b/doc/guides/cryptodevs/qat.rst > @@ -207,27 +207,6 @@ Configuring and Building the DPDK QAT PMDs > Further information on configuring, building and installing DPDK is described > :doc:`here <../linux_gsg/build_dpdk>`. > > - > -Quick instructions for QAT cryptodev PMD are as follows: > - > -.. code-block:: console > - > - cd to the top-level DPDK directory > - make defconfig > - sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_QAT_SYM\)=n,\1=y,' build/.config > - or/and > - sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_QAT_ASYM\)=n,\1=y,' build/.config > - make > - > -Quick instructions for QAT compressdev PMD are as follows: > - > -.. code-block:: console > - > - cd to the top-level DPDK directory > - make defconfig > - make > - > - > .. _building_qat_config: > > Build Configuration > @@ -237,38 +216,32 @@ These are the build configuration options affecting QAT, and their default value > > .. code-block:: console > > - CONFIG_RTE_LIBRTE_PMD_QAT=y > - CONFIG_RTE_LIBRTE_PMD_QAT_SYM=n > - CONFIG_RTE_LIBRTE_PMD_QAT_ASYM=n > - CONFIG_RTE_PMD_QAT_MAX_PCI_DEVICES=48 > - CONFIG_RTE_PMD_QAT_COMP_IM_BUFFER_SIZE=65536 > - > -CONFIG_RTE_LIBRTE_PMD_QAT must be enabled for any QAT PMD to be built. > + RTE_PMD_QAT_MAX_PCI_DEVICES=48 > + RTE_PMD_QAT_COMP_IM_BUFFER_SIZE=65536 > > Both QAT SYM PMD and QAT ASYM PMD have an external dependency on libcrypto, so are not > -built by default. CONFIG_RTE_LIBRTE_PMD_QAT_SYM/ASYM should be enabled to build them. > +built by default. > > -The QAT compressdev PMD has no external dependencies, so needs no configuration > -options and is built by default. > +The QAT compressdev PMD has no external dependencies, so is built by default. > > The number of VFs per PF varies - see table below. If multiple QAT packages are > -installed on a platform then CONFIG_RTE_PMD_QAT_MAX_PCI_DEVICES should be > +installed on a platform then RTE_PMD_QAT_MAX_PCI_DEVICES should be > adjusted to the number of VFs which the QAT common code will need to handle. > > .. Note:: > > There are separate config items (not QAT-specific) for max cryptodevs > - CONFIG_RTE_CRYPTO_MAX_DEVS and max compressdevs CONFIG_RTE_COMPRESS_MAX_DEVS, > + RTE_CRYPTO_MAX_DEVS and max compressdevs RTE_COMPRESS_MAX_DEVS, > if necessary these should be adjusted to handle the total of QAT and other > devices which the process will use. In particular for crypto, where each > QAT VF may expose two crypto devices, sym and asym, it may happen that the > number of devices will be bigger than MAX_DEVS and the process will show an error > - during PMD initialisation. To avoid this problem CONFIG_RTE_CRYPTO_MAX_DEVS may be > + during PMD initialisation. To avoid this problem RTE_CRYPTO_MAX_DEVS may be > increased or -w, pci-whitelist domain:bus:devid:func option may be used. > > > QAT compression PMD needs intermediate buffers to support Deflate compression > -with Dynamic Huffman encoding. CONFIG_RTE_PMD_QAT_COMP_IM_BUFFER_SIZE > +with Dynamic Huffman encoding. RTE_PMD_QAT_COMP_IM_BUFFER_SIZE > specifies the size of a single buffer, the PMD will allocate a multiple of these, > plus some extra space for associated meta-data. For GEN2 devices, 20 buffers are > allocated while for GEN1 devices, 12 buffers are allocated, plus 1472 bytes overhead. > @@ -660,25 +633,18 @@ Testing > > QAT SYM crypto PMD can be tested by running the test application:: > > - make defconfig > - make -j > cd ./build/app > ./test -l1 -n1 -w > RTE>>cryptodev_qat_autotest > > QAT ASYM crypto PMD can be tested by running the test application:: > > - make defconfig > - make -j > cd ./build/app > ./test -l1 -n1 -w > RTE>>cryptodev_qat_asym_autotest > > QAT compression PMD can be tested by running the test application:: > > - make defconfig > - sed -i 's,\(CONFIG_RTE_COMPRESSDEV_TEST\)=n,\1=y,' build/.config > - make -j > cd ./build/app > ./test -l1 -n1 -w > RTE>>compressdev_autotest > @@ -704,7 +670,7 @@ the process cmdline, e.g. using any of the following:: > > The global RTE_LOG_DP_LEVEL overrides data-path trace so must be set to > RTE_LOG_DEBUG to see all the trace. This variable is in config/rte_config.h > - for meson build and config/common_base for gnu make. > + for meson build. > Also the dynamic global log level overrides both sets of trace, so e.g. no > QAT trace would display in this case:: > > diff --git a/doc/guides/cryptodevs/scheduler.rst b/doc/guides/cryptodevs/scheduler.rst > index 7004ca431a..ee23b25b73 100644 > --- a/doc/guides/cryptodevs/scheduler.rst > +++ b/doc/guides/cryptodevs/scheduler.rst > @@ -32,14 +32,6 @@ Limitations > is enabled. > > > -Installation > ------------- > - > -To build DPDK with CRYTPO_SCHEDULER_PMD the user is required to set > -CONFIG_RTE_LIBRTE_PMD_CRYPTO_SCHEDULER=y in config/common_base, and > -recompile DPDK > - > - > Initialization > -------------- > > diff --git a/doc/guides/cryptodevs/snow3g.rst b/doc/guides/cryptodevs/snow3g.rst > index e0cddc2d77..45c4d2342e 100644 > --- a/doc/guides/cryptodevs/snow3g.rst > +++ b/doc/guides/cryptodevs/snow3g.rst > @@ -88,14 +88,6 @@ In order to enable this virtual crypto PMD, user must: > > * Build the multi buffer library (explained in Installation section). > > -* Build DPDK as follows: > - > -.. code-block:: console > - > - make config T=x86_64-native-linux-gcc > - sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_SNOW3G\)=n,\1=y,' build/.config > - make > - > To use the PMD in an application, user must: > > * Call rte_vdev_init("crypto_snow3g") within the application. > diff --git a/doc/guides/cryptodevs/virtio.rst b/doc/guides/cryptodevs/virtio.rst > index 2c46bda866..c2b11c4e63 100644 > --- a/doc/guides/cryptodevs/virtio.rst > +++ b/doc/guides/cryptodevs/virtio.rst > @@ -83,11 +83,7 @@ The unit test cases can be tested as below: > .. code-block:: console > > reserve enough huge pages > - cd to the top-level DPDK directory > - export RTE_TARGET=x86_64-native-linux-gcc > - export RTE_SDK=`pwd` > cd to app/test > - type the command "make" to compile > run the tests with "./test" > type the command "cryptodev_virtio_autotest" to test > > @@ -96,11 +92,7 @@ The performance can be tested as below: > .. code-block:: console > > reserve enough huge pages > - cd to the top-level DPDK directory > - export RTE_TARGET=x86_64-native-linux-gcc > - export RTE_SDK=`pwd` > cd to app/test-crypto-perf > - type the command "make" to compile > run the tests with the following command: > > ./dpdk-test-crypto-perf -l 0,1 -- --devtype crypto_virtio \ > diff --git a/doc/guides/cryptodevs/zuc.rst b/doc/guides/cryptodevs/zuc.rst > index 9b51ba141d..4842a25b5a 100644 > --- a/doc/guides/cryptodevs/zuc.rst > +++ b/doc/guides/cryptodevs/zuc.rst > @@ -88,14 +88,6 @@ In order to enable this virtual crypto PMD, user must: > > * Build the multi buffer library (explained in Installation section). > > -* Build DPDK as follows: > - > -.. code-block:: console > - > - make config T=x86_64-native-linux-gcc > - sed -i 's,\(CONFIG_RTE_LIBRTE_PMD_ZUC\)=n,\1=y,' build/.config > - make > - > To use the PMD in an application, user must: > > * Call rte_vdev_init("crypto_zuc") within the application. Throughout this patch, the following need to be updated: - 'l2fwd-crypto' need to change to 'dpdk-l2fwd-crypto'      - './test' needs to change to './dpdk-test' /Kevin