Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/110973/?format=api
http://patchwork.dpdk.org/api/patches/110973/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20220510124045.22552-1-ktejasree@marvell.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20220510124045.22552-1-ktejasree@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220510124045.22552-1-ktejasree@marvell.com", "date": "2022-05-10T12:40:45", "name": "test/crypto-perf: allow auth generate followed by encryption", "commit_ref": null, "pull_url": null, "state": "accepted", "archived": true, "hash": "fdce66c36d78612f8bcedff72813b339708c784b", "submitter": { "id": 1789, "url": "http://patchwork.dpdk.org/api/people/1789/?format=api", "name": "Tejasree Kondoj", "email": "ktejasree@marvell.com" }, "delegate": { "id": 6690, "url": "http://patchwork.dpdk.org/api/users/6690/?format=api", "username": "akhil", "first_name": "akhil", "last_name": "goyal", "email": "gakhil@marvell.com" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20220510124045.22552-1-ktejasree@marvell.com/mbox/", "series": [ { "id": 22865, "url": "http://patchwork.dpdk.org/api/series/22865/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=22865", "date": "2022-05-10T12:40:45", "name": "test/crypto-perf: allow auth generate followed by encryption", "version": 1, "mbox": "http://patchwork.dpdk.org/series/22865/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/110973/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/110973/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 3188AA0093;\n\tTue, 10 May 2022 13:45:03 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C9EB2406B4;\n\tTue, 10 May 2022 13:45:02 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id A09A44069D\n for <dev@dpdk.org>; Tue, 10 May 2022 13:45:01 +0200 (CEST)", "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.17.1.5/8.17.1.5) with ESMTP id\n 24AA8NQu001861;\n Tue, 10 May 2022 04:45:00 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3fyp1braqu-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Tue, 10 May 2022 04:45:00 -0700", "from DC5-EXCH02.marvell.com (10.69.176.39) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Tue, 10 May 2022 04:44:59 -0700", "from maili.marvell.com (10.69.176.80) by DC5-EXCH02.marvell.com\n (10.69.176.39) with Microsoft SMTP Server id 15.0.1497.18 via Frontend\n Transport; Tue, 10 May 2022 04:44:59 -0700", "from hyd1554T5810.caveonetworks.com.com (unknown [10.29.57.11])\n by maili.marvell.com (Postfix) with ESMTP id F2F133F708A;\n Tue, 10 May 2022 04:44:56 -0700 (PDT)" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=marvell.com;\n h=from : to : cc :\n subject : date : message-id : mime-version : content-transfer-encoding :\n content-type; s=pfpt0220; bh=GGYfV3n2q9nEpNevLNYJNX2UDZ1RPSbtXKjztGYduvw=;\n b=IHmMcdr+/In7mRi5KsoNkxl5/TO2WLHolVWp5RgUUZ3BuJEXzrxJhBphWZa3cbfc+/Mu\n yBu3NuKIQ+tDrUfM4BgJ9CMECEDOWfW3LUD5bdlUSI5SKLHOg0orNsghuuOh/5Z4b3Ln\n 4ciBIPX3IiT5StcqJWHhX3+BmJGVneEK7zmAKoEwQjl8ZWX7lAhAq1oanyE+WbFX0XyB\n TS1B8OYTwJPqqlJ9uXIR+MpG+X5CmY+yzwDQpEBEHae+SwW9Is/3m5+D3oX2RdIzUvR9\n VJ9LmfwnYlFcQ5C9q6oppZHuNDqF/oNnY2IdVcHwy88XB1WuMlehlyxshvSPIGgWT6Sv YA==", "From": "Tejasree Kondoj <ktejasree@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>, Ciara Power <ciara.power@intel.com>", "CC": "Tejasree Kondoj <ktejasree@marvell.com>,\n Anoob Joseph <anoobj@marvell.com>,\n Fan Zhang <roy.fan.zhang@intel.com>, <dev@dpdk.org>", "Subject": "[PATCH] test/crypto-perf: allow auth generate followed by encryption", "Date": "Tue, 10 May 2022 18:10:45 +0530", "Message-ID": "<20220510124045.22552-1-ktejasree@marvell.com>", "X-Mailer": "git-send-email 2.27.0", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "vJILj5Xy0TS6hiPzbcT9vEIXVKJHHEpG", "X-Proofpoint-ORIG-GUID": "vJILj5Xy0TS6hiPzbcT9vEIXVKJHHEpG", "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.858,Hydra:6.0.486,FMLib:17.11.64.514\n definitions=2022-05-10_01,2022-05-10_01,2022-02-23_01", "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": "Allowing auth generation followed by encryption mode.\n--optype auth-then-cipher can take cipher-op as encrypt\nand auth-op as generate now.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n app/test-crypto-perf/cperf_ops.c | 4 +++\n app/test-crypto-perf/cperf_options_parsing.c | 30 ++++++++++++++------\n 2 files changed, 26 insertions(+), 8 deletions(-)", "diff": "diff --git a/app/test-crypto-perf/cperf_ops.c b/app/test-crypto-perf/cperf_ops.c\nindex cbefce8d6c..93d2744c68 100644\n--- a/app/test-crypto-perf/cperf_ops.c\n+++ b/app/test-crypto-perf/cperf_ops.c\n@@ -458,6 +458,10 @@ cperf_set_ops_cipher_auth(struct rte_crypto_op **ops,\n \t\t} else\n \t\t\tsym_op->cipher.data.length = options->test_buffer_size;\n \n+\t\tif ((options->auth_op == RTE_CRYPTO_AUTH_OP_GENERATE) &&\n+\t\t\t\t(options->op_type == CPERF_AUTH_THEN_CIPHER))\n+\t\t\tsym_op->cipher.data.length += options->digest_sz;\n+\n \t\tif (options->cipher_algo == RTE_CRYPTO_CIPHER_SNOW3G_UEA2 ||\n \t\t\t\toptions->cipher_algo == RTE_CRYPTO_CIPHER_KASUMI_F8 ||\n \t\t\t\toptions->cipher_algo == RTE_CRYPTO_CIPHER_ZUC_EEA3)\ndiff --git a/app/test-crypto-perf/cperf_options_parsing.c b/app/test-crypto-perf/cperf_options_parsing.c\nindex 09c98121c8..566255bf2d 100644\n--- a/app/test-crypto-perf/cperf_options_parsing.c\n+++ b/app/test-crypto-perf/cperf_options_parsing.c\n@@ -1130,6 +1130,20 @@ check_docsis_buffer_length(struct cperf_options *options)\n }\n #endif\n \n+static bool\n+is_valid_chained_op(struct cperf_options *options)\n+{\n+\tif (options->cipher_op == RTE_CRYPTO_CIPHER_OP_ENCRYPT &&\n+\t\t\toptions->auth_op == RTE_CRYPTO_AUTH_OP_GENERATE)\n+\t\treturn true;\n+\n+\tif (options->cipher_op == RTE_CRYPTO_CIPHER_OP_DECRYPT &&\n+\t\t\toptions->auth_op == RTE_CRYPTO_AUTH_OP_VERIFY)\n+\t\treturn true;\n+\n+\treturn false;\n+}\n+\n int\n cperf_options_check(struct cperf_options *options)\n {\n@@ -1236,6 +1250,14 @@ cperf_options_check(struct cperf_options *options)\n \t\treturn -EINVAL;\n \t}\n \n+\tif (options->op_type == CPERF_CIPHER_THEN_AUTH ||\n+\t\t\toptions->op_type == CPERF_AUTH_THEN_CIPHER) {\n+\t\tif (!is_valid_chained_op(options)) {\n+\t\t\tRTE_LOG(ERR, USER1, \"Invalid chained operation.\\n\");\n+\t\t\treturn -EINVAL;\n+\t\t}\n+\t}\n+\n \tif (options->op_type == CPERF_CIPHER_THEN_AUTH) {\n \t\tif (options->cipher_op != RTE_CRYPTO_CIPHER_OP_ENCRYPT &&\n \t\t\t\toptions->auth_op !=\n@@ -1244,14 +1266,6 @@ cperf_options_check(struct cperf_options *options)\n \t\t\t\t\t\" options: encrypt and generate.\\n\");\n \t\t\treturn -EINVAL;\n \t\t}\n-\t} else if (options->op_type == CPERF_AUTH_THEN_CIPHER) {\n-\t\tif (options->cipher_op != RTE_CRYPTO_CIPHER_OP_DECRYPT &&\n-\t\t\t\toptions->auth_op !=\n-\t\t\t\tRTE_CRYPTO_AUTH_OP_VERIFY) {\n-\t\t\tRTE_LOG(ERR, USER1, \"Option auth then cipher must use\"\n-\t\t\t\t\t\" options: decrypt and verify.\\n\");\n-\t\t\treturn -EINVAL;\n-\t\t}\n \t}\n \n \tif (options->op_type == CPERF_CIPHER_ONLY ||\n", "prefixes": [] }{ "id": 110973, "url": "