[dpdk-dev] [PATCH v3 1/7] crypto/virtio: add virtio related fundamental functions

De Lara Guarch, Pablo pablo.de.lara.guarch at intel.com
Thu Mar 29 18:06:55 CEST 2018


Hi Jay,

> -----Original Message-----
> From: Jay Zhou [mailto:jianjay.zhou at huawei.com]
> Sent: Sunday, March 25, 2018 9:34 AM
> To: dev at dpdk.org
> Cc: De Lara Guarch, Pablo <pablo.de.lara.guarch at intel.com>; Zhang, Roy
> Fan <roy.fan.zhang at intel.com>; thomas at monjalon.net;
> arei.gonglei at huawei.com; Zeng, Xin <xin.zeng at intel.com>;
> weidong.huang at huawei.com; wangxinxin.wang at huawei.com;
> longpeng2 at huawei.com; jianjay.zhou at huawei.com
> Subject: [PATCH v3 1/7] crypto/virtio: add virtio related fundamental
> functions
> 
> Since there does not have the common virtio library, we have to put these
> files here. They are basically the same with virtio net related files with some
> minor changes.
> 
> Signed-off-by: Jay Zhou <jianjay.zhou at huawei.com>
> ---
>  config/common_base                  |  20 ++
>  drivers/crypto/virtio/virtio_logs.h |  47 ++++
> drivers/crypto/virtio/virtio_pci.c  | 460
> ++++++++++++++++++++++++++++++++++++
>  drivers/crypto/virtio/virtio_pci.h  | 253 ++++++++++++++++++++
> drivers/crypto/virtio/virtio_ring.h | 137 +++++++++++
>  drivers/crypto/virtio/virtqueue.c   |  43 ++++
>  drivers/crypto/virtio/virtqueue.h   | 176 ++++++++++++++
>  7 files changed, 1136 insertions(+)
>  create mode 100644 drivers/crypto/virtio/virtio_logs.h
>  create mode 100644 drivers/crypto/virtio/virtio_pci.c
>  create mode 100644 drivers/crypto/virtio/virtio_pci.h
>  create mode 100644 drivers/crypto/virtio/virtio_ring.h
>  create mode 100644 drivers/crypto/virtio/virtqueue.c  create mode
> 100644 drivers/crypto/virtio/virtqueue.h
> 
> diff --git a/config/common_base b/config/common_base index
> ad03cf4..19d0cdd 100644
> --- a/config/common_base
> +++ b/config/common_base
> @@ -482,6 +482,26 @@
> CONFIG_RTE_LIBRTE_PMD_QAT_DEBUG_DRIVER=n
>  CONFIG_RTE_QAT_PMD_MAX_NB_SESSIONS=2048
> 
>  #
> +# Compile PMD for virtio crypto devices #
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO=n
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO_DEBUG_INIT=n
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO_DEBUG_SESSION=n
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO_DEBUG_TX=n
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO_DEBUG_RX=n
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO_DEBUG_DRIVER=n
> +CONFIG_RTE_LIBRTE_PMD_VIRTIO_CRYPTO_DEBUG_DUMP=n

Could you remove these DEBUG options? I see that they are used only for enabling logging.
For that, we are using now dynamic logging.
Take a look at the following commit, as an example:
510ac6f4f030 ("event/sw: support dynamic logging")

Pablo


More information about the dev mailing list