Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/117092/?format=api
https://patches.dpdk.org/api/patches/117092/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/20220929032746.10659-4-zhangfei.gao@linaro.org/", "project": { "id": 1, "url": "https://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": "<20220929032746.10659-4-zhangfei.gao@linaro.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20220929032746.10659-4-zhangfei.gao@linaro.org", "date": "2022-09-29T03:27:43", "name": "[v3,3/6] crypto/uadk: support enqueue/dequeue operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fa6688340c0abefa1dfa786186d282d99a2769c6", "submitter": { "id": 2701, "url": "https://patches.dpdk.org/api/people/2701/?format=api", "name": "Zhangfei Gao", "email": "zhangfei.gao@linaro.org" }, "delegate": { "id": 6690, "url": "https://patches.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "https://patches.dpdk.org/project/dpdk/patch/20220929032746.10659-4-zhangfei.gao@linaro.org/mbox/", "series": [ { "id": 24894, "url": "https://patches.dpdk.org/api/series/24894/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=24894", "date": "2022-09-29T03:27:40", "name": "crypto/uadk: introduce uadk crypto driver", "version": 3, "mbox": "https://patches.dpdk.org/series/24894/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/117092/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/117092/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 867ACA00C4;\n\tThu, 29 Sep 2022 05:28:18 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 1B6944282D;\n\tThu, 29 Sep 2022 05:28:17 +0200 (CEST)", "from mail-pg1-f179.google.com (mail-pg1-f179.google.com\n [209.85.215.179])\n by mails.dpdk.org (Postfix) with ESMTP id B422D4113D\n for <dev@dpdk.org>; Thu, 29 Sep 2022 05:28:15 +0200 (CEST)", "by mail-pg1-f179.google.com with SMTP id q9so307926pgq.8\n for <dev@dpdk.org>; Wed, 28 Sep 2022 20:28:15 -0700 (PDT)", "from localhost.localdomain ([45.128.198.71])\n by smtp.gmail.com with ESMTPSA id\n gn4-20020a17090ac78400b001fd66d5c42csm2304271pjb.49.2022.09.28.20.28.10\n (version=TLS1_2 cipher=ECDHE-ECDSA-AES128-GCM-SHA256 bits=128/128);\n Wed, 28 Sep 2022 20:28:14 -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 bh=ETZW2UP3KR9q5o/BAWuTYCKbn5qB4v5IKY/vDqSzcXg=;\n b=PAp83UYscHlhS07+8HGg7IGMyIfLYfLo+Ao4KgutjAACF92SPpTtLLdnL0I+5ktA6G\n oQaT07kvxbCCFC/NMER9x72KPqdxSIEIh0+hsvBc6gHpoW1qJyV143w5wbSTASidVAfz\n A/CTQMmOVw6Nlt6olTDmZRc2SCa6d8FMZbruR29UGnrH59A7MaQpFE5+Dq6Qj6pKibxQ\n 5qoHbi1zaxcRliOpW6FtSlAeeS5QbJPRAK5CktzIt+FOKGvLHJtPAx+zVdLdwf7l4uoe\n zimahQEeLu4pab8XNjRTcwFxTzfg+r4NtPZuHaX00tk5LJ7pT8WVSODJVnDG8kRl7EOH\n uYKA==", "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;\n bh=ETZW2UP3KR9q5o/BAWuTYCKbn5qB4v5IKY/vDqSzcXg=;\n b=WLe9XsEu972xpl4U4Lf5Xc+WG5/rFSikipMpbKpt9rYWgM9n3HBSnQV986/OWv+v1v\n Xphl3O5nYA6L+6qO3uMSSI02uVJAjOr7zIwDPe4F6v2wZCx6ZcFKtJ2LXP/6387ajDOS\n vxjjNIeOLoKCEJf0qMe0X8kmsd3ycbBuJc17ZNXoA2n5kKIeHjlqDUjFG2SDwo/ZWIp/\n ynGtfqOBNIUCDr9sG5a86W7NpwQ9RhRiqz3N+z++cQqgXDmdOjhQ4l1fL+FkmRtwSKlw\n tIsDFcqe10cxp8lHoCvj5bRG0DfZfqjoEckmqAFoR8rPPY5ZgnS/9IjULHgrT0eK1ba4\n 3dag==", "X-Gm-Message-State": "ACrzQf0ejYkftc1aU3PEE1NtpBGvhpRo0/ti/YfevrVv/uZqra0Ied/Y\n POeyKzwX8t/ss35YV0Ud7zVN2w==", "X-Google-Smtp-Source": "\n AMsMyM62Htpmv1ePCVnpwdEyQuN/spNMn0bOoP7JkMHG6gkVBt6KLsBhSvDGNOi6K2jYQYIvSSugGQ==", "X-Received": "by 2002:a63:5a0b:0:b0:434:4748:4e7a with SMTP id\n o11-20020a635a0b000000b0043447484e7amr975232pgb.561.1664422095032;\n Wed, 28 Sep 2022 20:28:15 -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 <roy.fan.zhang@intel.com>,\n Ashish Gupta <ashish.gupta@marvell.com>, Ray Kinsella <mdr@ashroe.eu>", "Cc": "dev@dpdk.org,\n\tacc@openeuler.org,\n\tZhangfei Gao <zhangfei.gao@linaro.org>", "Subject": "[PATCH v3 3/6] crypto/uadk: support enqueue/dequeue operations", "Date": "Thu, 29 Sep 2022 11:27:43 +0800", "Message-Id": "<20220929032746.10659-4-zhangfei.gao@linaro.org>", "X-Mailer": "git-send-email 2.36.1", "In-Reply-To": "<20220929032746.10659-1-zhangfei.gao@linaro.org>", "References": "<20220929032746.10659-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": "This commit adds the enqueue and dequeue operations.\n\nSigned-off-by: Zhangfei Gao <zhangfei.gao@linaro.org>\n---\n drivers/crypto/uadk/uadk_crypto_pmd.c | 53 ++++++++++++++++++++++++++-\n 1 file changed, 51 insertions(+), 2 deletions(-)", "diff": "diff --git a/drivers/crypto/uadk/uadk_crypto_pmd.c b/drivers/crypto/uadk/uadk_crypto_pmd.c\nindex d6d9f26337..99a10e7d77 100644\n--- a/drivers/crypto/uadk/uadk_crypto_pmd.c\n+++ b/drivers/crypto/uadk/uadk_crypto_pmd.c\n@@ -238,6 +238,55 @@ static struct rte_cryptodev_ops uadk_crypto_pmd_ops = {\n \t\t.sym_session_clear\t= NULL,\n };\n \n+static uint16_t\n+uadk_crypto_enqueue_burst(void *queue_pair, struct rte_crypto_op **ops,\n+\t\t\t uint16_t nb_ops)\n+{\n+\tstruct uadk_qp *qp = queue_pair;\n+\tstruct rte_crypto_op *op;\n+\tuint16_t enqd = 0;\n+\tint i, ret;\n+\n+\tfor (i = 0; i < nb_ops; i++) {\n+\t\top = ops[i];\n+\t\top->status = RTE_CRYPTO_OP_STATUS_NOT_PROCESSED;\n+\n+\t\tif (op->status == RTE_CRYPTO_OP_STATUS_NOT_PROCESSED)\n+\t\t\top->status = RTE_CRYPTO_OP_STATUS_SUCCESS;\n+\n+\t\tif (op->status != RTE_CRYPTO_OP_STATUS_ERROR) {\n+\t\t\tret = rte_ring_enqueue(qp->processed_pkts, (void *)op);\n+\t\t\tif (ret < 0)\n+\t\t\t\tgoto enqueue_err;\n+\t\t\tqp->qp_stats.enqueued_count++;\n+\t\t\tenqd++;\n+\t\t} else {\n+\t\t\t/* increment count if failed to enqueue op */\n+\t\t\tqp->qp_stats.enqueue_err_count++;\n+\t\t}\n+\t}\n+\n+\treturn enqd;\n+\n+enqueue_err:\n+\tqp->qp_stats.enqueue_err_count++;\n+\treturn enqd;\n+}\n+\n+static uint16_t\n+uadk_crypto_dequeue_burst(void *queue_pair, struct rte_crypto_op **ops,\n+\t\t\t uint16_t nb_ops)\n+{\n+\tstruct uadk_qp *qp = queue_pair;\n+\tunsigned int nb_dequeued;\n+\n+\tnb_dequeued = rte_ring_dequeue_burst(qp->processed_pkts,\n+\t\t\t(void **)ops, nb_ops, NULL);\n+\tqp->qp_stats.dequeued_count += nb_dequeued;\n+\n+\treturn nb_dequeued;\n+}\n+\n static int\n uadk_cryptodev_probe(struct rte_vdev_device *vdev)\n {\n@@ -274,8 +323,8 @@ uadk_cryptodev_probe(struct rte_vdev_device *vdev)\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->dequeue_burst = uadk_crypto_dequeue_burst;\n+\tdev->enqueue_burst = uadk_crypto_enqueue_burst;\n \tdev->feature_flags = RTE_CRYPTODEV_FF_HW_ACCELERATED;\n \tpriv = dev->data->dev_private;\n \tpriv->version = version;\n", "prefixes": [ "v3", "3/6" ] }{ "id": 117092, "url": "