get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 105194,
    "url": "http://patches.dpdk.org/api/patches/105194/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1639676975-1316-23-git-send-email-anoobj@marvell.com/",
    "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": "<1639676975-1316-23-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1639676975-1316-23-git-send-email-anoobj@marvell.com",
    "date": "2021-12-16T17:49:28",
    "name": "[v2,22/29] crypto/cnxk: support lookaside IPsec AES-CTR",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "81ec8f81c3663542baaccf2923151bd1a4e98b18",
    "submitter": {
        "id": 1205,
        "url": "http://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "delegate": null,
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1639676975-1316-23-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 20957,
            "url": "http://patches.dpdk.org/api/series/20957/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=20957",
            "date": "2021-12-16T17:49:06",
            "name": "New features and improvements in cnxk crypto PMD",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/20957/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/105194/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/105194/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 9136CA0032;\n\tThu, 16 Dec 2021 18:55:55 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D74FC40DF7;\n\tThu, 16 Dec 2021 18:55:36 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0a-0016f401.pphosted.com\n [67.231.148.174])\n by mails.dpdk.org (Postfix) with ESMTP id 1C74341145\n for <dev@dpdk.org>; Thu, 16 Dec 2021 18:55:34 +0100 (CET)",
            "from pps.filterd (m0045849.ppops.net [127.0.0.1])\n by mx0a-0016f401.pphosted.com (8.16.1.2/8.16.1.2) with ESMTP id\n 1BGBde9D030189\n for <dev@dpdk.org>; Thu, 16 Dec 2021 09:54:34 -0800",
            "from dc5-exch01.marvell.com ([199.233.59.181])\n by mx0a-0016f401.pphosted.com (PPS) with ESMTPS id 3d04s71p8n-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT)\n for <dev@dpdk.org>; Thu, 16 Dec 2021 09:54:34 -0800",
            "from DC5-EXCH01.marvell.com (10.69.176.38) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server (TLS) id 15.0.1497.2;\n Thu, 16 Dec 2021 09:54:32 -0800",
            "from maili.marvell.com (10.69.176.80) by DC5-EXCH01.marvell.com\n (10.69.176.38) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Thu, 16 Dec 2021 09:54:32 -0800",
            "from HY-LT1002.marvell.com (HY-LT1002.marvell.com [10.28.176.218])\n by maili.marvell.com (Postfix) with ESMTP id C661D3F7072;\n Thu, 16 Dec 2021 09:54:30 -0800 (PST)"
        ],
        "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=mJdbFhmCKl5ubrYT9jE1HZaOuGc+vF2T3gfqqaOSgbg=;\n b=N0wFMkdRzDDnywaiujdc0OwyqdaGxP2NLhrZHpOZ/wXIQ2oU6qcRlH3zD8PDWP9GJqPG\n 7UMoknjg5eiouzLkVkdWwM5Q7eDD9aBuK1QhIC5QBmKl3x0no0Zyh+dZ+l9Vk+O8KKHz\n k/GyVcaNwB4+EmE54Lj8jOvZ459Tkfdrj7Q1mSBl8wLxGBQA3ky2eXXgswDv60pDCP50\n i4hpd0CBPbqMxPiCDRv0/CkNPTwjuzvuYSq8YcNDiRWZirEJIzMOA7ZeKdqQb370vXPg\n JQDHETSPI0XrqyyoIrDbUwEVH4+T8vyB+tOvz20IhbZHnlBzowgVIlTGyG199Kxd8gdL Fg==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <gakhil@marvell.com>, Jerin Jacob <jerinj@marvell.com>",
        "CC": "Tejasree Kondoj <ktejasree@marvell.com>, Archana Muniganti\n <marchana@marvell.com>, <dev@dpdk.org>",
        "Subject": "[PATCH v2 22/29] crypto/cnxk: support lookaside IPsec AES-CTR",
        "Date": "Thu, 16 Dec 2021 23:19:28 +0530",
        "Message-ID": "<1639676975-1316-23-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1639676975-1316-1-git-send-email-anoobj@marvell.com>",
        "References": "<1638859858-734-1-git-send-email-anoobj@marvell.com>\n <1639676975-1316-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-GUID": "T_Gj63kYBt5uZGC_d-uBDiGuG5T0FJor",
        "X-Proofpoint-ORIG-GUID": "T_Gj63kYBt5uZGC_d-uBDiGuG5T0FJor",
        "X-Proofpoint-Virus-Version": "vendor=baseguard\n engine=ICAP:2.0.205,Aquarius:18.0.790,Hydra:6.0.425,FMLib:17.11.62.513\n definitions=2021-12-16_06,2021-12-16_01,2021-12-02_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": "From: Tejasree Kondoj <ktejasree@marvell.com>\n\nAdding AES-CTR support to cnxk CPT in\nlookaside IPsec mode.\n\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\n---\n doc/guides/cryptodevs/cnxk.rst                    |  2 ++\n doc/guides/rel_notes/release_22_03.rst            |  1 +\n drivers/common/cnxk/cnxk_security.c               |  6 ++++++\n drivers/crypto/cnxk/cn9k_ipsec.c                  |  3 +++\n drivers/crypto/cnxk/cnxk_cryptodev.h              |  2 +-\n drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c | 20 ++++++++++++++++++++\n drivers/crypto/cnxk/cnxk_ipsec.h                  |  3 ++-\n 7 files changed, 35 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/doc/guides/cryptodevs/cnxk.rst b/doc/guides/cryptodevs/cnxk.rst\nindex c49a779..1239155 100644\n--- a/doc/guides/cryptodevs/cnxk.rst\n+++ b/doc/guides/cryptodevs/cnxk.rst\n@@ -261,6 +261,7 @@ Cipher algorithms\n +++++++++++++++++\n \n * AES-128/192/256-CBC\n+* AES-128/192/256-CTR\n \n Auth algorithms\n +++++++++++++++\n@@ -288,6 +289,7 @@ Cipher algorithms\n +++++++++++++++++\n \n * AES-128/192/256-CBC\n+* AES-128/192/256-CTR\n \n Auth algorithms\n +++++++++++++++\ndiff --git a/doc/guides/rel_notes/release_22_03.rst b/doc/guides/rel_notes/release_22_03.rst\nindex 8df9092..4b272e4 100644\n--- a/doc/guides/rel_notes/release_22_03.rst\n+++ b/doc/guides/rel_notes/release_22_03.rst\n@@ -60,6 +60,7 @@ New Features\n   * Added SHA256-HMAC support in lookaside protocol (IPsec) for CN10K.\n   * Added SHA384-HMAC support in lookaside protocol (IPsec) for CN9K & CN10K.\n   * Added SHA512-HMAC support in lookaside protocol (IPsec) for CN9K & CN10K.\n+  * Added AES-CTR support in lookaside protocol (IPsec) for CN9K & CN10K.\n \n \n Removed Items\ndiff --git a/drivers/common/cnxk/cnxk_security.c b/drivers/common/cnxk/cnxk_security.c\nindex 1c86f82..0d4baa9 100644\n--- a/drivers/common/cnxk/cnxk_security.c\n+++ b/drivers/common/cnxk/cnxk_security.c\n@@ -123,6 +123,9 @@ ot_ipsec_sa_common_param_fill(union roc_ot_ipsec_sa_word2 *w2,\n \t\tcase RTE_CRYPTO_CIPHER_AES_CBC:\n \t\t\tw2->s.enc_type = ROC_IE_OT_SA_ENC_AES_CBC;\n \t\t\tbreak;\n+\t\tcase RTE_CRYPTO_CIPHER_AES_CTR:\n+\t\t\tw2->s.enc_type = ROC_IE_OT_SA_ENC_AES_CTR;\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\treturn -ENOTSUP;\n \t\t}\n@@ -630,6 +633,9 @@ onf_ipsec_sa_common_param_fill(struct roc_ie_onf_sa_ctl *ctl, uint8_t *salt,\n \t\tcase RTE_CRYPTO_CIPHER_AES_CBC:\n \t\t\tctl->enc_type = ROC_IE_ON_SA_ENC_AES_CBC;\n \t\t\tbreak;\n+\t\tcase RTE_CRYPTO_CIPHER_AES_CTR:\n+\t\t\tctl->enc_type = ROC_IE_ON_SA_ENC_AES_CTR;\n+\t\t\tbreak;\n \t\tdefault:\n \t\t\treturn -ENOTSUP;\n \t\t}\ndiff --git a/drivers/crypto/cnxk/cn9k_ipsec.c b/drivers/crypto/cnxk/cn9k_ipsec.c\nindex c27845c..1e2269c 100644\n--- a/drivers/crypto/cnxk/cn9k_ipsec.c\n+++ b/drivers/crypto/cnxk/cn9k_ipsec.c\n@@ -166,6 +166,9 @@ ipsec_sa_ctl_set(struct rte_security_ipsec_xform *ipsec,\n \t} else if (cipher_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC) {\n \t\tctl->enc_type = ROC_IE_ON_SA_ENC_AES_CBC;\n \t\taes_key_len = cipher_xform->cipher.key.length;\n+\t} else if (cipher_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CTR) {\n+\t\tctl->enc_type = ROC_IE_ON_SA_ENC_AES_CTR;\n+\t\taes_key_len = cipher_xform->cipher.key.length;\n \t} else {\n \t\treturn -ENOTSUP;\n \t}\ndiff --git a/drivers/crypto/cnxk/cnxk_cryptodev.h b/drivers/crypto/cnxk/cnxk_cryptodev.h\nindex f701c26..4a1e377 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev.h\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev.h\n@@ -11,7 +11,7 @@\n #include \"roc_cpt.h\"\n \n #define CNXK_CPT_MAX_CAPS\t 34\n-#define CNXK_SEC_CRYPTO_MAX_CAPS 8\n+#define CNXK_SEC_CRYPTO_MAX_CAPS 9\n #define CNXK_SEC_MAX_CAPS\t 5\n #define CNXK_AE_EC_ID_MAX\t 8\n /**\ndiff --git a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\nindex 0fdd91a..fae433e 100644\n--- a/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\n+++ b/drivers/crypto/cnxk/cnxk_cryptodev_capabilities.c\n@@ -754,6 +754,26 @@ static const struct rte_cryptodev_capabilities sec_caps_aes[] = {\n \t\t\t}, }\n \t\t}, }\n \t},\n+\t{\t/* AES CTR */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n+\t\t{.sym = {\n+\t\t\t.xform_type = RTE_CRYPTO_SYM_XFORM_CIPHER,\n+\t\t\t{.cipher = {\n+\t\t\t\t.algo = RTE_CRYPTO_CIPHER_AES_CTR,\n+\t\t\t\t.block_size = 16,\n+\t\t\t\t.key_size = {\n+\t\t\t\t\t.min = 16,\n+\t\t\t\t\t.max = 32,\n+\t\t\t\t\t.increment = 8\n+\t\t\t\t},\n+\t\t\t\t.iv_size = {\n+\t\t\t\t\t.min = 12,\n+\t\t\t\t\t.max = 16,\n+\t\t\t\t\t.increment = 4\n+\t\t\t\t}\n+\t\t\t}, }\n+\t\t}, }\n+\t},\n \t{\t/* AES CBC */\n \t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n \t\t{.sym = {\ndiff --git a/drivers/crypto/cnxk/cnxk_ipsec.h b/drivers/crypto/cnxk/cnxk_ipsec.h\nindex 426eaa8..f5a51b5 100644\n--- a/drivers/crypto/cnxk/cnxk_ipsec.h\n+++ b/drivers/crypto/cnxk/cnxk_ipsec.h\n@@ -20,7 +20,8 @@ struct cnxk_cpt_inst_tmpl {\n static inline int\n ipsec_xform_cipher_verify(struct rte_crypto_sym_xform *crypto_xform)\n {\n-\tif (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC) {\n+\tif (crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CBC ||\n+\t    crypto_xform->cipher.algo == RTE_CRYPTO_CIPHER_AES_CTR) {\n \t\tswitch (crypto_xform->cipher.key.length) {\n \t\tcase 16:\n \t\tcase 24:\n",
    "prefixes": [
        "v2",
        "22/29"
    ]
}