get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/119187/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 119187,
    "url": "http://patches.dpdk.org/api/patches/119187/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221027032505.1948351-2-zhangfei.gao@linaro.org/",
    "project": {
        "id": 1,
        "url": "http://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20221027032505.1948351-2-zhangfei.gao@linaro.org>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20221027032505.1948351-2-zhangfei.gao@linaro.org",
    "date": "2022-10-27T03:25:00",
    "name": "[v7,1/6] crypto/uadk: introduce uadk crypto driver",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "090e57a129e19fb88b92c3920cf50d6d763c6646",
    "submitter": {
        "id": 2701,
        "url": "http://patches.dpdk.org/api/people/2701/?format=api",
        "name": "Zhangfei Gao",
        "email": "zhangfei.gao@linaro.org"
    },
    "delegate": {
        "id": 6690,
        "url": "http://patches.dpdk.org/api/users/6690/?format=api",
        "username": "akhil",
        "first_name": "akhil",
        "last_name": "goyal",
        "email": "gakhil@marvell.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/20221027032505.1948351-2-zhangfei.gao@linaro.org/mbox/",
    "series": [
        {
            "id": 25448,
            "url": "http://patches.dpdk.org/api/series/25448/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25448",
            "date": "2022-10-27T03:24:59",
            "name": "crypto/uadk: introduce uadk crypto driver",
            "version": 7,
            "mbox": "http://patches.dpdk.org/series/25448/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/119187/comments/",
    "check": "warning",
    "checks": "http://patches.dpdk.org/api/patches/119187/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 59471A00C5;\n\tThu, 27 Oct 2022 05:32:03 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 4147542B79;\n\tThu, 27 Oct 2022 05:32:01 +0200 (CEST)",
            "from mail-wr1-f54.google.com (mail-wr1-f54.google.com\n [209.85.221.54]) by mails.dpdk.org (Postfix) with ESMTP id 0A184400D5\n for <dev@dpdk.org>; Thu, 27 Oct 2022 05:31:58 +0200 (CEST)",
            "by mail-wr1-f54.google.com with SMTP id l14so103431wrw.2\n for <dev@dpdk.org>; Wed, 26 Oct 2022 20:31:58 -0700 (PDT)",
            "from localhost.localdomain ([213.146.143.36])\n by smtp.gmail.com with ESMTPSA id\n c12-20020a05600c0a4c00b003c83465ccbfsm3339220wmq.35.2022.10.26.20.31.57\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 26 Oct 2022 20:31:57 -0700 (PDT)"
        ],
        "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:from:to:cc:subject:date\n :message-id:reply-to;\n bh=XUnBnLSO1aLeJ0Gqel+y/MRJrB/1aXnTUcY1b7hopn4=;\n b=Y/SrYJJCXEsgHuGyNKrVn55eCjppBANoX/VjzNcRqgHrWFcR3PoMG9QDVdcA5+xb1h\n mnDijzVy1PJgf849BF/eJKcP4ukYJdItqZc/GDLgzj841W8rphOeCfK7zZfam5prDQ0w\n ofsEOS46QKujmQHhljADjQXhm41x5MNEDGoE6JECXtPBcjqcd9kjbb/ylZZlNtCdHqLi\n FEhPnzSUrZlx14UDdf5mEU6bArfyL9MwEU8wyJzX03qcE6+a1wh3+Mm+J1TxlqBP1b8U\n I+UNiPlS6xHbqOgme76BpdI4xl5l+3Tf3UhjK7LkxSA+xZnrwkcC42JIxIwYgRaVGaff\n wfjA==",
        "X-Google-DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed;\n d=1e100.net; s=20210112;\n h=content-transfer-encoding:mime-version:references:in-reply-to\n :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc\n :subject:date:message-id:reply-to;\n bh=XUnBnLSO1aLeJ0Gqel+y/MRJrB/1aXnTUcY1b7hopn4=;\n b=c3okLPiQsK0lglm1QUWLwHTmT/5A66mtr1b418Rj1mrOXsMyNi589wEQoV6qWfuwTF\n InEq6LZyzFMapZWWo2R5rR5IkK1ljXx/QA7nvvWif6qo+b+9DQlGGba26fr6TDcvpvaL\n DYvfWf8GFMkUqPzIACW38IpNv0mPpyufLKAXjOcio9oLUq4j2BF0KlrpCrDa7FxhsKh4\n PuVxqwy34jv/dRQT3iFtPmnODHVz/dtNnutG+YWL991e7xMkc3JMtu8QMIYFhV5v5o+A\n FUguokSH7MOCHQqeCQUZJ+9TAw23KBir+bhyqlx/mgpxT1oEZs8L8790LI+4l80Q+4/3\n utuw==",
        "X-Gm-Message-State": "ACrzQf1VNIe2TQlHYTIGMFw/HlmfrKM9nArVwNVsnhxlEYOVZTAVzBQY\n 3wNcODzj6S4igZx2wN/NfxzB2g==",
        "X-Google-Smtp-Source": "\n AMsMyM45UVGBJS25yOj65243OSLDX6vHO1lOvQMSZggC3Y6l95LfSyj8MInkV/4+HdPrAR2fQrpxiQ==",
        "X-Received": "by 2002:a5d:588c:0:b0:231:893c:1a08 with SMTP id\n n12-20020a5d588c000000b00231893c1a08mr31629929wrf.317.1666841517709;\n Wed, 26 Oct 2022 20:31:57 -0700 (PDT)",
        "From": "Zhangfei Gao <zhangfei.gao@linaro.org>",
        "To": "Akhil Goyal <gakhil@marvell.com>,\n Declan Doherty <declan.doherty@intel.com>,\n Fan Zhang <royzhang1980@gmail.com>,\n Ashish Gupta <ashish.gupta@marvell.com>, Ray Kinsella <mdr@ashroe.eu>,\n \"thomas@monjalon.net\" <thomas@monjalon.net>",
        "Cc": "dev@dpdk.org,\n\tacc@openeuler.org,\n\tZhangfei Gao <zhangfei.gao@linaro.org>",
        "Subject": "[PATCH v7 1/6] crypto/uadk: introduce uadk crypto driver",
        "Date": "Thu, 27 Oct 2022 11:25:00 +0800",
        "Message-Id": "<20221027032505.1948351-2-zhangfei.gao@linaro.org>",
        "X-Mailer": "git-send-email 2.25.1",
        "In-Reply-To": "<20221027032505.1948351-1-zhangfei.gao@linaro.org>",
        "References": "<20221027032505.1948351-1-zhangfei.gao@linaro.org>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "Introduce a new crypto PMD for hardware accelerators based on UADK [1].\n\nUADK is a framework for user applications to access hardware accelerators.\nUADK relies on IOMMU SVA (Shared Virtual Address) feature, which share\nthe same page table between IOMMU and MMU.\nThereby user application can directly use virtual address for device dma,\nwhich enhances the performance as well as easy usability.\n\nThis patch adds the basic framework.\n\n[1] https://github.com/Linaro/uadk\n\nSigned-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>\n---\n MAINTAINERS                                   |   6 +\n doc/guides/cryptodevs/features/uadk.ini       |  33 ++++++\n doc/guides/cryptodevs/index.rst               |   1 +\n doc/guides/cryptodevs/uadk.rst                |  72 ++++++++++++\n doc/guides/rel_notes/release_22_11.rst        |   6 +\n drivers/crypto/meson.build                    |   1 +\n drivers/crypto/uadk/meson.build               |  30 +++++\n drivers/crypto/uadk/uadk_crypto_pmd.c         | 110 ++++++++++++++++++\n drivers/crypto/uadk/uadk_crypto_pmd_private.h |  25 ++++\n drivers/crypto/uadk/version.map               |   3 +\n 10 files changed, 287 insertions(+)\n create mode 100644 doc/guides/cryptodevs/features/uadk.ini\n create mode 100644 doc/guides/cryptodevs/uadk.rst\n create mode 100644 drivers/crypto/uadk/meson.build\n create mode 100644 drivers/crypto/uadk/uadk_crypto_pmd.c\n create mode 100644 drivers/crypto/uadk/uadk_crypto_pmd_private.h\n create mode 100644 drivers/crypto/uadk/version.map",
    "diff": "diff --git a/MAINTAINERS b/MAINTAINERS\nindex 6f56111323..bf9baa9070 100644\n--- a/MAINTAINERS\n+++ b/MAINTAINERS\n@@ -1060,6 +1060,12 @@ M: Kai Ji <kai.ji@intel.com>\n F: drivers/crypto/scheduler/\n F: doc/guides/cryptodevs/scheduler.rst\n \n+HiSilicon UADK crypto\n+M: Zhangfei Gao <zhangfei.gao@linaro.org>\n+F: drivers/crypto/uadk/\n+F: doc/guides/cryptodevs/uadk.rst\n+F: doc/guides/cryptodevs/features/uadk.ini\n+\n Intel QuickAssist\n M: Kai Ji <kai.ji@intel.com>\n F: drivers/crypto/qat/\ndiff --git a/doc/guides/cryptodevs/features/uadk.ini b/doc/guides/cryptodevs/features/uadk.ini\nnew file mode 100644\nindex 0000000000..df5ad40e3d\n--- /dev/null\n+++ b/doc/guides/cryptodevs/features/uadk.ini\n@@ -0,0 +1,33 @@\n+;\n+; Supported features of the 'uadk' crypto driver.\n+;\n+; Refer to default.ini for the full list of available PMD features.\n+;\n+[Features]\n+HW Accelerated         = Y\n+\n+;\n+; Supported crypto algorithms of the 'uadk' crypto driver.\n+;\n+[Cipher]\n+\n+;\n+; Supported authentication algorithms of the 'uadk' crypto driver.\n+;\n+[Auth]\n+\n+;\n+; Supported AEAD algorithms of the 'uadk' crypto driver.\n+;\n+[AEAD]\n+\n+;\n+; Supported Asymmetric algorithms of the 'uadk' crypto driver.\n+;\n+[Asymmetric]\n+\n+;\n+; Supported Operating systems of the 'uadk' crypto driver.\n+;\n+[OS]\n+Linux = Y\ndiff --git a/doc/guides/cryptodevs/index.rst b/doc/guides/cryptodevs/index.rst\nindex 39cca6dbde..cb4ce227e9 100644\n--- a/doc/guides/cryptodevs/index.rst\n+++ b/doc/guides/cryptodevs/index.rst\n@@ -30,5 +30,6 @@ Crypto Device Drivers\n     scheduler\n     snow3g\n     qat\n+    uadk\n     virtio\n     zuc\ndiff --git a/doc/guides/cryptodevs/uadk.rst b/doc/guides/cryptodevs/uadk.rst\nnew file mode 100644\nindex 0000000000..2a0cb300e9\n--- /dev/null\n+++ b/doc/guides/cryptodevs/uadk.rst\n@@ -0,0 +1,72 @@\n+..  SPDX-License-Identifier: BSD-3-Clause\n+    Copyright 2022-2023 Huawei Technologies Co.,Ltd. All rights reserved.\n+    Copyright 2022-2023 Linaro ltd.\n+\n+UADK Crypto Poll Mode Driver\n+============================\n+\n+This code provides the initial implementation of the UADK poll mode\n+driver. All cryptographic operations are using UADK library crypto API,\n+which is algorithm level API, abstracting accelerators' low level\n+implementations.\n+\n+UADK crypto PMD relies on UADK library [1]\n+\n+UADK is a framework for user applications to access hardware accelerators.\n+UADK relies on IOMMU SVA (Shared Virtual Address) feature, which share\n+the same page table between IOMMU and MMU.\n+As a result, user application can directly use virtual address for device DMA,\n+which enhances the performance as well as easy usability.\n+\n+\n+Features\n+--------\n+\n+UADK crypto PMD has support for:\n+\n+\n+Test steps\n+----------\n+\n+   .. code-block:: console\n+\n+\t1. Build UADK\n+\t$ git clone https://github.com/Linaro/uadk.git\n+\t$ cd uadk\n+\t$ mkdir build\n+\t$ ./autogen.sh\n+\t$ ./configure --prefix=$PWD/build\n+\t$ make\n+\t$ make install\n+\n+\t* Without --prefix, UADK will be installed to /usr/local/lib by default\n+\t* If get error:\"cannot find -lnuma\", please install the libnuma-dev\n+\n+\t2. Run pkg-config libwd to ensure env is setup correctly\n+\t$ export PKG_CONFIG_PATH=$PWD/build/lib/pkgconfig\n+\t$ pkg-config libwd --cflags --libs\n+\t-I/usr/local/include -L/usr/local/lib -lwd\n+\n+\t* export PKG_CONFIG_PATH is required on demand,\n+\t  not needed if UADK is installed to /usr/local/lib\n+\n+\t3. Build DPDK\n+\t$ cd dpdk\n+\t$ mkdir build\n+\t$ meson build (--reconfigure)\n+\t$ cd build\n+\t$ ninja\n+\t$ sudo ninja install\n+\n+\t4. Prepare hugepage for dpdk\n+\t$ echo 1024 > /sys/devices/system/node/node0/hugepages/hugepages-2048kB/nr_hugepages\n+\t$ echo 1024 > /sys/devices/system/node/node1/hugepages/hugepages-2048kB/nr_hugepages\n+\t$ echo 1024 > /sys/devices/system/node/node2/hugepages/hugepages-2048kB/nr_hugepages\n+\t$ echo 1024 > /sys/devices/system/node/node3/hugepages/hugepages-2048kB/nr_hugepages\n+\t$ mkdir -p /mnt/huge_2mb\n+\t$ mount -t hugetlbfs none /mnt/huge_2mb -o pagesize=2MB\n+\n+\t5. Run test app\n+\n+\n+[1] https://github.com/Linaro/uadk\ndiff --git a/doc/guides/rel_notes/release_22_11.rst b/doc/guides/rel_notes/release_22_11.rst\nindex 81cd66390d..6126031d2b 100644\n--- a/doc/guides/rel_notes/release_22_11.rst\n+++ b/doc/guides/rel_notes/release_22_11.rst\n@@ -197,6 +197,12 @@ New Features\n   integrated on SPR-EE.  See the\n   :doc:`../bbdevs/acc200` BBDEV guide for more details on this new driver.\n \n+* **Added UADK crypto driver.**\n+\n+  Added a new ``UADK`` crypto driver for the UADK library\n+  See the\n+  :doc:`../cryptodevs/uadk.rst` UADK guide for more details on this new driver.\n+\n * **Added eventdev adapter instance get API.**\n \n   * Added ``rte_event_eth_rx_adapter_instance_get`` to get Rx adapter\ndiff --git a/drivers/crypto/meson.build b/drivers/crypto/meson.build\nindex 147b8cf633..ee5377deff 100644\n--- a/drivers/crypto/meson.build\n+++ b/drivers/crypto/meson.build\n@@ -18,6 +18,7 @@ drivers = [\n         'octeontx',\n         'openssl',\n         'scheduler',\n+        'uadk',\n         'virtio',\n ]\n \ndiff --git a/drivers/crypto/uadk/meson.build b/drivers/crypto/uadk/meson.build\nnew file mode 100644\nindex 0000000000..f6fae0a239\n--- /dev/null\n+++ b/drivers/crypto/uadk/meson.build\n@@ -0,0 +1,30 @@\n+# SPDX-License-Identifier: BSD-3-Clause\n+# Copyright 2022-2023 Huawei Technologies Co.,Ltd. All rights reserved.\n+# Copyright 2022-2023 Linaro ltd.\n+\n+if not is_linux\n+    build = false\n+    reason = 'only supported on Linux'\n+    subdir_done()\n+endif\n+\n+sources = files(\n+        'uadk_crypto_pmd.c',\n+)\n+\n+deps += 'bus_vdev'\n+dep = dependency('libwd_crypto', required: false, method: 'pkg-config')\n+if not dep.found()\n+\tbuild = false\n+\treason = 'missing dependency, \"libwd_crypto\"'\n+else\n+\text_deps += dep\n+endif\n+\n+dep = dependency('libwd', required: false, method: 'pkg-config')\n+if not dep.found()\n+\tbuild = false\n+\treason = 'missing dependency, \"libwd\"'\n+else\n+\text_deps += dep\n+endif\ndiff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk/uadk_crypto_pmd.c\nnew file mode 100644\nindex 0000000000..34df3ccbb9\n--- /dev/null\n+++ b/drivers/crypto/uadk/uadk_crypto_pmd.c\n@@ -0,0 +1,110 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2022-2023 Huawei Technologies Co.,Ltd. All rights reserved.\n+ * Copyright 2022-2023 Linaro ltd.\n+ */\n+\n+#include <stdlib.h>\n+\n+#include <bus_vdev_driver.h>\n+#include <cryptodev_pmd.h>\n+#include <rte_bus_vdev.h>\n+\n+#include <uadk/wd_cipher.h>\n+#include <uadk/wd_digest.h>\n+#include <uadk/wd_sched.h>\n+\n+#include \"uadk_crypto_pmd_private.h\"\n+\n+static uint8_t uadk_cryptodev_driver_id;\n+\n+static struct rte_cryptodev_ops uadk_crypto_pmd_ops = {\n+\t\t.dev_configure\t\t= NULL,\n+\t\t.dev_start\t\t= NULL,\n+\t\t.dev_stop\t\t= NULL,\n+\t\t.dev_close\t\t= NULL,\n+\t\t.stats_get\t\t= NULL,\n+\t\t.stats_reset\t\t= NULL,\n+\t\t.dev_infos_get\t\t= NULL,\n+\t\t.queue_pair_setup\t= NULL,\n+\t\t.queue_pair_release\t= NULL,\n+\t\t.sym_session_get_size\t= NULL,\n+\t\t.sym_session_configure\t= NULL,\n+\t\t.sym_session_clear\t= NULL,\n+};\n+\n+static int\n+uadk_cryptodev_probe(struct rte_vdev_device *vdev)\n+{\n+\tstruct rte_cryptodev_pmd_init_params init_params = {\n+\t\t.name = \"\",\n+\t\t.private_data_size = sizeof(struct uadk_crypto_priv),\n+\t\t.max_nb_queue_pairs =\n+\t\t\t\tRTE_CRYPTODEV_PMD_DEFAULT_MAX_NB_QUEUE_PAIRS,\n+\t};\n+\tenum uadk_crypto_version version = UADK_CRYPTO_V2;\n+\tstruct uadk_crypto_priv *priv;\n+\tstruct rte_cryptodev *dev;\n+\tstruct uacce_dev *udev;\n+\tconst char *name;\n+\n+\tudev = wd_get_accel_dev(\"cipher\");\n+\tif (!udev)\n+\t\treturn -ENODEV;\n+\n+\tif (!strcmp(udev->api, \"hisi_qm_v2\"))\n+\t\tversion = UADK_CRYPTO_V2;\n+\n+\tfree(udev);\n+\n+\tname = rte_vdev_device_name(vdev);\n+\tif (name == NULL)\n+\t\treturn -EINVAL;\n+\n+\tdev = rte_cryptodev_pmd_create(name, &vdev->device, &init_params);\n+\tif (dev == NULL) {\n+\t\tUADK_LOG(ERR, \"driver %s: create failed\", init_params.name);\n+\t\treturn -ENODEV;\n+\t}\n+\n+\tdev->dev_ops = &uadk_crypto_pmd_ops;\n+\tdev->driver_id = uadk_cryptodev_driver_id;\n+\tdev->dequeue_burst = NULL;\n+\tdev->enqueue_burst = NULL;\n+\tdev->feature_flags = RTE_CRYPTODEV_FF_HW_ACCELERATED;\n+\tpriv = dev->data->dev_private;\n+\tpriv->version = version;\n+\n+\trte_cryptodev_pmd_probing_finish(dev);\n+\n+\treturn 0;\n+}\n+\n+static int\n+uadk_cryptodev_remove(struct rte_vdev_device *vdev)\n+{\n+\tstruct rte_cryptodev *cryptodev;\n+\tconst char *name;\n+\n+\tname = rte_vdev_device_name(vdev);\n+\tif (name == NULL)\n+\t\treturn -EINVAL;\n+\n+\tcryptodev = rte_cryptodev_pmd_get_named_dev(name);\n+\tif (cryptodev == NULL)\n+\t\treturn -ENODEV;\n+\n+\treturn rte_cryptodev_pmd_destroy(cryptodev);\n+}\n+\n+static struct rte_vdev_driver uadk_crypto_pmd = {\n+\t.probe       = uadk_cryptodev_probe,\n+\t.remove      = uadk_cryptodev_remove,\n+};\n+\n+static struct cryptodev_driver uadk_crypto_drv;\n+\n+#define UADK_CRYPTO_DRIVER_NAME crypto_uadk\n+RTE_PMD_REGISTER_VDEV(UADK_CRYPTO_DRIVER_NAME, uadk_crypto_pmd);\n+RTE_PMD_REGISTER_CRYPTO_DRIVER(uadk_crypto_drv, uadk_crypto_pmd.driver,\n+\t\t\t       uadk_cryptodev_driver_id);\n+RTE_LOG_REGISTER_DEFAULT(uadk_crypto_logtype, INFO);\ndiff --git a/drivers/crypto/uadk/uadk_crypto_pmd_private.h b/drivers/crypto/uadk/uadk_crypto_pmd_private.h\nnew file mode 100644\nindex 0000000000..c4090f6119\n--- /dev/null\n+++ b/drivers/crypto/uadk/uadk_crypto_pmd_private.h\n@@ -0,0 +1,25 @@\n+/* SPDX-License-Identifier: BSD-3-Clause\n+ * Copyright 2022-2023 Huawei Technologies Co.,Ltd. All rights reserved.\n+ * Copyright 2022-2023 Linaro ltd.\n+ */\n+\n+#ifndef _UADK_CRYPTO_PMD_PRIVATE_H_\n+#define _UADK_CRYPTO_PMD_PRIVATE_H_\n+\n+enum uadk_crypto_version {\n+\tUADK_CRYPTO_V2,\n+\tUADK_CRYPTO_V3,\n+};\n+\n+struct uadk_crypto_priv {\n+\tenum uadk_crypto_version version;\n+} __rte_cache_aligned;\n+\n+extern int uadk_crypto_logtype;\n+\n+#define UADK_LOG(level, fmt, ...)  \\\n+\trte_log(RTE_LOG_ ## level, uadk_crypto_logtype,  \\\n+\t\t\"%s() line %u: \" fmt \"\\n\", __func__, __LINE__,  \\\n+\t\t## __VA_ARGS__)\n+\n+#endif /* _UADK_CRYPTO_PMD_PRIVATE_H_ */\ndiff --git a/drivers/crypto/uadk/version.map b/drivers/crypto/uadk/version.map\nnew file mode 100644\nindex 0000000000..78c3585d7c\n--- /dev/null\n+++ b/drivers/crypto/uadk/version.map\n@@ -0,0 +1,3 @@\n+DPDK_23 {\n+\tlocal: *;\n+};\n",
    "prefixes": [
        "v7",
        "1/6"
    ]
}