get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 64862,
    "url": "http://patches.dpdk.org/api/patches/64862/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1579344553-11428-7-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": "<1579344553-11428-7-git-send-email-anoobj@marvell.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1579344553-11428-7-git-send-email-anoobj@marvell.com",
    "date": "2020-01-18T10:49:04",
    "name": "[v2,06/15] crypto/octeontx2: add eth security capabilities",
    "commit_ref": null,
    "pull_url": null,
    "state": "changes-requested",
    "archived": true,
    "hash": "28763b1e3c34212be59c3d2c670063eb2441600e",
    "submitter": {
        "id": 1205,
        "url": "http://patches.dpdk.org/api/people/1205/?format=api",
        "name": "Anoob Joseph",
        "email": "anoobj@marvell.com"
    },
    "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/1579344553-11428-7-git-send-email-anoobj@marvell.com/mbox/",
    "series": [
        {
            "id": 8203,
            "url": "http://patches.dpdk.org/api/series/8203/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=8203",
            "date": "2020-01-18T10:48:58",
            "name": "add OCTEONTX2 inline IPsec support",
            "version": 2,
            "mbox": "http://patches.dpdk.org/series/8203/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/64862/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/64862/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 dpdk.org (dpdk.org [92.243.14.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id DE617A051C;\n\tSat, 18 Jan 2020 11:50:27 +0100 (CET)",
            "from [92.243.14.124] (localhost [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 7413F374E;\n\tSat, 18 Jan 2020 11:50:20 +0100 (CET)",
            "from mx0b-0016f401.pphosted.com (mx0b-0016f401.pphosted.com\n [67.231.156.173]) by dpdk.org (Postfix) with ESMTP id 82BB02C5E\n for <dev@dpdk.org>; Sat, 18 Jan 2020 11:50:18 +0100 (CET)",
            "from pps.filterd (m0045851.ppops.net [127.0.0.1])\n by mx0b-0016f401.pphosted.com (8.16.0.42/8.16.0.42) with SMTP id\n 00IAnc9j021837; Sat, 18 Jan 2020 02:50:18 -0800",
            "from sc-exch02.marvell.com ([199.233.58.182])\n by mx0b-0016f401.pphosted.com with ESMTP id 2xk0sn6eg3-1\n (version=TLSv1.2 cipher=ECDHE-RSA-AES256-SHA384 bits=256 verify=NOT);\n Sat, 18 Jan 2020 02:50:17 -0800",
            "from SC-EXCH01.marvell.com (10.93.176.81) by SC-EXCH02.marvell.com\n (10.93.176.82) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Sat, 18 Jan\n 2020 02:50:15 -0800",
            "from maili.marvell.com (10.93.176.43) by SC-EXCH01.marvell.com\n (10.93.176.81) with Microsoft SMTP Server id 15.0.1497.2 via Frontend\n Transport; Sat, 18 Jan 2020 02:50:15 -0800",
            "from ajoseph83.caveonetworks.com (unknown [10.29.45.60])\n by maili.marvell.com (Postfix) with ESMTP id 5A5B53F703F;\n Sat, 18 Jan 2020 02:50:11 -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=pfpt0818;\n bh=DPCZttpCZeVXVCReKZ0C/KaZbz2yfEzU0do0wyh0Srk=;\n b=Df2WCZ55cbJ955K/YD3mQJ3lBIOYDGUB9Q0DY9digKaYfhu/yFEOHJXv+LRpJQ/ZCZtO\n eF/J/4nqIfSwmHjzaMySKjms2SUazQUaAzjagqBHoqBe6mLkhMy3qqUQ8euDR0QtoB3k\n EDCGUubj6R5Q1MMiRweqq/Xk6BcB2wT98EiDdJILhgeY15QayX0LhnehoTJC3frOpGKg\n Cz1oTLlTJaIEg0AHs5pk4E407CG/s8kZnrtxUzUG9deF7m1rk0y9io+++nmrE9oOfhPo\n z/q+yPNbJZfFspRQ56BFAbLSwVkVcokhgOyn+Kif6hdMAp5ndKI2JdxQNHRA1n6GOTEB Gw==",
        "From": "Anoob Joseph <anoobj@marvell.com>",
        "To": "Akhil Goyal <akhil.goyal@nxp.com>, Declan Doherty\n <declan.doherty@intel.com>, Thomas Monjalon <thomas@monjalon.net>",
        "CC": "Ankur Dwivedi <adwivedi@marvell.com>, Jerin Jacob <jerinj@marvell.com>,\n Narayana Prasad <pathreya@marvell.com>, Kiran Kumar K\n <kirankumark@marvell.com>, Nithin Dabilpuram <ndabilpuram@marvell.com>,\n \"Pavan Nikhilesh\" <pbhagavatula@marvell.com>, Anoob Joseph\n <anoobj@marvell.com>, Archana Muniganti <marchana@marvell.com>, Tejasree\n Kondoj <ktejasree@marvell.com>, Vamsi Attunuru <vattunuru@marvell.com>,\n \"Lukasz Bartosik\" <lbartosik@marvell.com>, <dev@dpdk.org>",
        "Date": "Sat, 18 Jan 2020 16:19:04 +0530",
        "Message-ID": "<1579344553-11428-7-git-send-email-anoobj@marvell.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "In-Reply-To": "<1579344553-11428-1-git-send-email-anoobj@marvell.com>",
        "References": "<1575806094-28391-1-git-send-email-anoobj@marvell.com>\n <1579344553-11428-1-git-send-email-anoobj@marvell.com>",
        "MIME-Version": "1.0",
        "Content-Transfer-Encoding": "8bit",
        "Content-Type": "text/plain",
        "X-Proofpoint-Virus-Version": "vendor=fsecure engine=2.50.10434:6.0.138, 18.0.572\n definitions=2020-01-18_02:2020-01-16,\n 2020-01-18 signatures=0",
        "Subject": "[dpdk-dev] [PATCH v2 06/15] crypto/octeontx2: add eth security\n\tcapabilities",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "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": "From: Ankur Dwivedi <adwivedi@marvell.com>\n\nAdding security capabilities supported by the eth PMD.\n\nSigned-off-by: Ankur Dwivedi <adwivedi@marvell.com>\nSigned-off-by: Anoob Joseph <anoobj@marvell.com>\nSigned-off-by: Archana Muniganti <marchana@marvell.com>\nSigned-off-by: Tejasree Kondoj <ktejasree@marvell.com>\nSigned-off-by: Vamsi Attunuru <vattunuru@marvell.com>\n---\n drivers/crypto/octeontx2/otx2_security.c | 84 ++++++++++++++++++++++++++++++++\n drivers/crypto/octeontx2/otx2_security.h | 18 +++++++\n 2 files changed, 102 insertions(+)",
    "diff": "diff --git a/drivers/crypto/octeontx2/otx2_security.c b/drivers/crypto/octeontx2/otx2_security.c\nindex cdb7950..b8c8f91 100644\n--- a/drivers/crypto/octeontx2/otx2_security.c\n+++ b/drivers/crypto/octeontx2/otx2_security.c\n@@ -2,11 +2,13 @@\n  * Copyright (C) 2020 Marvell International Ltd.\n  */\n \n+#include <rte_cryptodev.h>\n #include <rte_ethdev.h>\n #include <rte_eventdev.h>\n #include <rte_malloc.h>\n #include <rte_memzone.h>\n #include <rte_security.h>\n+#include <rte_security_driver.h>\n \n #include \"otx2_ethdev.h\"\n #include \"otx2_ipsec_fp.h\"\n@@ -27,12 +29,93 @@ struct sec_eth_tag_const {\n \t};\n };\n \n+static struct rte_cryptodev_capabilities otx2_sec_eth_crypto_caps[] = {\n+\t{\t/* AES GCM */\n+\t\t.op = RTE_CRYPTO_OP_TYPE_SYMMETRIC,\n+\t\t{.sym = {\n+\t\t\t.xform_type = RTE_CRYPTO_SYM_XFORM_AEAD,\n+\t\t\t{.aead = {\n+\t\t\t\t.algo = RTE_CRYPTO_AEAD_AES_GCM,\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.digest_size = {\n+\t\t\t\t\t.min = 16,\n+\t\t\t\t\t.max = 16,\n+\t\t\t\t\t.increment = 0\n+\t\t\t\t},\n+\t\t\t\t.aad_size = {\n+\t\t\t\t\t.min = 8,\n+\t\t\t\t\t.max = 12,\n+\t\t\t\t\t.increment = 4\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 = 12,\n+\t\t\t\t\t.increment = 0\n+\t\t\t\t}\n+\t\t\t}, }\n+\t\t}, }\n+\t},\n+\tRTE_CRYPTODEV_END_OF_CAPABILITIES_LIST()\n+};\n+\n+static const struct rte_security_capability otx2_sec_eth_capabilities[] = {\n+\t{\t/* IPsec Inline Protocol ESP Tunnel Ingress */\n+\t\t.action = RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL,\n+\t\t.protocol = RTE_SECURITY_PROTOCOL_IPSEC,\n+\t\t.ipsec = {\n+\t\t\t.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP,\n+\t\t\t.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL,\n+\t\t\t.direction = RTE_SECURITY_IPSEC_SA_DIR_INGRESS,\n+\t\t\t.options = { 0 }\n+\t\t},\n+\t\t.crypto_capabilities = otx2_sec_eth_crypto_caps,\n+\t\t.ol_flags = RTE_SECURITY_TX_OLOAD_NEED_MDATA\n+\t},\n+\t{\t/* IPsec Inline Protocol ESP Tunnel Egress */\n+\t\t.action = RTE_SECURITY_ACTION_TYPE_INLINE_PROTOCOL,\n+\t\t.protocol = RTE_SECURITY_PROTOCOL_IPSEC,\n+\t\t.ipsec = {\n+\t\t\t.proto = RTE_SECURITY_IPSEC_SA_PROTO_ESP,\n+\t\t\t.mode = RTE_SECURITY_IPSEC_SA_MODE_TUNNEL,\n+\t\t\t.direction = RTE_SECURITY_IPSEC_SA_DIR_EGRESS,\n+\t\t\t.options = { 0 }\n+\t\t},\n+\t\t.crypto_capabilities = otx2_sec_eth_crypto_caps,\n+\t\t.ol_flags = RTE_SECURITY_TX_OLOAD_NEED_MDATA\n+\t},\n+\t{\n+\t\t.action = RTE_SECURITY_ACTION_TYPE_NONE\n+\t}\n+};\n+\n static inline void\n in_sa_mz_name_get(char *name, int size, uint16_t port)\n {\n \tsnprintf(name, size, \"otx2_ipsec_in_sadb_%u\", port);\n }\n \n+static unsigned int\n+otx2_sec_eth_session_get_size(void *device __rte_unused)\n+{\n+\treturn sizeof(struct otx2_sec_session);\n+}\n+\n+static const struct rte_security_capability *\n+otx2_sec_eth_capabilities_get(void *device __rte_unused)\n+{\n+\treturn otx2_sec_eth_capabilities;\n+}\n+\n+static struct rte_security_ops otx2_sec_eth_ops = {\n+\t.session_get_size\t= otx2_sec_eth_session_get_size,\n+\t.capabilities_get\t= otx2_sec_eth_capabilities_get\n+};\n+\n int\n otx2_sec_eth_ctx_create(struct rte_eth_dev *eth_dev)\n {\n@@ -46,6 +129,7 @@ otx2_sec_eth_ctx_create(struct rte_eth_dev *eth_dev)\n \t/* Populate ctx */\n \n \tctx->device = eth_dev;\n+\tctx->ops = &otx2_sec_eth_ops;\n \tctx->sess_cnt = 0;\n \n \teth_dev->security_ctx = ctx;\ndiff --git a/drivers/crypto/octeontx2/otx2_security.h b/drivers/crypto/octeontx2/otx2_security.h\nindex 023061d..a442f5c 100644\n--- a/drivers/crypto/octeontx2/otx2_security.h\n+++ b/drivers/crypto/octeontx2/otx2_security.h\n@@ -7,6 +7,24 @@\n \n #include <rte_ethdev.h>\n \n+#include \"otx2_ipsec_fp.h\"\n+\n+/*\n+ * Security session for inline IPsec protocol offload. This is private data of\n+ * inline capable PMD.\n+ */\n+struct otx2_sec_session_ipsec_ip {\n+\tint dummy;\n+};\n+\n+struct otx2_sec_session_ipsec {\n+\tstruct otx2_sec_session_ipsec_ip ip;\n+};\n+\n+struct otx2_sec_session {\n+\tstruct otx2_sec_session_ipsec ipsec;\n+} __rte_cache_aligned;\n+\n int otx2_sec_eth_ctx_create(struct rte_eth_dev *eth_dev);\n \n void otx2_sec_eth_ctx_destroy(struct rte_eth_dev *eth_dev);\n",
    "prefixes": [
        "v2",
        "06/15"
    ]
}