Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/118562/?format=api
http://patches.dpdk.org/api/patches/118562/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20221019125753.1700071-4-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": "<20221019125753.1700071-4-zhangfei.gao@linaro.org>", "list_archive_url": "https://inbox.dpdk.org/dev/20221019125753.1700071-4-zhangfei.gao@linaro.org", "date": "2022-10-19T12:57:50", "name": "[v4,3/6] crypto/uadk: support enqueue/dequeue operations", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "fa6688340c0abefa1dfa786186d282d99a2769c6", "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/20221019125753.1700071-4-zhangfei.gao@linaro.org/mbox/", "series": [ { "id": 25304, "url": "http://patches.dpdk.org/api/series/25304/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=25304", "date": "2022-10-19T12:57:47", "name": "crypto/uadk: introduce uadk crypto driver", "version": 4, "mbox": "http://patches.dpdk.org/series/25304/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/118562/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/118562/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 76347A0584;\n\tWed, 19 Oct 2022 15:04:30 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D234942BAC;\n\tWed, 19 Oct 2022 15:04:15 +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 AD54942B91\n for <dev@dpdk.org>; Wed, 19 Oct 2022 15:04:11 +0200 (CEST)", "by mail-wr1-f54.google.com with SMTP id f11so29022410wrm.6\n for <dev@dpdk.org>; Wed, 19 Oct 2022 06:04:11 -0700 (PDT)", "from localhost.localdomain ([213.146.143.36])\n by smtp.gmail.com with ESMTPSA id\n b7-20020adfe307000000b0022cbf4cda62sm16807051wrj.27.2022.10.19.06.04.10\n (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256);\n Wed, 19 Oct 2022 06:04:10 -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=2dU0jBqimPaqD7wisR+m/lJ8t9u0tfSMOkV6toBUYNk=;\n b=tiRIc9Rvu6zhHOe7la0NeXKnWb5gbKoD+At2Rd1x+qiqtumPnK8GnvL5OvPPxA/VPG\n Zy2JXmXASRvgHPuKMN1hEytshKSBGU6lbv5ks3zdrXNLLmutt8OG6Xb6xRRQnKy+1dX2\n yB36Mxr4JD6bGjbbmvuY6cr6JBxMVHU9GgQXoctyHAPhSunk9Z2nkeslfESwmuyX6AOk\n gi2vd6loK1yJombUCbKH+0vhasXxYQeHcw0pCdy5xXdmTM4Bu0uJSLYAjBVj07FZREY3\n fYwABThkUDZT3PBEaROO+csLYb1BkcONi/SCtUVm9KeL0jFsN29xLAMwR35N64RF6lKZ\n JaTg==", "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=2dU0jBqimPaqD7wisR+m/lJ8t9u0tfSMOkV6toBUYNk=;\n b=CAvhcl6tjeCfUoDq49yQSghdNtzxwF8GdBHa5/X8DJY4Co2W5KWTGjr+sTMxv4uK9b\n fUb0BVdb9C0T11nGB+l07ygHlZnfE+zkylYTK68c6lJCj2B18aTutxaiBKvNH8DEctjo\n v3f3ft1PM5YipAMmbjl0M6oG3pWd/gcC7R72Om0rePHOFf9ixSGyj32PdqUFdZbrzKAj\n CuhNCbCiOihWngP55a5zJLFvfSlMdZ8Bk8EsWWgsi+HW+hmw+J4uMGik31NsK+htF6eK\n hO13aMET7/5oJ9AGncqKVtY8BRnamCWaXPZsLxUCbuiJE2ei4dhCdZJMbCF3zc7FaBkN\n y9pg==", "X-Gm-Message-State": "ACrzQf1nUcoWH931cWXbINPQoGz+4Kn2tG9wBetfa4R6s1wQB4iDozNu\n +tXRGL9OSzmcNCMljmDSKBt11Q==", "X-Google-Smtp-Source": "\n AMsMyM7avPjEUT7ZCvb+Lb/SLPJekooSkYXJd1zOj2dI4BjcrojfbD9ZBcl7RnE4SQhExfaB+oRwBQ==", "X-Received": "by 2002:a5d:64a8:0:b0:22e:409f:a3cb with SMTP id\n m8-20020a5d64a8000000b0022e409fa3cbmr5054450wrp.168.1666184650980;\n Wed, 19 Oct 2022 06:04:10 -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>", "Cc": "dev@dpdk.org,\n\tacc@openeuler.org,\n\tZhangfei Gao <zhangfei.gao@linaro.org>", "Subject": "[PATCH v4 3/6] crypto/uadk: support enqueue/dequeue operations", "Date": "Wed, 19 Oct 2022 20:57:50 +0800", "Message-Id": "<20221019125753.1700071-4-zhangfei.gao@linaro.org>", "X-Mailer": "git-send-email 2.25.1", "In-Reply-To": "<20221019125753.1700071-1-zhangfei.gao@linaro.org>", "References": "<20221019125753.1700071-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 1d1a4b2897..051d6726b0 100644\n--- a/drivers/crypto/uadk/uadk_crypto_pmd.c\n+++ b/drivers/crypto/uadk/uadk_crypto_pmd.c\n@@ -240,6 +240,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@@ -276,8 +325,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": [ "v4", "3/6" ] }{ "id": 118562, "url": "