Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/94853/?format=api
https://patches.dpdk.org/api/patches/94853/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/patch/1624602307-30098-4-git-send-email-anoobj@marvell.com/", "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": "<1624602307-30098-4-git-send-email-anoobj@marvell.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1624602307-30098-4-git-send-email-anoobj@marvell.com", "date": "2021-06-25T06:25:06", "name": "[v2,3/4] crypto/cnxk: add asymmetric capabilities", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "878c822c04f81902b4c46e83646e5a93486fb04d", "submitter": { "id": 1205, "url": "https://patches.dpdk.org/api/people/1205/?format=api", "name": "Anoob Joseph", "email": "anoobj@marvell.com" }, "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/1624602307-30098-4-git-send-email-anoobj@marvell.com/mbox/", "series": [ { "id": 17485, "url": "https://patches.dpdk.org/api/series/17485/?format=api", "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=17485", "date": "2021-06-25T06:25:03", "name": "Add asymmetric ops in crypto cnxk PMDs", "version": 2, "mbox": "https://patches.dpdk.org/series/17485/mbox/" } ], "comments": "https://patches.dpdk.org/api/patches/94853/comments/", "check": "success", "checks": "https://patches.dpdk.org/api/patches/94853/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 84811A0C40;\n\tFri, 25 Jun 2021 08:25:41 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id E264640E0F;\n\tFri, 25 Jun 2021 08:25:36 +0200 (CEST)", "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173])\n by mails.dpdk.org (Postfix) with ESMTP id 75B4E40E25\n for <dev@dpdk.org>; Fri, 25 Jun 2021 08:25:35 +0200 (CEST)", "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.43/8.16.0.43) with SMTP id\n 15P6PGiM000793; Thu, 24 Jun 2021 23:25:34 -0700", "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0b-0016f401.pphosted.com with ESMTP id 39d241smba-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Thu, 24 Jun 2021 23:25:34 -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.18;\n Thu, 24 Jun 2021 23:25:32 -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; Thu, 24 Jun 2021 23:25:32 -0700", "from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218])\n by maili.marvell.com (Postfix) with ESMTP id 6A74E3F704C;\n Thu, 24 Jun 2021 23:25:29 -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 : in-reply-to : references : mime-version :\n content-transfer-encoding : content-type; s=pfpt0220;\n bh=PdPZ/ivNTfOUZJztBXfomih3c/gayduMNwQE5k0IIF8=;\n b=eusZkJWXXj/MO5j9HJ4MB0HYBlmN3hbW0Tbo+CQV6R3B/VhnmEZ19KsvonaiTM28sbqT\n y0pPRkUCic56a8amjr0GIDfT9NpjEv7zhysw5fDpwi+ENQNjJIKdpPFXl/Ih1h2yEc2q\n eYhQRCjE6p6aY2q/DTle0lQASFaqLUJwzopAGlgHxf77Hm7ViPDhB1ndD7ewynZYnSHo\n eUdPUrWaxtGMJQ1ac9krXMVxGAPYg4Q3liorGV4ZnTB6v1CYEs8XZGsPHnQ9nA9R4jd5\n eWwydI4fYwOWtlYfdvNpPvkiw253zk1oyw77HoZLKLp37T2PraP8/b9ku1vAnfjdYVic Ag==", "From": "Anoob Joseph <anoobj@marvell.com>", "To": "Akhil Goyal <gakhil@marvell.com>, Thomas Monjalon <thomas@monjalon.net>", "CC": "Anoob Joseph <anoobj@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n \"Ankur Dwivedi\" <adwivedi@marvell.com>, Tejasree Kondoj\n <ktejasree@marvell.com>, <dev@dpdk.org>", "Date": "Fri, 25 Jun 2021 11:55:06 +0530", "Message-ID": "<1624602307-30098-4-git-send-email-anoobj@marvell.com>", "X-Mailer": "git-send-email 2.7.4", "In-Reply-To": "<1624602307-30098-1-git-send-email-anoobj@marvell.com>", "References": "<1622655994-24480-1-git-send-email-anoobj@marvell.com>\n <1624602307-30098-1-git-send-email-anoobj@marvell.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "Content-Type": "text/plain", "X-Proofpoint-GUID": "QDhWA64tvuwsGllKcoC0K7KfSXBKhaVH", "X-Proofpoint-ORIG-GUID": "QDhWA64tvuwsGllKcoC0K7KfSXBKhaVH", "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.391, 18.0.790\n definitions=2021-06-25_02:2021-06-24,\n 2021-06-25 signatures=0", "Subject": "[dpdk-dev] [PATCH v2 3/4] crypto/cnxk: add asymmetric capabilities", "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", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "Add asymmetric capabilities supported.\n\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\n---\n doc/guides/cryptodevs/cnxk.rst | 6 +++\n drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 56 +++++++++++++++++++++++\n 2 files changed, 62 insertions(+)", "diff": "diff --git a/doc/guides/cryptodevs/cnxk.rst b/doc/guides/cryptodevs/cnxk.rst\nindex db949fa..bbc6daa 100644\n--- a/doc/guides/cryptodevs/cnxk.rst\n+++ b/doc/guides/cryptodevs/cnxk.rst\n@@ -67,6 +67,12 @@ AEAD algorithms:\n * ``RTE_CRYPTO_AEAD_AES_GCM``\n * ``RTE_CRYPTO_AEAD_CHACHA20_POLY1305``\n \n+Asymmetric Crypto Algorithms\n+~~~~~~~~~~~~~~~~~~~~~~~~~~~~\n+\n+* ``RTE_CRYPTO_ASYM_XFORM_RSA``\n+* ``RTE_CRYPTO_ASYM_XFORM_MODEX``\n+\n Installation\n ------------\n \ndiff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\nindex d52fa89..ab37f9c 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\n@@ -28,6 +28,61 @@\n \t\t\t\t RTE_DIM(sec_caps_##name)); \\\n \t} while (0)\n \n+static const struct rte_cryptodev_capabilities caps_mul[] = {\n+\t{\t/* RSA */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,\n+\t\t{.asym = {\n+\t\t\t.xform_capa = {\n+\t\t\t\t.xform_type = RTE_CRYPTO_ASYM_XFORM_RSA,\n+\t\t\t\t.op_types = ((1 << RTE_CRYPTO_ASYM_OP_SIGN) |\n+\t\t\t\t\t(1 << RTE_CRYPTO_ASYM_OP_VERIFY) |\n+\t\t\t\t\t(1 << RTE_CRYPTO_ASYM_OP_ENCRYPT) |\n+\t\t\t\t\t(1 << RTE_CRYPTO_ASYM_OP_DECRYPT)),\n+\t\t\t\t{.modlen = {\n+\t\t\t\t\t.min = 17,\n+\t\t\t\t\t.max = 1024,\n+\t\t\t\t\t.increment = 1\n+\t\t\t\t}, }\n+\t\t\t}\n+\t\t}, }\n+\t},\n+\t{\t/* MOD_EXP */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,\n+\t\t{.asym = {\n+\t\t\t.xform_capa = {\n+\t\t\t\t.xform_type = RTE_CRYPTO_ASYM_XFORM_MODEX,\n+\t\t\t\t.op_types = 0,\n+\t\t\t\t{.modlen = {\n+\t\t\t\t\t.min = 17,\n+\t\t\t\t\t.max = 1024,\n+\t\t\t\t\t.increment = 1\n+\t\t\t\t}, }\n+\t\t\t}\n+\t\t}, }\n+\t},\n+\t{\t/* ECDSA */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,\n+\t\t{.asym = {\n+\t\t\t.xform_capa = {\n+\t\t\t\t.xform_type = RTE_CRYPTO_ASYM_XFORM_ECDSA,\n+\t\t\t\t.op_types = ((1 << RTE_CRYPTO_ASYM_OP_SIGN) |\n+\t\t\t\t\t(1 << RTE_CRYPTO_ASYM_OP_VERIFY)),\n+\t\t\t\t}\n+\t\t\t},\n+\t\t}\n+\t},\n+\t{\t/* ECPM */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_ASYMMETRIC,\n+\t\t{.asym = {\n+\t\t\t.xform_capa = {\n+\t\t\t\t.xform_type = RTE_CRYPTO_ASYM_XFORM_ECPM,\n+\t\t\t\t.op_types = 0\n+\t\t\t\t}\n+\t\t\t},\n+\t\t}\n+\t},\n+};\n+\n static const struct rte_cryptodev_capabilities caps_sha1_sha2[] = {\n \t{\t/* SHA1 */\n \t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n@@ -748,6 +803,7 @@ crypto_caps_populate(struct rte_cryptodev_capabilities cnxk_caps[],\n {\n \tint cur_pos = 0;\n \n+\tCPT_CAPS_ADD(cnxk_caps, &cur_pos, hw_caps, mul);\n \tCPT_CAPS_ADD(cnxk_caps, &cur_pos, hw_caps, sha1_sha2);\n \tCPT_CAPS_ADD(cnxk_caps, &cur_pos, hw_caps, chacha20);\n \tCPT_CAPS_ADD(cnxk_caps, &cur_pos, hw_caps, zuc_snow3g);\n", "prefixes": [ "v2", "3/4" ] }{ "id": 94853, "url": "